Hi,

I used JAXB to generate java files from the XSD files but I am not
getting very far with the unmarshalling, currently I get:

javax.xml.bind.UnmarshalException: Unable to create an instance of
test123.COBJECT: Unable to create an instance of test123.COBJECT

when executing the following code:

JAXBContext jc = JAXBContext.newInstance(ARCHETYPE.class);
Unmarshaller unmarshaller = jc.createUnmarshaller();
JAXBElement<ARCHETYPE> root = unmarshaller.unmarshal(new
StreamSource(new File(filename)), ARCHETYPE.class);

I've tried both XML from subversion and XML freshly generated from the
Ocean Archetype Editor.  the test123 is just the package I put the
JAXB generated java files into, not related to the problem.

I don't suppose anyone has run in this issue...?

thanks!

Greg


http://www.patientos.org

Reply via email to