Hi All,
I am trying to deploy my EAR file on JBoss EAP 6.4.0 without any success. I must add that the same EAR file works perfectly with JBoss WildFly 8.2.1.
Two classes have the same XML type name "{http://contract.mercator.be/nonlife/1.0}objectFactory". Use @XmlType.name and @XmlType.namespace to assign different names to them.
this problem is related to the following location
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106) [jaxb-impl-2.2.5.redhat-9.jar:2.2.5.jboss-2]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466) [jaxb-impl-2.2.5.redhat-9.jar:2.2.5.jboss-2]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:298) [jaxb-impl-2.2.5.redhat-9.jar:2.2.5.jboss-2]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:141) [jaxb-impl-2.2.5.redhat-9.jar:2.2.5.jboss-2]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1163) [jaxb-impl-2.2.5.redhat-9.jar:2.2.5.jboss-2]
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145) [jaxb-impl-2.2.5.redhat-9.jar:2.2.5.jboss-2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_131]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:262) [jaxb-api-2.2.12.jar:2.2.12]
... 51 more