Re: Connect problem with JDBC in javaBean and JSP - Mailing list pgsql-jdbc

From tony
Subject Re: Connect problem with JDBC in javaBean and JSP
Date
Msg-id 1023885172.23336.59.camel@vaio
Whole thread Raw
In response to Connect problem with JDBC in javaBean and JSP  ("gaox" <gaox@mountor.com>)
List pgsql-jdbc
On Wed, 2002-06-12 at 07:38, gaox wrote:

> The environment is Redhat 7.2, postgreSQL 7.2, j2sdk1.4.0, Tomcat 4.0.3
> and the parameter CLASSPATH contains the /usr/local/pgsql/share/pgjdbc2.jar
> While I browse the page, it is said
>
> javax.servlet.ServletException: ClassNotFoundException: Could not locate DB driver.
>     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
>     at org.apache.jsp.list$jsp._jspService(list$jsp.java:134)
> ........
>
> However, I can run my java application to connect the database and show the
> records in it well. What's wrong? Thanks a lot for help!

Tomcat needs the JDBC driver in /tomcat4/common/lib/

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html


pgsql-jdbc by date:

Previous
From: "gaox"
Date:
Subject: Connect problem with JDBC in javaBean and JSP
Next
From: Nookala Satish Kumar
Date:
Subject: Re: Connect problem with JDBC in javaBean and JSP