Howdy, >Many of our classes contain state information which we serialize to a >database. However, now that all of the class names have changed, we >cannot deserialize any of our existing objects because the class names >don't match (ClassCastException is what's being thrown, if I remember >right).
Ooh, that's a toughie. I see you've already done your research and figured out all the problems except this one -- that's good. Unfortunately my only answer to getting jasper to like packageless classes is to hack jasper. This is referenced in the tomcat faq: http://jakarta.apache.org/tomcat/faq/classnotfound.html >So, now that I've spoke my novel, here's my question: Is there a way I >can simply allow Tomcat to import *.class from Simply, no. It'd be a difficult matter if at all possible (I don't know jasper well enough to conclusively say it's possible). >make it work will cost us less time/money than rebuilding all of the >serialized objects in our customers' databases (which I haven't thought >of a good way to do that yet, either). I would seriously start investigating that reconstruction option. What about the following idea: - Add an XML or text saving functionality to your previous (packageless) classes, run them in tomcat 3 to deserialize your current objects and save them as XML or text temporarily. - Now use your new classes on tomcat 5 to read the XML/text and serialize into the database. It might be a lot of work, but it'll also be nice result that's worth your time. Yoav Shapira 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]