chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivas Nv Gannavarapu" <srinivas.gannavar...@in.ibm.com>
Subject Re: How to make opencmis 0.14.0 work with webservices binding in WAS
Date Thu, 29 Oct 2015 05:52:01 GMT

Thank a lot Florian. After comparing the JARs of InMemory we could figure
out that somehow two older version JARs were included in our war file.
After removing those, we could successfully connect to the repository using
Webservice binding.

spring-beans-4.1.5.RELEASE.jar and spring-core-4.1.5.RELEASE.jar (we should
be using 4.1.7 version instead )

Now FN CMIS leveraging opencmis 0.14.0 is working fine with all bindings

Cheers,
                                                                                        
                                                                                        
                                                                                        
 Srinivas Gannavarapu (Srini G)                                                         
 Senior Software Engineer                                                               
 IBM Analytics                                                                          
                                                                                        
 Phone: +91 40 669 57058                                                                
 E-mail:                                                                                
 srinivas.gannavarapu@in.ibm.com                                                        
                                                                                        
                                                                                        
                                                                                        










From:	Florian Müller <fmui@apache.org>
To:	dev@chemistry.apache.org
Cc:	Jay Brown <jay.brown@us.ibm.com>, Saisaran
            Yaratapalli1/India/IBM@IBMIN, Srinivas Nv
            Gannavarapu/India/IBM@IBMIN
Date:	10/28/2015 08:30 PM
Subject:	Re: How to make opencmis 0.14.0 work with webservices binding
            in WAS



Hi Srinivas,

First of all, you are using the wrong Web Services URL. It must end with
"?wsdl".

It should be something like:
http://localhost:8080/openfncmis/services/RepositoryService?wsdl
or:
http://localhost:8080/openfncmis/services/cmis?wsdl


Your server problem looks like a Spring Framework setup issue.
Could you compare the libraries that your are using with the libraries
in the InMemory repository WAR? Are you using a different version of the
Spring Framework?

The InMemory repository works fine on a plain Tomcat. I've never tested
it on WAS, though.


- Florian



> Hi
>
> We are trying to leverage the new opencmis 0.14.0 (tip build of
> 0.13.0) in IBM FileNet CMIS and could successfully build after few
> changes to our build configurations and deployed in both tomcat 7.0.47
> and WAS 8.5.0.2. To verify, basic sanity, we executed simple tests
> using workbench.
>
> Workbench with the Browser binding and Atompub binding, could connect
> to the repository and add / checkout a document without any issues.
> But with Webservices binding we are encountering the following error.
> (unable to connect to the repository). Can someone help / share
> information to get this working.
>
> WebService binding(url:
> http://localhost:8080/openfncmis/services/RepositoryServcie [1]) NOT
> WORKING. Throwing error at framework level.
>
> We are getting below exception when we tried to access webservice
> binding url from workbench. The error shown in stacktrace is from
> opencmis, not sure is there any config misses from our side or known
> issue in opemcmis 0.14. It will be good if we can get help from Jay or
> some one from opencmis team.
>
> Error:
> Error:
>
> 1836296 [http-bio-8080-exec-8] INFO
> org.springframework.web.context.support.XmlWebApplicationContext -
> Refreshing Root WebApplicationContext: startup date [Tue Oct 20
> 05:40:50 PDT 2015]; root of context hierarchy
> 1836297 [http-bio-8080-exec-8] INFO
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader -
> Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf.xml]
> 1836326 [http-bio-8080-exec-8] INFO
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader -
> Loading XML bean definitions from URL
> [jndi:/localhost/openfncmis/WEB-INF/cxf-servlet.xml]
> Oct 20, 2015 5:40:50 AM org.apache.catalina.core.ApplicationContext
> log
> SEVERE: StandardWrapper.Throwable
> java.lang.IllegalAccessError: Class
> org/springframework/context/event/AbstractApplicationEventMulticaster
> illegally accessing "protected" member of class
> org/springframework/beans/factory/support/AbstractBeanFactory
>  at
>
org.springframework.context.event.AbstractApplicationEventMulticaster.setBeanFactory
(AbstractApplicationEventMulticaster.java:84)
>  at
>
org.springframework.context.event.SimpleApplicationEventMulticaster.<init>
(SimpleApplicationEventMulticaster.java:60)
>  at
>
org.springframework.context.support.AbstractApplicationContext.initApplicationEventMulticaster
(AbstractApplicationContext.java:667)
>  at
> org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:471)
>  at
> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext
(CXFServlet.java:151)
>  at
> org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>  at
>
org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.loadBus
(CmisWebServicesServlet.java:257)
>  at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init
(CXFNonSpringServlet.java:76)
>  at
>
org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.init
(CmisWebServicesServlet.java:105)
>  at
> org.apache.catalina.core.StandardWrapper.initServlet
(StandardWrapper.java:1280)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1193)
>  at
> org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:865)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:136)
>  at
> org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:123)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:502)
>  at
> org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:171)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:100)
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:118)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:408)
>  at
> org.apache.coyote.http11.AbstractHttp11Processor.process
(AbstractHttp11Processor.java:1041)
>  at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
(AbstractProtocol.java:603)
>  at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run
(JIoEndpoint.java:310)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1153)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:628)
>  at java.lang.Thread.run(Thread.java:785)
>
> Oct 20, 2015 5:40:50 AM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Allocate exception for servlet cmisws10
> java.lang.IllegalAccessError: Class
> org/springframework/context/event/AbstractApplicationEventMulticaster
> illegally accessing "protected" member of class
> org/springframework/beans/factory/support/AbstractBeanFactory
>  at
>
org.springframework.context.event.AbstractApplicationEventMulticaster.setBeanFactory
(AbstractApplicationEventMulticaster.java:84)
>  at
>
org.springframework.context.event.SimpleApplicationEventMulticaster.<init>
(SimpleApplicationEventMulticaster.java:60)
>  at
>
org.springframework.context.support.AbstractApplicationContext.initApplicationEventMulticaster
(AbstractApplicationContext.java:667)
>  at
> org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:471)
>  at
> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext
(CXFServlet.java:151)
>  at
> org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>  at
>
org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.loadBus
(CmisWebServicesServlet.java:257)
>  at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init
(CXFNonSpringServlet.java:76)
>  at
>
org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.init
(CmisWebServicesServlet.java:105)
>  at
> org.apache.catalina.core.StandardWrapper.initServlet
(StandardWrapper.java:1280)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1193)
>  at
> org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:865)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:136)
>  at
> org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:123)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:502)
>  at
> org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:171)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:100)
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:118)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:408)
>  at
> org.apache.coyote.http11.AbstractHttp11Processor.process
(AbstractHttp11Processor.java:1041)
>  at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
(AbstractProtocol.java:603)
>  at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run
(JIoEndpoint.java:310)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1153)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:628)
>  at java.lang.Thread.run(Thread.java:785)
>
> Thanks in advance,
>
> -------------------------
>
> SRINIVAS GANNAVARAPU (SRINI G)
> Senior Software Engineer
> IBM Analytics
>
> Phone: +91 40 669 57058
> E-mail: srinivas.gannavarapu@in.ibm.com
>
>
>
> Links:
> ------
> [1] http://localhost:8080/openfncmis/services/RepositoryServcie



Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message