Thanks Jochen! Declaring all elements as global solved the error. -----Original Message----- From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 4:29 PM To: Cline, Jason Cc: jaxme-dev@ws.apache.org Subject: Re: ClassCastException when Marshalling object to string
Cline, Jason wrote: > Looking at the JMMarshallerImpl class implementation it appears the > exception is caused when the marshaller tries to cast the MyTestClass > instance as a JMElement. That sounds like http://issues.apache.org/jira/browse/JAXME-49 If so, the workaround is to declare all elements which you want to marshal as global (toplevel). Jochen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]