W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1997

Re: servlets

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Wed, 10 Dec 1997 08:54:58 +0100
Message-Id: <199712100754.IAA03973@www43.inria.fr>
To: Paul Walker <Paul_Walker@pegasus.us.dell.com>
cc: "www-jigsaw@w3.org" <www-jigsaw@w3.org>, Benoit.Mahe@sophia.inria.fr
> Can anyone provide help on using servlets with beta1 ?
> I am on a win32 platform, compiled the servlet patches previously posted
> to this list,
> and updated my classes.zip file. I was successful in creating a
> ServletDirectory resource
> and creating a ServletWrapper (called SimpleService) for the
> SimpleServlet.class
> that comes with Sun's jsdk. I seem to be having troubles with the
> mandatory servlet-class
> attribute. The docs indicate this should be a subclass of
> java.servlet.Servlet.
> If I put SimpleServlet.class there with the resouce editor I get a
> browser error of No Data. 

 Do you have any exception in the trace?
> If I try paths or URLs I get a "Servlet not configured
> properly" error.

 Probably because the LocalServletLoader doesn't find you servlet class.

> Can anyone help me get this working ?

 Your servlet class must be in the CLASSPATH OR in the servlet directory.
 You just have to put SimpleServlet or SimpleServlet.class in the servlet-class

 If it still doesn't work please describe us your configuration of 
 ServletDirectory and ServletWrapper.

- Benot Mah -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team           

  http://www.w3.org/People/Mahe - bmahe@w3.org - + 
Received on Wednesday, 10 December 1997 02:55:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:23 UTC