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