java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:360)
at java.lang.ClassLoader.defineClass(ClassLoader.java:315)
at sun.servlet.ServletLoader.loadClass(ServletLoader.java:270)
at sun.servlet.ServletLoader.loadClass(ServletLoader.java:225)
at sun.servlet.ServletLoader.loadServlet(ServletLoader.java:91)
at sun.servlet.http.HttpServer.getServlet(HttpServer.java:330)
at
sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.ja
a:152)
at
sun.servlet.http.HttpServerHandler.handleConnection(HttpServerHandle
.java:121)
at
sun.servlet.http.HttpServerHandler.run(HttpServerHandler.java:90)
at java.lang.Thread.run(Thread.java:490)
In my CLASSPATH I have the servlet.jar file specified, where the
HttpServlet.class
is included. I am using JDK1.2beta3.
Anyone else encountered this problem and got a workaround?
Thanks in advance.
>Running servletrunner under Windows/NT 4.0 and trying one of Suns demos
[snip]
>I always get the following Java exception:
>In my CLASSPATH I have the servlet.jar file specified, where the
>HttpServlet.class
>is included. I am using JDK1.2beta3.
>Anyone else encountered this problem and got a workaround?
Yup. I found it in the JavaSoft Bug Parade. Interestingly the workaround
was supplied by a non-JavaSoft employee, because the JavaSoft guys said
we'd have to wait for the next release :(.
It's a known bug in JDK1.2beta3. Instead of using servletrunner, try
typing...
java sun.servlet.http.HttpServer -v
... and you'll be away.
--
Luke Webber
* Note: The opinions expressed by Luke Webber are in no way supported *
* by his employers, Luke Webber Consulting Services *