Sorry, the ServletContext .class file I'm inspecting with "javap" is in
./lib/servlet.jar, not ./webserver.jar.  But anyway it doesn't have the same
methods as are documented in the docs, and as are evidently are expected to
be present by the DefaultServlet.

Thanks again.

-----Original Message-----
From:   David Stone
Sent:   Friday, October 08, 1999 9:17 AM
To:     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Subject:        Bad javax.servlet.ServletContext?

Hello,
I'm a newbie to JSP and am having a problem getting started with the 1.0
reference implementation.  I start the JSP server but when I start the JSP
server and point my browser to anywhere such as
http://localhost:8080/docs/api/index.html
<http://localhost:8080/docs/api/index.html> , the browser displays the
following:

Error: 500
Internal Servlet Error:
java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
getResource(Ljava/lang/String;)Ljava/net/URL; not found
        at com.sun.web.core.DefaultServlet.doGet(DefaultServlet.java:54)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
        at com.sun.web.core.Context.handleRequest(Context.java:414)
        at com.sun.web.server.ConnectionHandler.run(Compiled Code)


I looked into it a little and found out the following:  though the
documentation that comes with the JSWDK 1.0 lists a getResource method in
the ServletContext interface, when I "javap" the ServletContext .class file
in ./webserver.jar, it doesn't list the getResource method.  There are also
a bunch of other methods that are in the docs but evidently not in the
actually interface .class file according to "javap".  I must be doing
something stupid, could someone out there please tell me what it is?
BTW, I'm running the JSP reference implementation on NT.

Thanks!
Dave

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to