pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Tomcat & JDBC
3+ messages / 2 participants
[nested] [flat]

* Tomcat & JDBC
@ 2000-11-22 00:22 Tony Nakamura <tony@uickarate.com>
  2000-11-22 00:44 ` Re: Tomcat & JDBC Greg Speegle <Greg@10happythings.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tony Nakamura @ 2000-11-22 00:22 UTC (permalink / raw)
  To: pgsql-interfaces

Thanks everyone for the help on JDBC.  I finally got JDBC to work.
....of course, I am facing an another one.  So please help me if you could.
Thanks in advance.

My DB connection works perfectly when I am writing an application, but
it gives the ClassNotFoundException error when I write a servlet.  I am
pretty
sure it's the setting for tomcat that  I am using.  I have set following in
the tomcat.properties
file:

wrapper.bin.parameters=-Djdbc.drivers=org.postgresql.Driver
wrapper.classpath=/usr/local/lib/postgresql.jar

I am also setting the CLASSPATH environmental variable, so
I've tried wrapper.bin.parameter=NONE and didn't work.


Tony




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Tomcat & JDBC
  2000-11-22 00:22 Tomcat & JDBC Tony Nakamura <tony@uickarate.com>
@ 2000-11-22 00:44 ` Greg Speegle <Greg@10happythings.com>
  2000-11-22 03:02   ` Re: Tomcat & JDBC Tony Nakamura <tony@uickarate.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Greg Speegle @ 2000-11-22 00:44 UTC (permalink / raw)
  To: Tony Nakamura <tony@uickarate.com>; +Cc: pgsql-interfaces


I was able to get tomcat to work with postgres by putting the jar file
in /usr/local/tomcat/lib, which is the default place for tomcat to look
for libraries in my installation.

Also, are you using the right jar file? I know you can name it whatever
you want, but the download name I have is jdbc7_0-1_2.jar, while the
old jar file was called postgresql.jar.

Good luck,
Greg Speegle

Tony Nakamura wrote:

> Thanks everyone for the help on JDBC.  I finally got JDBC to work.
> ....of course, I am facing an another one.  So please help me if you could.
> Thanks in advance.
>
> My DB connection works perfectly when I am writing an application, but
> it gives the ClassNotFoundException error when I write a servlet.  I am
> pretty
> sure it's the setting for tomcat that  I am using.  I have set following in
> the tomcat.properties
> file:
>
> wrapper.bin.parameters=-Djdbc.drivers=org.postgresql.Driver
> wrapper.classpath=/usr/local/lib/postgresql.jar
>
> I am also setting the CLASSPATH environmental variable, so
> I've tried wrapper.bin.parameter=NONE and didn't work.
>
> Tony




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Tomcat & JDBC
  2000-11-22 00:22 Tomcat & JDBC Tony Nakamura <tony@uickarate.com>
  2000-11-22 00:44 ` Re: Tomcat & JDBC Greg Speegle <Greg@10happythings.com>
@ 2000-11-22 03:02   ` Tony Nakamura <tony@uickarate.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tony Nakamura @ 2000-11-22 03:02 UTC (permalink / raw)
  To: Greg Speegle <Greg@10happythings.com>; +Cc: pgsql-interfaces

Wow!!  You must be able to see my computer...
It was exactly what's needed.  I guess it was the
typical newbie question??

In anycase, thanks a lot, Greg!!


Tony


Greg Speegle wrote:

> I was able to get tomcat to work with postgres by putting the jar file
> in /usr/local/tomcat/lib, which is the default place for tomcat to look
> for libraries in my installation.
>
> Also, are you using the right jar file? I know you can name it whatever
> you want, but the download name I have is jdbc7_0-1_2.jar, while the
> old jar file was called postgresql.jar.
>
> Good luck,
> Greg Speegle
>
> Tony Nakamura wrote:
>
> > Thanks everyone for the help on JDBC.  I finally got JDBC to work.
> > ....of course, I am facing an another one.  So please help me if you could.
> > Thanks in advance.
> >
> > My DB connection works perfectly when I am writing an application, but
> > it gives the ClassNotFoundException error when I write a servlet.  I am
> > pretty
> > sure it's the setting for tomcat that  I am using.  I have set following in
> > the tomcat.properties
> > file:
> >
> > wrapper.bin.parameters=-Djdbc.drivers=org.postgresql.Driver
> > wrapper.classpath=/usr/local/lib/postgresql.jar
> >
> > I am also setting the CLASSPATH environmental variable, so
> > I've tried wrapper.bin.parameter=NONE and didn't work.
> >
> > Tony




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-11-22 03:02 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-22 00:22 Tomcat & JDBC Tony Nakamura <tony@uickarate.com>
2000-11-22 00:44 ` Greg Speegle <Greg@10happythings.com>
2000-11-22 03:02   ` Tony Nakamura <tony@uickarate.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox