W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

null servlet context

From: Christopher William Turner <cwturner@cycom.co.uk>
Date: Thu, 8 Apr 1999 16:47:20 -0400 (EDT)
Message-ID: <370D13B0.84167553@cycom.co.uk>
To: "www-jigsaw@w3.org" <www-jigsaw@w3.org>
I use jigsaw 2.0.1.
I have created a servlet (class is GetTrade) and I have tested it OK in
the servlets directory. (The servlets directory is always empty and I
have the classes
in a jar file on the classpath.)

I then tried to create a resource immediately under "space" named "t" as
a servlet-wrapper. I configured it for the class name "GetTrade" and
checked that it had a
servlet-wrapper-frame. When I try to access it I get an error.  It seems
that
"getServletContext()" is returning null. What else do I need to
configure?.
(I know can acheive the effect I want with a redirect framed resource
but I would
rather avoid unneeded indirection.)


Here is a trace.

GET /t?7709411 HTTP/1.0
Cache-Control: no-cache
Connection: keep-alive
Date: Thu, 08 Apr 1999 17:58:06 GMT
Pragma: no-cache
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Host: cycom:8001
User-Agent: HotJava/1.1 FCS

java.lang.NullPointerException:
 at
org.w3c.jigsaw.servlet.ServletWrapper.getLocalServletLoader(ServletWrapper.java:386)

 at
org.w3c.jigsaw.servlet.ServletWrapper.checkServlet(ServletWrapper.java:159)

 at
org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFrame.java:91)

 at
org.w3c.tools.resources.FramedResource.performFrames(FramedResource.java:587)

 at
org.w3c.tools.resources.FramedResource.perform(FramedResource.java:605)
 at org.w3c.jigsaw.http.httpd.perform(httpd.java:1592)
 at org.w3c.jigsaw.http.Client.processRequest(Client.java:384)
 at org.w3c.jigsaw.http.Client.startConnection(Client.java:459)
 at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java:114)
 at org.w3c.util.CachedThread.run(ThreadCache.java:86)
--
Chris Turner, http://www.cycom.co.uk/
Received on Friday, 9 April 1999 03:48:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT