From dev-return-4631-apmail-chemistry-dev-archive=chemistry.apache.org@chemistry.apache.org Wed Dec 21 17:38:59 2011 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 BA46473D1 for ; Wed, 21 Dec 2011 17:38:59 +0000 (UTC) Received: (qmail 50601 invoked by uid 500); 21 Dec 2011 17:38:59 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 50558 invoked by uid 500); 21 Dec 2011 17:38:59 -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 50550 invoked by uid 99); 21 Dec 2011 17:38:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 17:38:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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; Wed, 21 Dec 2011 17:38:50 +0000 Received: from hsi-kbw-046-005-071-020.hsi8.kabel-badenwuerttemberg.de ([46.5.71.20] helo=florian-mullers-macbook-pro.local); authenticated by vwp1524.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1RdQ7a-0001rX-82; Wed, 21 Dec 2011 18:38:30 +0100 Message-ID: <4EF21991.5070100@apache.org> Date: Wed, 21 Dec 2011 18:38:25 +0100 From: =?ISO-8859-1?Q?Florian_M=FCller?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: dev@chemistry.apache.org, sebastian.danninger@googlemail.com Subject: Re: WSBindingProvider Exception 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;1324489130;929b9807; X-Virus-Checked: Checked by ClamAV on apache.org Hi Sebastian, Check your classpath and your environment again. You are probably dealing with two classloaders that loaded different JAX-WS libraries. - Florian Am 21.12.11 15:11, schrieb Sebastian Danninger: > Dear all, > > we use chemistry in a project to sync a CMIS Repository (Alfresco 3.4d) > with an information integration graph, but I get the following exception: > > > org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: > Cannot initalize Web Services port object: $Proxy385 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.repository.RepositoryImpl.createSession(RepositoryImpl.java:62) > at > net.sf.iqser.plugin.file.CmisContentProvider.doSynchonization(CmisContentProvider.java:331) > Caused by: java.lang.ClassCastException: $Proxy385 cannot be cast to > com.sun.xml.ws.developer.WSBindingProvider > at > org.apache.chemistry.opencmis.client.bindings.spi.webservices.PortProvider.createPortObject(PortProvider.java:108) > ... 12 more > > > Is there any solution to this already, found some mailing list entries from > early 2011 but didn't see any solution. (used Chemistry 0.3 and 0.6. same > error). > > I'm using jaxws-rt v. 2.1.7 > > best regards > > Sebastian >