You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by PG...@aol.com on 2005/03/09 13:31:25 UTC

com.sybase.jdbc2.jdbc.SybDriver error

Hi there,  
i'm sure this issue has been raised before, i get the following error when  
running one of my jsp pages:
 
java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
 
Now i now this class resides in C:\Tomcat\jConnect-5_5\classes\jconn2.jar  
which is in my classpath. When i execute my test class outside of tomcat, my  
script works fine.
 
why the difference, and what should i do to fix my problem?
 
CLASSPATH=C:\Tomcat\jConnect-5_5\classes\jconn2.jar;C:\Tomcat\jConnect-5_5\cla
sses\jTDS2.jar;C:\Tomcat\jakarta-regexp-1.3\jakarta-regexp-1.3.jar;\c:\Java;c:
\java\hall;c:\sybtools\ASEP\Monclass.zip;c:\sybtools\ASEP\3pclass.zip;


Re: com.sybase.jdbc2.jdbc.SybDriver error

Posted by David Smith <dn...@cornell.edu>.
Move jconn2.jar to C:\Tomcat\common\lib and restart.  Tomcat ignores the 
classpath in favor of it's classloaders and eliminates a huge load of 
headaches with it.

--David

PGibbonsX@aol.com wrote:

>Hi there,  
>i'm sure this issue has been raised before, i get the following error when  
>running one of my jsp pages:
> 
>java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
> 
>Now i now this class resides in C:\Tomcat\jConnect-5_5\classes\jconn2.jar  
>which is in my classpath. When i execute my test class outside of tomcat, my  
>script works fine.
> 
>why the difference, and what should i do to fix my problem?
> 
>CLASSPATH=C:\Tomcat\jConnect-5_5\classes\jconn2.jar;C:\Tomcat\jConnect-5_5\cla
>sses\jTDS2.jar;C:\Tomcat\jakarta-regexp-1.3\jakarta-regexp-1.3.jar;\c:\Java;c:
>\java\hall;c:\sybtools\ASEP\Monclass.zip;c:\sybtools\ASEP\3pclass.zip;
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org