I think MS JVC is buggy. The JServ classloader
sometimes fails to load anonymous classes. (I
don't know what the cause is and I don't know
why it doesn't always fail)
Just making a note to save other people time if
they run into the same problem. I originally thought
it was a JServ bug, but tests with servletrunner that
came with JSDK2.0 also failed.
Then tried using javac from Sun JDK1.3 RC1
and everything worked fine. Together, they rule
out the possibility of a jserv bug.
It would be cool if someone could investigate it
and think of a work around for the Microsoft bug.
I am happy to use Sun's JDK from now on - so
no pressure if no one can be bothered.
Anyway, here is the stack trace:
java.lang.ClassFormatError: BasicServlet$1 (Illegal Variable name "1")
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:453)
at java.lang.ClassLoader.defineClass(ClassLoader.java:393)
at
org.apache.java.lang.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:
433)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at BasicServlet.onNoSession(BasicServlet.java:96)
at BasicServlet.service(BasicServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:479)
John
--
----------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]