Hi Lawrence,

 

After using scomp (with the compile into jar option), I was able to successfully create the entire document w/o any ClassCastExceptions.  I was using the xmlbean ant task previously (only generating the source and compiling everything later in the build script).  I’m wondering if I was packaging all the necessary files – e.g., everything scomp produces with the “- out” option?

 

At any rate, it’s all working perfectly now.  Thank you for the suggestion and prompt response!

 

Andy

 

 

 


From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 10:27 PM
To: dev@xmlbeans.apache.org
Subject: RE: ClassCastException: org.apache.xmlbeans.impl.values.XmlComplexContentImpl

 

Hi Andy

 

Could you use scomp with the –src option and attach an example of the generated code that throws this exception please? Plus if possible a bit more of the stack trace with line numbers?

 

Cheers,

 

Lawrence

 


From: Andy Katz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 10:06 PM
To: dev@xmlbeans.apache.org
Subject: ClassCastException: org.apache.xmlbeans.impl.values.XmlComplexContentImpl

 

Hello,

 

I’m using xmlbeans-2.0.0 and encountering:

 

java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlComplexContentImpl

 

when attempting to invoke the generated class’ addNew method.  The XSD used as input into the xmlbean ant task is rather long, so I’m choosing not to include it for now.

 

It seems as though all of my xmlbeans generated *Impl.java class which extend org.apache.xmlbeans.impl.values.XmlComplexContentImpl throw this exception when invoking the addNew method or the Factory.newInstance() method??

 

Any help is greatly appreciated.

 

Thank a lot!

 

Andy

 

Reply via email to