tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Anders <hostmas...@deltaphon.net>
Subject Re: JSP/JDBC/POSTGRESQL
Date Sat, 13 Apr 2002 20:19:12 GMT
> 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>


Mime
View raw message