I guess you are using the wrong
oracle driver. Try downloading
a version of classes111.zip
for JDK 1.1 - which is what jws2
uses by default.
Alternatively follow the instructions
for running Jws with JDK 1.2
(but I think you lose SSL support
this way)

T.


yaxin wang <[EMAIL PROTECTED]> wrote:
__________
>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:firstdb","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
http://www.westpoint.ltd.uk/

Internet reconnaissance services.

___________________________________________________________________________
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