cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: java.lang.ClassCastException: org.apache.cxf.jaxws.spi.ProviderImpl
Date Wed, 06 Aug 2008 13:19:31 GMT

There is a conflict/duplicate jaxws-api jar.    I'm pretty sure JBoss ships 
with one (although I don't know if it's 2.0 or 2.1 version).   Not being a 
jboss user, I'm not sure how to fix it, but that would be the issue.

Hope that helps.

Dan

On Wednesday 06 August 2008 6:44:38 am Maxime Orain wrote:
> Hello to all.
>
> I try to launch a WS client (generated by the command wsdl2java) and
> when I try to get the port I have this:
>
> java.lang.ClassCastException: org.apache.cxf.jaxws.spi.ProviderImpl
>         at javax.xml.ws.spi.Provider.provider(Provider.java:39)
>         at javax.xml.ws.Service.<init>(Service.java:36)
>         at com.services.MyService.<init>(
> com.services.MyService.java:51)
>         at
> com.services.MyTest.WSFacadeFactory.getKGRCanonicalPort(WSFacadeFactory.
> java:37)
>         at com.services.MyTest.sendRequest(com.services.MyTest.java:66)
>         at java.lang.Thread.run()V(Unknown Source)
>
> I'm on an EAR deployed on Jboss.
>
> If I try to launch the same client directly in eclipse I have none
> problem...
>
> If Someone has idea...
>
> Thanks.



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message