>
> I'm attempting to move servlet code from a Netscape server to a local
> Apache server to do local development. I consistently get the following
> error message in the jserv.log file (after an Internal Server Error):
>
> java.lang.ClassFormatError: Wrong name
> at org.apache.jserv.JServConnection.run(JServConnection.java:365)
> at java.lang.Thread.run(Thread.java:474)
>
> I have no idea how to track down which class is causing this exception.
> I'm using Apache 1.3.4 and JServ 1.0b3. Any help or ideas would be
> appreciated.
> --
> Darren Swansburg
Darren,
The error is being thrown in the code created by line 365 of the source file
JServConnection.java. This is what (JServConnection.java:365) means. I took
a look and it is barfing on either the logging attempt or on the attempt to
actually call the service method of the servlet you are trying to invoke.
The ClassFormatError is thrown by the class loader. It doesn't like the byte
stream that represents the class it is trying to load.
I'm stumped as to what might be causing the problem but maybe try
recompiling your servlets with the latest jdk/jsdk?
If this doesn't help you could always rebuild the JServConnection class to
send you some extra diagnostic information. - Maybe just remove the
.fillInStackTrace from the e.fillInStackTrace so you get a better picture of
what is going on (at the cost of more verbose error logs).
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]