Workaround: Instantiating the mapping class that informs the Unmarshaller with getClass().getClassLoader() makes the problem go away. Can anybody tell me why?
Chris -----Original Message----- From: Chris Longfield [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 4:25 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Strange MappingException I'm getting the same problem - but my castor jar is not under the jdk tree. Oddly, mine runs fine standalone, but when called through a servlet I get the mapping exception (thrown from line 300 of org.exolab.castor.mapping.loader.MappingLoader in createDescriptor, if that helps). The difference between the two situations makes me think of a classpath problem with my loaded class, but I can instantiate it just fine a line before the exception gets thrown on a call to create an Unmarshaller. Chris Longfield [EMAIL PROTECTED] -----Original Message----- From: Bruce Snyder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Strange MappingException This one time, at band camp, Herv� Bitteur said: HB >This seems to be related to a loader problem. The castor jar file HB >(castor-0.9.3-xml.jar) is in d:/jdk1.4/jre/lib/ext, while my application HB >classes are just plain class files in a separate hierarchy. HB >I use Windows 98, JDK 1.4. HB > HB >Any hint ? (should I put all my application classes in a jar file and HB >locate this jar also in d:/jdk1.4/jre/lib/ext ? A bit awkward, I haven't HB >tried it yet, but this would help investigate whether it's a problem of HB >order in directory search) You should not place the Castor jar in the JDK tree. Place it somewhere outside of the JDK tree and them place the jar from the new location in your CLASSPATH and run your test again. -- perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");' ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
