Servlets return nothing and give IncompatibleClassChangeError

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.

Received on Monday, 22 March 1999 03:27:54 UTC