Well, java.util.Map is part of the standard jdk, so
check your classpath.

You use JWS2 and it is currently EOL, which means that
it is terminated. You should consider using another
servlet engine. I've tested several engines, and JWS2
is by far the slowest (on my W2K workstation).

Cheers. AD.

--- yaxin wang <[EMAIL PROTECTED]> a écrit : > 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


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.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

Reply via email to