Community
Participate
Working Groups
When XmlElementRef(s) is used with XmlMixed on a non-collection/map property the following exception occurs: Exception Description: The container class specified [class [Ljavax.xml.bind.JAXBElement;] cannot be used as a container because it does not implement Collection or Map. at org.eclipse.persistence.exceptions.ValidationException.illegalContainerClass(ValidationException.java:945) at org.eclipse.persistence.internal.queries.ContainerPolicy.buildPolicyFor(ContainerPolicy.java:359) at org.eclipse.persistence.internal.queries.ContainerPolicy.buildPolicyFor(ContainerPolicy.java:326) at org.eclipse.persistence.oxm.mappings.XMLAnyCollectionMapping.useCollectionClass(XMLAnyCollectionMapping.java:671) at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateAnyCollectionMapping(MappingsGenerator.java:833) at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappingForReferenceProperty(MappingsGenerator.java:654) at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:436) at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:1926) at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:1891) at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:191) at org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:176) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:313) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:245) ... 25 more
Created attachment 183424 [details] Proposed Fix
Attached patch checked in to SVN
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink