I saw this recently. In my case, it seemed to be related to having 2 (or more) identical servlet alias entries, eg:
I took out the redundant alias, and the ClassCastException went away. Didn't have time to trace through
and find out why this mis-configuration causes this error, though. Anyway, you might try checking for
redundant alias entries.
- Fernando
At 05:34 PM 3/21/00 -0600, you wrote:
Everytime I try to run my servlet, I keep getting a:
uncaught exception java.lang.ClassCastException....
What does this exception mean?
This is the stack trace:
Uncaught exception: java.lang.ClassCastException com.forum.dynmodel.servlet.CalcIncomeNestegg
at org.apache.jserv.JServServletManager.load_init(JServServletManager.java:526)
at org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java:488)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:266)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
There is obviously no reference to this exception in the code. But can't see where it belongs or why it happens.
I only mail this to the list to be sure that it is a bug in my code vs. something apache1.3.9/jserv1.0 is doing.
What exactly is the org.apache.jserv.JServServletManager.load_init(JServServletManager.java:526) doing?
Thanks,
Sanju.
