pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL Jdbc installation problems
3+ messages / 3 participants
[nested] [flat]

* PostgreSQL Jdbc installation problems
@ 2004-08-05 15:04  Ing. Francesco Russo - NoCable S.p.A. <frusso@nocable.it>
  0 siblings, 2 replies; 3+ messages in thread

From: Ing. Francesco Russo - NoCable S.p.A. @ 2004-08-05 15:04 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all,
i have some problems with PostgreSQL jdbc drivers. I have a PostgreSQL 7.3 on a server and i want to connect to it from another server that has Tomcat 5 with JDK 1.4.2

I have downloaded the jar file from jdbc.postgresql.org corresponding to my system features and i have copied it into a directory on my development machine (on this pc i use StrutsStudio to develop my web application). In StrutsStudio i have included in classpath this directory, but when i execute Class.Name("org.postgresql.Driver"), i got the exception "java.lang.ClassNotFoundException: org.postgresql.Driver".

Can someone of you help me to understand if i miss some steps?
Thank you

Francesco Russo

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

* Re: PostgreSQL Jdbc installation problems
@ 2004-08-05 15:12  Kris Jurka <books@ejurka.com>
  parent: Ing. Francesco Russo - NoCable S.p.A. <frusso@nocable.it>
  1 sibling, 0 replies; 3+ messages in thread

From: Kris Jurka @ 2004-08-05 15:12 UTC (permalink / raw)
  To: Ing. Francesco Russo - NoCable S.p.A. <frusso@nocable.it>; +Cc: pgsql-jdbc



On Thu, 5 Aug 2004, Ing. Francesco Russo - NoCable S.p.A. wrote:

> I have downloaded the jar file from jdbc.postgresql.org corresponding to
> my system features and i have copied it into a directory on my
> development machine (on this pc i use StrutsStudio to develop my web
> application). In StrutsStudio i have included in classpath this
> directory, but when i execute Class.Name("org.postgresql.Driver"), i got
> the exception "java.lang.ClassNotFoundException: org.postgresql.Driver".
> 

I'm not familiar with StrutsStudio, but it may be that you need to make 
the jdbc driver jar file available to both StrutsStudio for development 
and to Tomcat for deployment/execution.  For Tomcat the driver jar file 
should be placed in $CATALINE_HOME/common/lib.

Kris Jurka



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

* Re: PostgreSQL Jdbc installation problems
@ 2004-08-05 15:33  J. Michael Crawford <jmichael@gwi.net>
  parent: Ing. Francesco Russo - NoCable S.p.A. <frusso@nocable.it>
  1 sibling, 0 replies; 3+ messages in thread

From: J. Michael Crawford @ 2004-08-05 15:33 UTC (permalink / raw)
  To: Ing. Francesco Russo - NoCable S.p.A. <frusso@nocable.it>; pgsql-jdbc


   I personally have had to include the .jar file (not just the directory) 
in my classpath statement before being able to use the jdbc driver.  You 
may have already tried this, but I figured I'd respond just in case.

         - Mike


At 11:04 AM 8/5/2004, Ing. Francesco Russo - NoCable S.p.A. wrote:
>Hi all,
>i have some problems with PostgreSQL jdbc drivers. I have a PostgreSQL 7.3 
>on a server and i want to connect to it from another server that has 
>Tomcat 5 with JDK 1.4.2
>
>I have downloaded the jar file from jdbc.postgresql.org corresponding to 
>my system features and i have copied it into a directory on my development 
>machine (on this pc i use StrutsStudio to develop my web application). In 
>StrutsStudio i have included in classpath this directory, but when i 
>execute Class.Name("org.postgresql.Driver"), i got the exception 
>"java.lang.ClassNotFoundException: org.postgresql.Driver".
>
>Can someone of you help me to understand if i miss some steps?
>Thank you
>
>Francesco Russo

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


end of thread, other threads:[~2004-08-05 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-05 15:04 PostgreSQL Jdbc installation problems Ing. Francesco Russo - NoCable S.p.A. <frusso@nocable.it>
2004-08-05 15:12 ` Kris Jurka <books@ejurka.com>
2004-08-05 15:33 ` J. Michael Crawford <jmichael@gwi.net>

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