Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84ED8C467 for ; Mon, 14 May 2012 20:47:56 +0000 (UTC) Received: (qmail 72307 invoked by uid 500); 14 May 2012 20:47:56 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 72205 invoked by uid 500); 14 May 2012 20:47:56 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 72197 invoked by uid 99); 14 May 2012 20:47:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 20:47:56 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [87.230.106.24] (HELO vwp1524.webpack.hosteurope.de) (87.230.106.24) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 20:47:48 +0000 Received: from p4fff7dd1.dip.t-dialin.net ([79.255.125.209] helo=Florians-MacBook-Pro.local); authenticated by vwp1524.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1SU2Aw-0007y5-CE; Mon, 14 May 2012 22:47:26 +0200 Message-ID: <4FB16F5D.6060908@apache.org> Date: Mon, 14 May 2012 22:47:25 +0200 From: =?ISO-8859-1?Q?Florian_M=FCller?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: dev@chemistry.apache.org CC: damiansima@gmail.com Subject: Re: cannot be cast to com.sun.xml.ws.developer.WSBindingProvider References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;fmui@apache.org;1337028468;2f5c0f58; X-Virus-Checked: Checked by ClamAV on 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. >