jaxb - How to fix Use @XmlType.name and @XmlType.namespace to assign different names to them using bindings.xjb -


caused by: com.sun.xml.bind.v2.runtime.illegalannotationsexception: 1 counts of illegalannotationexception

my bindings file follows:

<jaxb:globalbindings localscoping="toplevel">     <xjc:simple /> </jaxb:globalbindings>  <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/fiscommonrqsthdr_v2_1/fiscommonrqsthdr_v2_1.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.request" />     </jaxb:schemabindings> </jaxb:bindings> <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/fiscommonrsphdr_v2_1/fiscommonrsphdr_v2_1.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.response" />     </jaxb:schemabindings> </jaxb:bindings>  <jaxb:bindings schemalocation="../../src/main/resources/wsdls/xpbusinessobjects/common_v2_0.xsd"     if-exists="true">      <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.xp.bom.common_v2_0" />      </jaxb:schemabindings> </jaxb:bindings>      <jaxb:bindings schemalocation="../../src/main/resources/wsdls/xpbusinessobjects/contactpoint_v2_0.xsd" if-exists="true"> <jaxb:schemabindings>     <jaxb:package name="com.fis.ec.base.svc.xp.bom.contactpoint_v2_0" /> </jaxb:schemabindings>     </jaxb:bindings>  <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/xpbusinessobjects/involvedparty_v2_0.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.xp.bom.involvedparty_v2_0" />     </jaxb:schemabindings> </jaxb:bindings>      <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/xpbusinessobjects/organizationalunit_v2_0.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.xp.bom.organizationalunit_v2_0" />     </jaxb:schemabindings> </jaxb:bindings>  <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/xpbusinessobjects/resourceitem_v2_0.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.xp.bom.resourceitem_v2_0" />     </jaxb:schemabindings>   </jaxb:bindings>  <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/xpbusinessobjects/xporganizationalunit_v2_0.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package name="com.fis.ec.base.svc.xp.dom.xporganizationalunit_v2_0" />     </jaxb:schemabindings> </jaxb:bindings>   <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/messages/xpretrieveemployeelistrqst_v2_0.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package             name="com.fis.ec.base.svc.xp.svc.xporgunitiplistprofile_v2_0.xpretrieveemployeelist_v2_0.request" />     </jaxb:schemabindings> </jaxb:bindings>  <jaxb:bindings     schemalocation="../../src/main/resources/wsdls/messages/xpretrieveemployeelistrsp_v2_0.xsd"     if-exists="true">     <jaxb:schemabindings>         <jaxb:package             name="com.fis.ec.base.svc.xp.svc.xporgunitiplistprofile_v2_0.xpretrieveemployeelist_v2_0.response" />     </jaxb:schemabindings> </jaxb:bindings> 

need how override nametype annotation using bindings.xjb

two classes have same xml type name "{urn:fis:common}value". use @xmltype.name , @xmltype.namespace

this problem related following location:                                                           @ com.fis.ec.base.svc.xp.bom.common_v2_0.value                                                      @ protected com.fis.ec.base.svc.xp.bom.common_v2_0.value com.fis.ec.base.svc.xp.bom.involvedpa      @ com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.ipcommondemographic                                 @ public com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.ipcommondemographic com.fis.ec.base.svc      @ com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.objectfactory                                   problem related following location:                                                           @ com.fis.ec.svc.xp.bom.common_v2_0.value                                                           @ protected com.fis.ec.svc.xp.bom.common_v2_0.value fis.communication.communicationpreference.      @ fis.communication.communicationpreference                                                         @ protected java.util.list com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.ippreference.commprev      @ com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.ippreference                                        @ protected com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.ippreference com.fis.ec.base.svc.xp.      @ com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.involvedparty                                       @ public com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.involvedparty com.fis.ec.base.svc.xp.bo      @ com.fis.ec.base.svc.xp.bom.involvedparty_v2_0.objectfactory                                     @ com.sun.xml.bind.v2.runtime.illegalannotationsexception$builder.check(illegalannotationsexception.ja  @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl.gettypeinfoset(jaxbcontextimpl.java:466)                  @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl.<init>(jaxbcontextimpl.java:298)                          @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl.<init>(jaxbcontextimpl.java:141)                          @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl$jaxbcontextbuilder.build(jaxbcontextimpl.java:1163)       @ com.sun.xml.bind.v2.contextfactory.createcontext(contextfactory.java:145)                             @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)                                           @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)                         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)                 @ java.lang.reflect.method.invoke(method.java:606)                                                      @ javax.xml.bind.contextfinder.newinstance(contextfinder.java:211)                                      @ javax.xml.bind.contextfinder.find(contextfinder.java:392)                                             @ javax.xml.bind.jaxbcontext.newinstance(jaxbcontext.java:618)                                          @ org.apache.cxf.common.jaxb.jaxbcontextcache$2.run(jaxbcontextcache.java:345)                          @ org.apache.cxf.common.jaxb.jaxbcontextcache$2.run(jaxbcontextcache.java:343)                          @ java.security.accesscontroller.doprivileged(native method)                                            @ org.apache.cxf.common.jaxb.jaxbcontextcache.createcontext(jaxbcontextcache.java:343)                  @ org.apache.cxf.common.jaxb.jaxbcontextcache.getcachedcontextandschemas(jaxbcontextcache.java:244)     @ org.apache.cxf.jaxb.jaxbdatabinding.createjaxbcontextandschemas(jaxbdatabinding.java:484)             @ org.apache.cxf.jaxb.jaxbdatabinding.initialize(jaxbdatabinding.java:339)                             


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -