W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1998

More Info - Re: Registering servlets for file types.

From: P. R. Harindranath <hary@wipinfo.soft.net>
Date: Thu, 23 Jul 1998 19:48:11 +0530
Message-ID: <35B74623.C5438F45@wipinfo.soft.net>
To: mombasa@ptolemy.arc.nasa.gov, www-jigsaw@w3.org, "Suryaprakash K.S." <suri@wipinfo.soft.net>
> > From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
> > Subject: Re: Registering servlets for file types.
> >
> >   Yes you can configure an indexer to index file with .class extension
> > as servlets. Create a new indexer (SampleResourceIndexer[1]), and add
> > a ServletWrapper (with its ServletWrapperFrame) called "class" in the
> > extensions node of your new indexer. See [2]
>
> > [1] org.w3c.tools.resources.indexer.SampleResourceIndexer
> > [2] /Doc/User/indexers.html
> --------------------------
>
>   Did you ever get this working ?
>
>   If so I'd be interested in knowing what the trick was. I mean made the
>   servlet-indexer, just as per instructions set out here and in other mail
>   that Benoit obliged me with. Only to find the following error:
>
>

> > org.w3c.jigsaw.servlet.ServletWrapper@/Servlets/SnoopServlet.class: unable to initialize servlet, exception: null
> > org.w3c.jigsaw.servlet.ServletWrapper@/Servlets/SessionServlet.class: unable to initialize servlet, exception: null

The error is caused by a NullPointerException
java.lang.NullPointerException
        at javax.servlet.GenericServlet.log(GenericServlet.java:116)
        at javax.servlet.GenericServlet.init(GenericServlet.java:151)
        at org.w3c.jigsaw.servlet.ServletWrapper.launchServlet(ServletWrapper.java:283)
...
...
...
I am using JSDK 2.0.
Hope someone can help me with this info.

--
Regards,
- Hari.
--
-------------------------------------------------------------------------------
* P. R. Harindranath                  | email: hary@wipinfo.soft.net          *
* Wipro Infotech Ltd                  | phone 91-80-2241728 ext 3608/3609.    *
* Bangalore, India                    |                                       *
-------------------------------------------------------------------------------
Received on Thursday, 23 July 1998 10:09:43 GMT

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