You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Holmes <js...@MIT.EDU> on 2000/03/24 00:14:26 UTC
jdbc / classpath woes
hello out there. i've got tomcat working fine with the example servlets and
have been able to make some of my own. now i'm trying to get one to work
that uses jdbc. the servlet compiles fine, but when i execute:
Class.forname("postgresql.Driver");
it throws a ClassNotFound exception.
so this probably means that the line i have in tomcat.properties:
wrapper.classpath=/usr/lib/pgsql/jdbc6.5-1.2.jar
is not doing what i intend it to do.
so my question is how do i properly add things to the classpath of the jvm
that tomcat uses?
Re: jdbc / classpath woes
Posted by Warren Mira <wo...@usa.net>.
On Thu, 23 Mar 2000, John Holmes wrote:
Add the jar file on your CLASSPATH or in $TOMCAT_HOME/lib the restart
TOMCAT... Im using a Sybase JDBC driver and it works fine when I add it
on my CLASSPATH when I start tomcat or copied it on $TOMCAT_HOME/lib
> hello out there. i've got tomcat working fine with the example servlets and
> have been able to make some of my own. now i'm trying to get one to work
> that uses jdbc. the servlet compiles fine, but when i execute:
> Class.forname("postgresql.Driver");
> it throws a ClassNotFound exception.
>
> so this probably means that the line i have in tomcat.properties:
>
> wrapper.classpath=/usr/lib/pgsql/jdbc6.5-1.2.jar
>
> is not doing what i intend it to do.
>
> so my question is how do i properly add things to the classpath of the jvm
> that tomcat uses?
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>