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

Re: Servlets return nothing and give IncompatibleClassChangeError

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Mon, 22 Mar 1999 09:43:03 +0100
Message-ID: <36F60297.155D5EBD@sophia.inria.fr>
To: "Random Q. Hacker" <sebelt01@ox.slug.louisville.edu>
CC: www-jigsaw@w3.org
Jigsaw is not (yet) compatible with JSDK2.1 but the next version (Jigsaw 2.0.2)
will be compatible (available at the end of the month). So try with JSDK2.0 until
the next release of Jigsaw.

Regards, Benoit.

"Random Q. Hacker" wrote:

> I am running JRE 1.1.7 on a glibc2 (RedHat 5.1) Linux box.
> JSDK 2.1, Jigsaw 2.01...
>
> I cannot run Servlets out-of-the-box.  Here is a typical session:
>
> $ export $CLASSPATH=/usr/local/Jigsaw/classes/jigsaw.zip:/usr/local/jre117_v1a/lib/rt.jar:/home/random/550/UNIX/servlet.jar
>
> $ jre org.w3c.jigsaw.Main -root /usr/local/Jigsaw/Jigsaw
>
> loading properties from: /usr/local/Jigsaw/Jigsaw/config/server.props
> Jigsaw[2.0.1]: serving at http://coredump.box9.com:8001/
> *** Warning : no logger specified, not logging.
> JigAdmin[2.0.1]: serving at http://coredump.box9.com:8009/
>
> <<< I go to the URL http://localhost:8001/servlets/SnoopServlet >>>
> <<< -rwxr-xr-x   1 random   random       5125 Mar 21 23:12 SnoopServlet.class >>>
>
> java.lang.IncompatibleClassChangeError: Unimplemented interface method
>         at
>         at org.w3c.tools.resources.AbstractContainer.updateDefaultChildAttributes(AbstractContainer.java)
>         at org.w3c.tools.resources.ContainerResource.updateDefaultChildAttributes(ContainerResource.java)
>         at org.w3c.tools.resources.DirectoryResource.updateDefaultChildAttributes(DirectoryResource.java)
>         at org.w3c.tools.resources.ContainerResource.internalLookup(ContainerResource.java)
>         at org.w3c.tools.resources.ContainerResource.lookup(ContainerResource.java)
>         at org.w3c.tools.resources.DirectoryResource.lookup(DirectoryResource.java)
>         at org.w3c.tools.resources.ContainerResource.lookup(ContainerResource.java)
>         at org.w3c.jigsaw.resources.DirectoryResource.lookup(DirectoryResource.java)
>         at org.w3c.tools.resources.ContainerResource.lookup(ContainerResource.java)
>         at org.w3c.jigsaw.resources.DirectoryResource.lookup(DirectoryResource.java)
>         at org.w3c.jigsaw.http.httpd.perform(httpd.java)
>         at org.w3c.jigsaw.http.Client.processRequest(Client.java)
>         at org.w3c.jigsaw.http.Client.startConnection(Client.java)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at org.w3c.util.CachedThread.run(ThreadCache.java)
>
> Should I not be using JSDK 2.1?  Is my JRE (1.1.7 under glibc2 linux) bad?
> Am I doing something wrong in my $CLASSPATH or my invocation?  Please help!!
>
> Incidentally, If I don't put /home/random/550/UNIX/servlet.jar in my
> $CLASSPATH, I get the following error message instead:
>
> java.lang.NoClassDefFoundError: javax/servlet/ServletContext
>         at
>         at org.w3c.tools.resources.AbstractContainer.updateDefaultChildAttributes(AbstractContainer.java)
>         at org.w3c.tools.resources.ContainerResource.updateDefaultChildAttributes(ContainerResource.java)
>         at org.w3c.tools.resources.DirectoryResource.updateDefaultChildAttributes(DirectoryResource.java)
>         at org.w3c.tools.resources.ContainerResource.internalLookup(ContainerResource.java)
>         at org.w3c.tools.resources.ContainerResource.lookup(ContainerResource.java)
>         at org.w3c.tools.resources.DirectoryResource.lookup(DirectoryResource.java)
>         at org.w3c.tools.resources.ContainerResource.lookup(ContainerResource.java)
>         at org.w3c.jigsaw.resources.DirectoryResource.lookup(DirectoryResource.java)
>         at org.w3c.tools.resources.ContainerResource.lookup(ContainerResource.java)
>         at org.w3c.jigsaw.resources.DirectoryResource.lookup(DirectoryResource.java)
>         at org.w3c.jigsaw.http.httpd.perform(httpd.java)
>         at org.w3c.jigsaw.http.Client.processRequest(Client.java)
>         at org.w3c.jigsaw.http.Client.startConnection(Client.java)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at org.w3c.util.CachedThread.run(ThreadCache.java)
>
> At least this is consistent with what I've read on this list...  Ugh.
>
> Thanks.

--
- 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, 22 March 1999 03:43:40 GMT

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