Hello,
I have been working on a system using servlets and jsp, and have run
into a problem of ClassCastExceptions. The problem persists until i
rename the class. The problem comes up seemingly randomly and
happens in the constructor, which is empty. the following code will
cause the exception to be thrown if it is being thrown:
<%@ import="beans.*" %>
<bean name="fl" type="beans.FolderClass"
scope="session" introspect="no">
</bean>
<%
fl.setSession(request.getSession(true));
fl.setWriter(out);
%>
<html>
</html>
the constructor for the class is :
public FolderClass()
{
}
The looged error message is :
[05/05/1999 16:36:54:976] (ERROR) ajp11: Servlet Error:
java.lang.ClassCastException: beans.FolderClass: beans.FolderClass
[05/05/1999 16:36:54:976] (ERROR) an error returned handling request
via protocol "ajpv11"
This happens both with Apache 1.3.4/JServ 1.0b2 and with Apache
1.3.6/JServ 1.0b4, both on RedHat Linux 5.2/ 2.0.36.
Any help would be appreciated. It gets annoying having to rename the
classes every so often.
Isaac Murchie
Developer, Varcom Communications
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]