[jboss-user] [JBossWS] - Re: JBOSS-5.1.0.GA web service client doesn't work ( runtime
rangalo
do-not-reply at jboss.com
Fri Jun 26 04:52:37 EDT 2009
Thanks,
Now I have at least some other error !
If I use only lib I get this error, I think it is related to stax implementation.
Am I missing some jar?
| [hardik at antariksh: HelloWsClient]$ wsrunclient.sh -cp "dist/hello-client.jar:jboss-generated:lib" com.hardik.mejb.JAXWSClient
| http://localhost:8080/Greeter/HelloBean?WSDL
| Exception in thread "main" java.lang.ExceptionInInitializerError
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| 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:31)
| at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:128)
| at javax.xml.ws.spi.Provider.provider(Provider.java:83)
| at javax.xml.ws.Service.<init>(Service.java:56)
| at com.hardik.mejb.Greeter.<init>(Greeter.java:45)
| at com.hardik.mejb.JAXWSClient.main(Unknown Source)
| Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference.
| at com.sun.xml.internal.ws.spi.ProviderImpl$2.run(ProviderImpl.java:201)
| at com.sun.xml.internal.ws.spi.ProviderImpl$2.run(ProviderImpl.java:196)
| at java.security.AccessController.doPrivileged(Native Method)
| at com.sun.xml.internal.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:196)
| at com.sun.xml.internal.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:67)
| ... 12 more
| Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
| - with linked exception:
| [java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
| at javax.xml.bind.ContextFinder.loadClass(ContextFinder.java:192)
| at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:205)
| at javax.xml.bind.ContextFinder.find(ContextFinder.java:388)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
| at com.sun.xml.internal.ws.spi.ProviderImpl$2.run(ProviderImpl.java:199)
| ... 16 more
| Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.xml.bind.ContextFinder.loadClass(ContextFinder.java:175)
| ... 21 more
| Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
| at javax.xml.bind.ContextFinder$1.run(ContextFinder.java:180)
| at javax.xml.bind.ContextFinder$1.run(ContextFinder.java:176)
| ... 23 more
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240248#4240248
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240248
More information about the jboss-user
mailing list