Nope I've got both jaxws-api-2.1.jar jaxws-rt-2.1.7.jar
On 14 May 2012 17:47, Florian Müller <[email protected]> wrote: > 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. > > > > -- Damián. > - )
