javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

com.sun.xml.bind.v2.runtime.IllegalAnnotationsException - Two classes have the same XML type name #1242

Closed Shreyas2993 closed 6 years ago

Shreyas2993 commented 6 years ago

I am facing IllegalAnnotationsException while deploying ear on Weblogic server.

JDK; 1.8.31 Oracle Weblogic: 12.2.1

Caused by: javax.xml.bind.JAXBException - with linked exception: [com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 28 counts of IllegalAnnotationExceptions Two classes have the same XML type name "{http://www.example.com/oss/xml/tip/inv/model/1}entityEnvelope". Use @XmlType.name and @XmlType.namespace to assign different names to them.

But with the below JDK and Oracle Weblogic version, there is no IllegalAnnotationsException without any code change.

JDK: 1.8.74 Oracle Weblogic: 12.1.0

Shreyas2993 commented 6 years ago

Issue resolved.

https://stackoverflow.com/questions/32188662/weblogic-12c-migration-issue-with-unmarshalling-jaxb/32507171