[jboss-user] [JBoss Web Services] - ClassCastException when trying to access web service

Nate W do-not-reply at jboss.com
Wed Apr 6 05:16:09 EDT 2011


Nate W [http://community.jboss.org/people/nel100] created the discussion

"ClassCastException when trying to access web service"

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

--------------------------------------------------------------
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
[http://community.jboss.org/message/598141#598141]

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/20110406/8e53c460/attachment.html 


More information about the jboss-user mailing list