You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/04/06 07:25:13 UTC
DO NOT REPLY [Bug 7785] New: -
tomcat bug in context reloading
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7785>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7785
tomcat bug in context reloading
Summary: tomcat bug in context reloading
Product: Tomcat 3
Version: 3.2.3 Final
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Blocker
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: manojpandey@classteacher.com
There seems to be a bug in the version 3.2.3 of tomcat
Due to which , I am getting this exception
java.lang.ClassCastException: ClassTeacher.Registration.RegSession
at com.MindShaper.ClassTeacher.Apps.HigherEd.IIFT.Users.ProgramBuy.doPost
(ProgramBuy.java:44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287
Plz see the link below. My problem is similer.
http://www.apachelabs.org/tomcat-dev/200007.mbox/%
3C396BA057.818CFF8C@eng.sun.com%3E
this exception shows up whenever I am trying to cast an Object obtained from
session after uploading a servlet.The details are same as discussed in the
above link. Plz note that we need auto reloading of the servlets so it cannot
be turned false.
Please note that this problem would be temporarily resolved once you restart
the tomcat, but will show up as soon as I upload a servlets.
The source code of the TestServlet.
HttpSession sess=req.getSession(false);
Object o=sess.getValue(SessionObjectDefines.KEY_REGINFO);
out.print("o.getClass() "+o.getClass()+"<br>");
ClassTeacher.Registration.RegSession regSess =
(ClassTeacher.Registration.RegSession)o;
On running this , we see this o.getClass() prints the fully qualified class
name as
ClassTeacher.Registration.RegSession which is same as the object I am trying to
cast to.
counter is ...11
o.getClass() class ClassTeacher.Registration.RegSession
Error: 500
Location: /servlets/TestServlet
Internal Servlet Error:
java.lang.ClassCastException: ClassTeacher.Registration.RegSession
at TestServlet.doGet(TestServlet.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>