You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Anil Kumar Somepalli <an...@oracle.com> on 2017/06/14 16:15:55 UTC
OpenCMIS - Restricted to cxf webservices
Hi,
We are trying to use the OpenCMIS client to connect to share point using web service binding. We already are able to do this with the version 0.13. Now we are trying to upgrade to 1.1 and see that 1.1 is restricted to use cxf jax ws web service implementation. Is there any specific reason for doing this?
When we replaced the jars of OpenCMIS 0.13 version to 1.1.0, we are getting the following exception.
JAX-WS RI not supported anymore. Please use Apache CXF.
We changed the property SessionParameter.WEBSERVICES_JAXWS_IMPL from "sunri" to "cxf". But this is giving problem when the cxf api is trying to get the client object.
[000009] org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot initalize Web Services port object: weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler cannot be cast to org.apache.cxf.frontend.ClientProxy
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot initalize Web Services port object: weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler cannot be cast to org.apache.cxf.frontend.ClientProxy
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.CXFPortProvider.createPortObject(CXFPortProvider.java:168)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(AbstractPortProvider.java:460)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(AbstractPortProvider.java:282)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:72)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:92)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:120)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:107)
at glog.server.document.cms.CmsHandlerCMIS.session(CmsHandlerCMIS.java:333)
at glog.server.document.cms.CmsHandlerCMIS.getDocument(CmsHandlerCMIS.java:154)
at glog.server.document.cms.CmsHandlerCMIS.getDocument(CmsHandlerCMIS.java:38)
at glog.server.document.cms.CmsHandlerExternal.setContent(CmsHandlerExternal.java:52)
at glog.server.document.DocumentSessionBean.insertUpdateDocumentContent(DocumentSessionBean.java:260)
at glog.server.document.DocumentSessionBean.attachDocumentContent(DocumentSessionBean.java:238)
at glog.server.document.DocumentSessionBean.attachDocumentContent(DocumentSessionBean.java:196)
Is there any way I can get rid of this problem without removing the default weblogic jax-ws implementation?
Thanks
Anil
Re: OpenCMIS - Restricted to cxf webservices
Posted by Florian Müller <fm...@apache.org>.
Hi Anil,
There were quite a few severe issues with the JAX-WS RI. For example, we
had to use internal classes and interfaces to make the content streaming
work. A few internal interfaces changed from Java 7 to Java 8, which
made it impossible for us to provide jars that work for both Java
versions. And with Java 9 that wouldn't had worked at all.
We had to move away from the JAX-WS RI. Apache CXF was a natural choice
for us as an Apache project.
We also don't have the capacity to maintain code for multiple JAX-WS
stacks. There are still extension points to plug in a different JAX-WS
stack, but we will not provide the implementation for another one.
Apart from this, don't use Web Services! Really! It's much slower than
the AtomPub binding and much more cumbersome. There is no good reason to
use the Web Services binding to connect to SharePoint.
There are just two essential things that should be pointed out.
1. Install the "February 9, 2016, cumulative update for SharePoint
Server 2013 (KB3114726)". It contains several CMIS fixes.
2. Turn on all relevant workarounds via session parameters in OpenCMIS
(OMIT_CHANGE_TOKENS, ADD_NAME_ON_CHECK_IN, and
LATEST_VERSION_WITH_VERSION_SERIES_ID).
- Florian
> Hi,
>
>
>
> We are trying to use the OpenCMIS client to connect to share point
> using web service binding. We already are able to do this with the
> version 0.13. Now we are trying to upgrade to 1.1 and see that 1.1 is
> restricted to use cxf jax ws web service implementation. Is there any
> specific reason for doing this?
>
>
>
> When we replaced the jars of OpenCMIS 0.13 version to 1.1.0, we are
> getting the following exception.
>
>
>
> JAX-WS RI not supported anymore. Please use Apache CXF.
>
>
>
> We changed the property SessionParameter.WEBSERVICES_JAXWS_IMPL from
> "sunri" to "cxf". But this is giving problem when the cxf api is
> trying to get the client object.
>
>
>
> [000009]
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
> Cannot initalize Web Services port object:
> weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler cannot be cast
> to org.apache.cxf.frontend.ClientProxy
>
>
>
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
> Cannot initalize Web Services port object:
> weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler cannot be cast
> to org.apache.cxf.frontend.ClientProxy
>
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.CXFPortProvider.createPortObject(CXFPortProvider.java:168)
>
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(AbstractPortProvider.java:460)
>
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(AbstractPortProvider.java:282)
>
> at
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:72)
>
> at
> org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:92)
>
> at
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:120)
>
> at
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:107)
>
> at
> glog.server.document.cms.CmsHandlerCMIS.session(CmsHandlerCMIS.java:333)
>
> at
> glog.server.document.cms.CmsHandlerCMIS.getDocument(CmsHandlerCMIS.java:154)
>
> at
> glog.server.document.cms.CmsHandlerCMIS.getDocument(CmsHandlerCMIS.java:38)
>
> at
> glog.server.document.cms.CmsHandlerExternal.setContent(CmsHandlerExternal.java:52)
>
> at
> glog.server.document.DocumentSessionBean.insertUpdateDocumentContent(DocumentSessionBean.java:260)
>
> at
> glog.server.document.DocumentSessionBean.attachDocumentContent(DocumentSessionBean.java:238)
>
> at
> glog.server.document.DocumentSessionBean.attachDocumentContent(DocumentSessionBean.java:196)
>
>
>
> Is there any way I can get rid of this problem without removing the
> default weblogic jax-ws implementation?
>
>
>
> Thanks
>
> Anil