Hi ,
       What is the JDK version are u uisng? if it is jdk1.1.x then
pointyour class path to classes111.zip(which are the thin driver for
Oracle)
  and if your jdk version is jdk2 then place the classes2.zip in the class
path.

     Both classes111.zip and classes12.zip are freely downloadable form the
Oracle site

Hope this will help you........

Sateesh


-----Original Message-----
From:   yaxin wang [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, March 01, 2001 6:35 AM
To:     [EMAIL PROTECTED]
Subject:        why? i got strange exception when connecting to oracle db using
servlet

i get exception when the servlet trys to connect to oracle816 db. my
servlet
runs in jws2.

Connection
conn=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:first
db","scott","tiger");

the following is the stack trace of the
exception:java.lang.ClassNotFoundException: Unable to find class
java.util.Map
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at java.lang.ClassNotFoundException.<init>(Compiled Code)
        at
com.sun.server.loader.DirectoryClassLoader.getClassFromLocalDir(Compiled
Code)
        at
com.sun.server.loader.DirectoryClassLoader.loadRequestedClass(Compiled
Code)
        at com.sun.server.loader.URLClassLoader.loadRequestedClass(Compiled
Code)
        at com.sun.server.loader.JarClassLoader.loadRequestedClass(Compiled
Code)
        at com.sun.server.loader.ServletClassLoader.loadClass(Compiled
Code)
        at com.sun.server.loader.ServletClassLoader.loadClass(Compiled
Code)
        at com.sun.server.loader.JarClassLoader.loadClass(Compiled Code)
        at java.lang.ClassLoader.loadClassInternal(Compiled Code)
        at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled
Code)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
        at java.sql.DriverManager.getConnection(Compiled Code)
        at java.sql.DriverManager.getConnection(DriverManager.java:126)
        at DBTest.doGet(DBTest.java:21)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at com.sun.server.ServletState.callService(Compiled Code)
        at com.sun.server.ServletManager.callServletService(Compiled Code)
        at com.sun.server.http.servlet.InvokerServlet.service(Compiled
Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at com.sun.server.ServletState.callService(Compiled Code)
        at com.sun.server.ServletManager.callServletService(Compiled Code)
        at com.sun.server.ProcessingState.invokeTargetServlet(Compiled
Code)
        at com.sun.server.http.HttpProcessingState.execute(Compiled Code)
        at com.sun.server.http.stages.Runner.process(Compiled Code)
        at com.sun.server.ProcessingSupport.process(Compiled Code)
        at com.sun.server.Service.process(Compiled Code)
        at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled
Code)
        at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled
Code)
        at com.sun.server.HandlerThread.run(Compiled Code)


but java.util.Map is not used in my servlet, it looks like the exception
comes from the inside of oracle driver.

why???

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to