Take a look at the Tomcat 3.3 User's Guide section on configuring classes
and their scope:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html

After you decide the appropriate scope for your driver files, place them in
the proper directory and they will be picked up automatically.

Justy

----- Original Message -----
From: "Praveen Potineni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 12:59 PM
Subject: Unable to load driver


Hi all,
I have some problem loading the driver. I think i have put the driver files
in a wrong place. When i run the code which looks like this:

 private String myDriver ="com.sybase.jdbc2.jdbc.SybDriver";
...
...
...
...

try{
      Class.forName(myDriver).newInstance();
     }
  catch(Exception e){
   throw new InstantiationException("Unable to load
myDriver:"+e.toString());
  }

I am getting this error below:

Exception java.lang.InstantiationException: Unable to load
myDriver:java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
I am using tomcat 3.3 here...

Can some one suggest me where i have to include the driver files to make it
work... And the environment variable CLASSPATH
=C:\jakarta-tomcat-3.3\lib\common\servlet.jar;C:\jakarta-tomcat-3.3\webapps\
examples\WEB-INF\classes;C:\Program Files\Sybase\SQL Anywhere
7\java\jdbcdrv.zip;c:\Program Files\Sybase\jConnect\classes\jconn2.jar

Thanks
Praveen

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to