1 Reply Latest reply on Jul 10, 2007 7:53 AM by Juergen Zimmermann

    JBossWS 2.0 throws WebServiceException: Error creating JAXBC

    Juergen Zimmermann Master

      I updated my JBoss 4.2 installation to JBossWS 2.0. Only minor modifications where necessary for ANT build.xml files (JARs changed regarding classpath, classes for ANT tasks changed).

      However, if I run my JBossWS clients I get this stacktrace. What's going on? Any hint is appreciated! When testing with the generic WS test client of the Eclipse plugin WTP everything works fine.



      java.lang.ExceptionInInitializerError
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at java.lang.Class.newInstance0(Class.java:355)
      at java.lang.Class.newInstance(Class.java:308)
      at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:36)
      at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:95)
      at javax.xml.ws.spi.Provider.provider(Provider.java:76)
      at javax.xml.ws.Service.(Service.java:57)
      at de.hska.wsgen.KundenverwaltungService.(KundenverwaltungService.java:41)
      at de.hska.test.WebServicesJBossWSTest.setupProxy(WebServicesJBossWSTest.java:44)
      Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference.
      at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188)
      at com.sun.xml.ws.spi.ProviderImpl.(ProviderImpl.java:65)
      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
      Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them.
      this problem is related to the following location:
      at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address
      at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
      at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
      this problem is related to the following location:
      at javax.xml.ws.wsaddressing.W3CEndpointReference$Address
      at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
      at javax.xml.ws.wsaddressing.W3CEndpointReference
      Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them.
      this problem is related to the following location:
      at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements
      at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
      at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
      this problem is related to the following location:
      at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements
      at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters
      at javax.xml.ws.wsaddressing.W3CEndpointReference
      
      at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:270)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
      at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
      at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
      at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)