JBoss Community

JAX-WS in JBoss AS 6

created by Jarod Rose in JBoss Web Services - View the full discussion

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

Start a new discussion in JBoss Web Services at Community