You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Damian Sima <da...@gmail.com> on 2012/05/14 22:37:26 UTC

cannot be cast to com.sun.xml.ws.developer.WSBindingProvider

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.

Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider

Posted by Sebastian Danninger <se...@googlemail.com>.
are you using Jboss? probably you have a classloading problem with jax-ws
jar

2012/5/14 Damian Sima <da...@gmail.com>

> 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.
>

Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider

Posted by Damian Sima <da...@gmail.com>.
Nop its actually jetty for now

On Monday, 14 May 2012, Sebastian Danninger <
sebastian.danninger@googlemail.com> wrote:
> Are you using Jboss? Classloading is very tricky there and it might be a
> conflict between your 2 jars and the ones shipped with your application
> server
>
> 2012/5/14 Damian Sima <da...@gmail.com>
>
>>  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 <fm...@apache.org> 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. > - )
>>
>

-- 
Damián. > - )

Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider

Posted by Sebastian Danninger <se...@googlemail.com>.
Are you using Jboss? Classloading is very tricky there and it might be a
conflict between your 2 jars and the ones shipped with your application
server

2012/5/14 Damian Sima <da...@gmail.com>

>  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 <fm...@apache.org> 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. > - )
>

Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider

Posted by Damian Sima <da...@gmail.com>.
 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 <fm...@apache.org> 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. > - )

Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider

Posted by Florian Müller <fm...@apache.org>.
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.
>