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

Re: Cannot start a servlet (continued)

From: Christopher William Turner <cwturner@cycom.co.uk>
Date: Mon, 29 Mar 1999 15:50:58 -0500 (EST)
Message-ID: <36FFE6EE.CBE7BADC@cycom.co.uk>
To: Klaus_Preschern@genesis.at
CC: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>, www-jigsaw@w3.org
>From your log it looks like your servlet should be configured to have a
servlet class of
AT.genesis.servlet.GenServlet (I don't add .class)
and the class file should be located at
AT/genesis/servlet/GenServlet.class either in a jar file in the
classpath when jigsaw started
or relative to the servlets directory i.e.
gen/AT/genesis/servlet/AT/genesis/servlet/GenServlet.class.

This is just a guess. I have not used named packages for my servlets yet
and
I always have the classes in jar file in the classpath on startup.
You could add some System.err.println("init started") messages in your
servlet to see
if it is getting as far as calling init() and reaching the end of init()
without throwing exception.

Have you tried without the proxy, or with different browsers (http1.1 ,
http1.0).


> E:\Jigsaw\Jigsaw\logs>type servlets
> [29/Mar/1999:17:19:36 -2] Servlet Logger started
> [29/Mar/1999:17:19:37 -2] AT.genesis.servlet.GenServlet: init
>
> The files "log" and "traces" are empty. I had already problems
> with the CLASSPATH. In this case "jigsaw" raised the
> java.lang.NoClassDefFoundError exception. Therefore
> I guess the CLASSPATH is ok.
>
> Is it possible to do more logging and tracing?
>
>      Klaus



--
Chris Turner, http://www.cycom.co.uk/
Received on Monday, 29 March 1999 16:19:09 GMT

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