MOXy JAXB with dynamic entities [message #969491] |
Sat, 03 November 2012 05:04  |
Eclipse User |
|
|
|
I am trying to use MOXy JAXB but cannot get it to work to generate xml from dynamic entities. I don't have the xsd for the entities, so i used SchemaOutputResolver to generate the xml schema for the dynamic entity classes at runtime.
javax.xml.bind.MarshalException
- with linked exception:
[Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.4.1.v20121003-ad44345): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred marshalling the object
Internal Exception: Exception [EclipseLink-25007] (Eclipse Persistence Services - 2.4.1.v20121003-ad44345): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A descriptor for class schema.User was not found in the project. For JAXB, if the JAXBContext was bootstrapped using TypeMappingInfo[] you must call a marshal method that accepts TypeMappingInfo as an input parameter.]
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:391)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03284 seconds