chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider
Date Mon, 14 May 2012 20:47:25 GMT
Hi Damian,

It is very likely that you have the wrong JAX-WS classes in your classpath. Check if you have
all OpenCMIS dependencies [1] in place.  


- Florian


[1] http://www.apache.org/dyn/closer.cgi/chemistry/opencmis/0.7.0/chemistry-opencmis-client-impl-0.7.0-with-dependencies.zip


> Hi guys I'm trying to initialize a client session of Chemistry but every
> time I got the below exception.
> 
> Wierd thing is that the cast is being done inside one of the chemistry
> clases.
> 
> 
> Do you what could be happening?
> 
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
> Cannot initalize Web Services port object: $Proxy42 cannot be cast to
> com.sun.xml.ws.developer.WSBindingProvider
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.PortProvider.createPortObject(
> PortProvider.java:131)
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(
> AbstractPortProvider.java:210)
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(
> AbstractPortProvider.java:109)
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfo(
> RepositoryServiceImpl.java:85)
> 
> at
> org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfo(
> RepositoryServiceImpl.java:69)
> 
> at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(
> SessionImpl.java:676)
> 
> at
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(
> SessionFactoryImpl.java:90)
> 
> at
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(
> SessionFactoryImpl.java:64)
> 
> at com.mule.core.FakeFakeTest.createSession(FakeFakeTest.java:68)
> 
> at com.mule.core.FakeFakeTest.test(FakeFakeTest.java:19)
> 
> at com.mule.core.FakeFakeTest.main(FakeFakeTest.java:14)
> 
> Caused by: java.lang.ClassCastException: $Proxy42 cannot be cast to
> com.sun.xml.ws.developer.WSBindingProvider
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.PortProvider.createPortObject(
> PortProvider.java:108)
> 
> ... 10 more
> Cheers, Damian.
> 


Mime
View raw message