JBoss Community

ClassCastException when trying to access web service

created by Nate W in JBoss Web Services - View the full discussion

Hi,

 

I'm developing a client with maven-jaxws-tools-plugin and CXF.

After successfully creating a client and deploying it on JBoss (5.1.0GA), I tried to access a web service with this client, but without success.

I get the following error:

 

java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.jboss.ws.core.jaxws.spi.ProviderImpl could not be instantiated: java.lang.ClassCastException

          at java.util.ServiceLoader.fail(Unknown Source)

          at java.util.ServiceLoader.access$100(Unknown Source)

          at java.util.ServiceLoader$LazyIterator.next(Unknown Source)

          at java.util.ServiceLoader$1.next(Unknown Source)

          at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:146)

          at javax.xml.ws.spi.Provider.provider(Provider.java:106)

          at javax.xml.ws.Service.<init>(Service.java:57)

 

Searching the web for help didn't come up with usefull results.

 

Any suggestions?

 

Thanks,

Nethanel

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community