tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugh Brien <hpbr...@comcast.net>
Subject Re: JSP/JDBC/POSTGRESQL
Date Sun, 14 Apr 2002 04:50:04 GMT
if you are using Tomcat's connection pool you may have to include the jar in
the classpath in the catalina.bat(.sh) script.

Try to add your driver to this line in the catalina.bat file
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar;

this solved a problem I was having with JDBC realm
r,
Hugh


----- Original Message -----
From: "Dave Anders" <hostmaster@deltaphon.net>
To: <tomcat-user@jakarta.apache.org>
Sent: Saturday, April 13, 2002 3:19 PM
Subject: Re: JSP/JDBC/POSTGRESQL


> > Dave Anders wrote:
> >
> > > I'm trying to access my new PostgreSQL database
> > > using Tomcat 4.0.3 and JDBC.
> > >
> > > I'm receiving an Internal Server Error.
> > >
> > > exception :
> > >
> > > javax.servlet.ServletException:
WEB-INF/lib/jdbc7.1-1.2.jar/org/postgresql/Driver
> > >
> > > root cause :
> > >
> > > java.lang.ClassNotFoundException:
WEB-INF/lib/jdbc7.1-1.2.jar/org/postgresql/Driver
> >
> >
> > Provide the code you are using to load the driver.  The above looks
> > sorely malformed.  You should be doing a
> > Class.forName("org.postgresql.Driver") in the code, or if you are
> > setting up a DataSource in the configs the class name should be
> > similarly formed.
>
>
> username = deddy
> password = ABCDEF
> postgreSQL database = mydata
>
> Class.forName("org.postgresql.Driver");
> DriverManager.getConnection
> ("jdbc:postgresql://localhost:5432/mydata?user=deddy;password=ABCDEF");
>
>
>
> > > I'm sorry but I don't know at the moment how to implement
> > > the jdbc7.1-1.2 driver class so it is working properly.
> > >
> > > Is there anybody out there who knows the answer.
> > >
> > > Thank you,
> > > Dave Anders
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.
> org>
> > > For additional commands: <mailto:tomcat-user-help@jakarta.apache.
> org>
> > > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.
> org>
> > >
> > >
> > >
> >
> >
> > --
> > Jeffrey Bonevich
> > Ann Arbor, Michigan
> > bonevich@telocity.com
> > http://www.bonevich.com
> >
> > Hwæt! Wë Gär-Dena   in geär-dagum,
> > peod-cyninga,       prym gefrünon,
> > hü ða aepelingas   ellen fremedon!
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>
>
>
>
>
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message