[jboss-user] [JBoss Web Services] - JAX-WS in JBoss AS 6

Jarod Rose do-not-reply at jboss.com
Tue May 17 11:59:51 EDT 2011


Jarod Rose [http://community.jboss.org/people/grodd] created the discussion

"JAX-WS in JBoss AS 6"

To view the discussion, visit: http://community.jboss.org/message/605703#605703

--------------------------------------------------------------
Hello,

I'm currently working on getting a service that is implemented using jax-ws 2.2.3 and Spring migrated from JBoss 4 to JBoss 6 and I'm having issues with the service conflicting with the JBoss CXF deployer that comes with JBoss 6.  Currently when my application tries to instantiate the service I get the following exception.

java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.jboss.wsf.stack.cxf.client.ProviderImpl could not be instantiated: java.lang.ClassCastException
          at java.util.ServiceLoader.fail(ServiceLoader.java:207)
          at java.util.ServiceLoader.access$100(ServiceLoader.java:164)
          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353)
          at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
          at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:180)
          at javax.xml.ws.spi.Provider.provider(Provider.java:140)
          at javax.xml.ws.Service.<init>(Service.java:92)
          at com.micros_retail.xcenter.serenade.CWMessageInService.<init>(CWMessageInService.java:42)
          at com.micros_retail.xcenter.serenade.SerenadeEndpoint.callSerenade(SerenadeEndpoint.java:47)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.springframework.integration.util.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:97)
          at org.springframework.integration.handler.MessageMappingMethodInvoker.doInvokeMethod(MessageMappingMethodInvoker.java:135)
          at org.springframework.integration.handler.MessageMappingMethodInvoker.invokeMethod(MessageMappingMethodInvoker.java:107)
          ... 54 more
Caused by: java.lang.ClassCastException
          at java.lang.Class.cast(Class.java:2990)
          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)
          ... 67 more

I tried override which provider to use by specifying it in META-INF/services/javax.xml.ws.spi.Provider but that didn't do any good.  I'm still new to CXF and JAX-WS so any help/info would be appreciated.  

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/605703#605703]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110517/f363ce48/attachment.html 


More information about the jboss-user mailing list