[jboss-user] [JBossWS] - Eorros of creating WS client stub class

SARA1232007 do-not-reply at jboss.com
Fri May 22 09:15:47 EDT 2009


Hi,

I'm using jboss-4.2.2.GA and jbossws-native-3.0.5.GA. I create the WS client using jbossws. But when I run WS client, I get the excpetions when I invoke the creation of WS client stub class. The exceptions are as following:

Exception in thread "main" java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
  | 	at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:94)
  | 	at javax.xml.ws.spi.Provider.provider(Provider.java:80)
  | 	at javax.xml.ws.Service.<init>(Service.java:79)
  | 	at org.openuri._2004._04.helloworld.HelloWorldPOJOService.<init>(HelloWorldPOJOService.java:45)
  | 	at samples.webservice.ClientTester.main(ClientTester.java:8)
  | Caused by: java.lang.ExceptionInInitializerError
  | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  | 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  | 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
  | 	at java.lang.Class.newInstance0(Unknown Source)
  | 	at java.lang.Class.newInstance(Unknown Source)
  | 	at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:89)
  | 	... 4 more
  | Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference. 
  | 	at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:222)
  | 	at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:218)
  | 	at java.security.AccessController.doPrivileged(Native Method)
  | 	at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:217)
  | 	at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:88)
  | 	... 11 more
  | 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:102)
  | 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
  | 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
  | 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
  | 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
  | 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
  | 	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$2.run(ProviderImpl.java:220)
  | 	... 15 more
  | 
  | 
  | 
Can anyone tell me what's wrong?

Thanks.

Sara

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232724#4232724

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232724



More information about the jboss-user mailing list