From: | tony <tony(at)animaproductions(dot)com> |
---|---|
To: | gaox <gaox(at)mountor(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Connect problem with JDBC in javaBean and JSP |
Date: | 2002-06-12 12:32:51 |
Message-ID: | 1023885172.23336.59.camel@vaio |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Nookala Satish Kumar | 2002-06-12 12:58:50 | Re: Connect problem with JDBC in javaBean and JSP |
Previous Message | gaox | 2002-06-12 05:38:09 | Connect problem with JDBC in javaBean and JSP |