First of all, be sure that you put the .jar file installed by the rpm in
the classpath. Second, Postgres decided to move their driver to
org.postgresql.Driver and not update their documentation.
This isn't really a Tomcat-user issue, though, so if you want to ask any
more questions about it just email me directly.
-- Mark Lewis
[EMAIL PROTECTED]
On Mon, 23 Oct 2000, Ben Souther wrote:
> Using RedHat7, Postgesql 7.2, Jdk 1.2.2, and postgresql-jdbc-7.0.2-2.i386.rpm
> I've set the classpath and the path variables.
>
> When I try to run a servlet that connects to the database I get the following error:
>
> [root@Linuxbox /root]# java.lang.ClassNotFoundException: postgresql.Driver
> at
>org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:450)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:311)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at dparked.SimpleQuery.doGet(SimpleQuery.java:36)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
> at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
> at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> at java.lang.Thread.run(Thread.java:475)
>
>
> Anyone had this problem before?
>
>