Re: Cannot start a servlet (continued)

You probably forget to add a ServletDirectoryFrame to your servlet directory.
That could be the reason of the NullPointerException.

Regards, Benoit.

Klaus_Preschern@genesis.at wrote:

> Folks,
>
> 1) I have upgradet to JDK 1.2 (latest) and I can run simple servlets.
>
> 2) I have copied a more complicated servlet to \Jigsaw\Jigsaw\WWW\servlets. I
> have specified
> no servlet parameters (may be this is wrong?). If I try to start it then the
> browser reports
> "Servlet not configured properly." and "jigasw" reports:
>
> E:\Jigsaw\Jigsaw>java org.w3c.jigsaw.Main -trace
> loading properties from: E:\Jigsaw\Jigsaw\config\server.props
> Jigsaw[2.0.1]: serving at http://GENPRK:8001/
> *** Warning : no logger specified, not logging.
> JigAdmin[2.0.1]: serving at http://GENPRK:8009/
> GET /servlets/GenServlet/searchCustomer?FirstName=&LastName=Buder&Zip=&City=&Str
> eet=&Max=25 HTTP/1.0
> Connection: close
> Date: Mon, 29 Mar 1999 13:37:16 GMT
> Via: 1.0 PROXY:8888, HTTP/1.1 firewall.GENESIS.AT (IBM Firewall)
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
> Accept-Charset: iso-8859-1,*,utf-8
> Accept-Language: en
> Host: GENPRK:8001
> Referer: http://GENPRK:8001/gen/html/PartnerSearchPartyForm.html
> User-Agent: Mozilla/4.04 [en] (WinNT; I ;Nav)/3.12
>
> E:\GenConfig.properties
> +++ client-0(socket-clients:42) got exception:
> org.w3c.jigsaw.http.HTTPException
>         at org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFram
> e.java)
>         at org.w3c.tools.resources.FramedResource.performFrames(Compiled Code)
>         at org.w3c.tools.resources.FramedResource.perform(FramedResource.java)
>         at org.w3c.jigsaw.http.httpd.perform(Compiled Code)
>         at org.w3c.jigsaw.http.Client.processRequest(Client.java)
>         at org.w3c.jigsaw.http.Client.startConnection(Compiled Code)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at org.w3c.util.CachedThread.run(Compiled Code)
> HTTP/1.1 500 Internal Server Error
> Date: Mon, 29 Mar 1999 13:37:18 GMT
> Content-Length: 31
> Content-Type: text/html
> Server: Jigsaw/2.0.1
>
> 3) If I try to start the same servlet from
> /Jigsaw/Jigsaw/WWW/gen/AT/genesis/servlet where
> "servlet" is configured as DirectoryResource with indexer "servlet-indexer" and
> GenServlet
> is configured as ServletWrapper with servlet-class "GenServlet.class" then the
> browser
> reports: "10053 - Software caused connection to abort" and "jigsaw" reports:
>
> E:\Jigsaw\Jigsaw>java org.w3c.jigsaw.Main -trace
> loading properties from: E:\Jigsaw\Jigsaw\config\server.props
> Jigsaw[2.0.1]: serving at http://GENPRK:8001/
> *** Warning : no logger specified, not logging.
> JigAdmin[2.0.1]: serving at http://GENPRK:8009/
> GET /gen/AT/genesis/servlet/GenServlet/searchCustomer?FirstName=&LastName=Buder&
> Zip=&City=&Street=&Max=25 HTTP/1.0
> Connection: close
> Date: Mon, 29 Mar 1999 13:41:47 GMT
> Via: 1.0 PROXY:8888, HTTP/1.1 firewall.GENESIS.AT (IBM Firewall)
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
> Accept-Charset: iso-8859-1,*,utf-8
> Accept-Language: en
> Host: GENPRK:8001
> Referer: http://GENPRK:8001/gen/html/PartnerSearchPartyForm.html
> User-Agent: Mozilla/4.04 [en] (WinNT; I ;Nav)/3.12
>
> +++ client-0(socket-clients:42) got exception:
> java.lang.NullPointerException:
>         at org.w3c.jigsaw.servlet.ServletWrapper.getLocalServletLoader(ServletWr
> apper.java)
>         at org.w3c.jigsaw.servlet.ServletWrapper.checkServlet(ServletWrapper.jav
> a)
>         at org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFram
> e.java)
>         at org.w3c.tools.resources.FramedResource.performFrames(Compiled Code)
>         at org.w3c.tools.resources.FramedResource.perform(FramedResource.java)
>         at org.w3c.jigsaw.http.httpd.perform(Compiled Code)
>         at org.w3c.jigsaw.http.Client.processRequest(Client.java)
>         at org.w3c.jigsaw.http.Client.startConnection(Compiled Code)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at org.w3c.util.CachedThread.run(Compiled Code)
> org.w3c.jigsaw.http.ClientException:
>         at org.w3c.jigsaw.http.Client.startConnection(Compiled Code)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at org.w3c.util.CachedThread.run(Compiled Code)
> java.lang.NullPointerException:
>         at org.w3c.jigsaw.servlet.ServletWrapper.getLocalServletLoader(ServletWr
> apper.java)
>         at org.w3c.jigsaw.servlet.ServletWrapper.checkServlet(ServletWrapper.jav
> a)
>         at org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFram
> e.java)
>         at org.w3c.tools.resources.FramedResource.performFrames(Compiled Code)
>         at org.w3c.tools.resources.FramedResource.perform(FramedResource.java)
>         at org.w3c.jigsaw.http.httpd.perform(Compiled Code)
>         at org.w3c.jigsaw.http.Client.processRequest(Client.java)
>         at org.w3c.jigsaw.http.Client.startConnection(Compiled Code)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at org.w3c.util.CachedThread.run(Compiled Code)
>
> Any ideas what's wrong? Thanks much!
>
>      Klaus

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team

  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89
---------------------------------------------------------------------

Received on Monday, 29 March 1999 09:40:09 UTC