The error is inside the webapp. The error message is following:
20040714 01:43:46 ERROR - Exception Message
[java.lang.NoClassDefFoundError
at com.xxx.Manager.getUser(Manager.java:525)
Line 525 in Manager.java has the following code:
User user = new User();
The class User is a java bean that implements Serializable. Later in a
servlet the user object is put under session as an attribute.
If the session is still active and TC is restarted, I get the above
exception. There are no problems if the session is cleaned in the
webapp.
Also, this started hapenning only after the User object was made to
implement serializable. There are no problems if the User object
doesn't
implement Serializable.
Does TC behave different for serialized objects?
Thanks
Keshav
>>> [EMAIL PROTECTED] 07/14/04 01:34PM >>>
Hi,
TC persists the session, yes, but that doesn't explain a
ClassNotFoundException. Is the CNFE in your own code? If so post the
relevant chunk.
Yoav Shapira
Millennium Research Informatics
>-----Original Message-----
>From: Keshav Sarin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 14, 2004 3:25 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 5 fails on serialized objects
>
>I have a class that implements Serializable. This class is put in a
web
>app deployed under TC. when the webapp is accessed via a browser, an
>instance of this class is placed in the web session by the webapp.
>
>If an active session contains an instance of this class and if TC is
>restarted, when webapp tries to create an instance of this class, TC
>throws a ClassNotFoundException for this class.
>
>Everything works fine if the webapp cleans the session i.e. by
calling
>session.invalidate().
>
>What is happening here? Does TC persist the session?
>
>Using TC 5.0.25, Win XP.
>
>Thanks
>Keshav
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged. This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]