10-09-2016 04:05 AM
Hi
server OS: debian 8.2
tomcat 7
Mariadb (mysql)
Postgres 9.4 +postgis
I have installed Alfresco and openmaint and both is up and running. But when I trying to connect openmaint with alfresco i get some errors.
I need some guide to make this work, and I'am kind of newbie to alfresco so please keep guide as simple as possible
Call: services/json/attachments/getattachmentscontext ------------------------------------------------------
Error: org.alfresco.webservice.util.WebServiceException: Error starting session.
at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:88)
at org.cmdbuild.dms.alfresco.webservice.AlfrescoSession.start(AlfrescoSession.java:29)
at org.cmdbuild.dms.alfresco.webservice.AlfrescoWebserviceClient.executeWhithinSession(AlfrescoWebserviceClient.java:52)
at org.cmdbuild.dms.alfresco.webservice.AlfrescoWebserviceClient.getDocumentTypeDefinitions(AlfrescoWebserviceClient.java:138) at org.cmdbuild.dms.alfresco.webservice.AlfrescoWsService.getDocumentTypeDefinitions(AlfrescoWsService.java:426)
at org.cmdbuild.dms.alfresco.AlfrescoDmsService.getTypeDefinitions(AlfrescoDmsService.java:64)
at org.cmdbuild.dms.ForwardingDmsService.getTypeDefinitions(ForwardingDmsService.java:35)
at org.cmdbuild.dms.LoggedDmsService.getTypeDefinitions(LoggedDmsService.java:39)
at org.cmdbuild.dms.ForwardingDmsService.getTypeDefinitions(ForwardingDmsService.java:35)
at org.cmdbuild.dms.CachedDmsService.getTypeDefinitions(CachedDmsService.java:28)
at org.cmdbuild.logic.dms.DefaultDmsLogic.getCategoryDefinitions(DefaultDmsLogic.java:136)
at org.cmdbuild.logic.dms.DefaultDmsLogic.getCategoryDefinition(DefaultDmsLogic.java:97)
at org.cmdbuild.logic.dms.DefaultDmsLogic$1.apply(DefaultDmsLogic.java:121)
at org.cmdbuild.logic.dms.DefaultDmsLogic$1.apply(DefaultDmsLogic.java:117)
at com.google.common.collect.Iterators$8.transform(Iterators.java:794)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at org.cmdbuild.servlets.json.Attachments.getAttachmentsContext(Attachments.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:101)
at org.cmdbuild.servlets.JSONDispatcher.doGet(JSONDispatcher.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:158)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:148)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException:
Connection refused at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:73) ... 64 more
Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) ... 75 more
10-10-2016 10:06 AM
I do not expect the "File server path" to have anything to do with the CMIS / web service connection. Personally, I would also assume the "Host" in the "General" section should only be the server name - not the full URL. I don't see any configuration property that I would use to configure the web service URL. Since the software was built for Alfresco 3.4 where there was basically only one URL for CMIS web services, it makes sense that the UI does not provide an option for it. Unfortunately that would mean you can't use OpenMaint with Alfresco 5.x
10-10-2016 02:53 AM
This question should better have been created in the "Alfresco ECM" space. You may want to move it (if you can - I don't actually know if you do or if an admin needs to do this).
You haven't included which Alfresco version you are using. Please be aware that since Alfresco 5.0.b the Alfresco Web Service / CML API has been removed. There are no more web services in Alfresco apart from the CMIS web service bindings provded by the OpenCMIS server libraries. The documentation I could find for CMDBuild indicates that it wants to use the Legacy CMIS web services API for Alfresco 3.4. This no longer exists. If the CMIS client library in CMDBuild has been developed correctly, it should be able to use the OpenCMIS CMIS web services API. Try changing the configuration property server.url in the dms.properties of OpenMaint / CMDBuild to the http://hostort/alfresco/cmisws/cmis URL.
10-10-2016 09:56 AM
Hi
Thanks for replying . Sorry in my hurry I forgot to put details about program.
Alfresco 5.1.e
Openmaint 1.0 - 2.31
geoserver 2.8.2
bimserver 1.4.0
I did the url correction, but same error still poping up . attached picture of openmaint alfresco config page.
10-10-2016 10:06 AM
I do not expect the "File server path" to have anything to do with the CMIS / web service connection. Personally, I would also assume the "Host" in the "General" section should only be the server name - not the full URL. I don't see any configuration property that I would use to configure the web service URL. Since the software was built for Alfresco 3.4 where there was basically only one URL for CMIS web services, it makes sense that the UI does not provide an option for it. Unfortunately that would mean you can't use OpenMaint with Alfresco 5.x
10-10-2016 10:10 AM
So I need a downgrade to version 3.4.
or can two version of alfresco be installed at the same time (tomcat 7)
10-10-2016 10:13 AM
Downgrading is not really something that Alfresco supports. Two versions can be installed at the same time - they only need to use different databases. I personally would file an issue with OpenMaint that they should really, really look into updating support for Alfresco. 3.4 has been superseded for about 4 years now and CMIS has changed a lot since then (it was only a preview functionality of a yet-to-be-approved standard at that time).
10-10-2016 10:18 AM
Thanks for answers. I will trying to install a different version of Alfresco, still keeping 5.1.e version because we have some documents in that and using it.
I will put an issue to openmaint of that problem.
Thanks again for helping me to right track
03-22-2018 01:13 PM
Hello Krister,
Did you find a way to connect openmaint to alfresco to openmaint.
I'm also struggling.
Can you help me.
Regards,
Vishnu
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.