cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Alfresco 1.4 and Liferay 4.2.0

icarrara
Champ in-the-making
Champ in-the-making
Hi!

Since a few days I'm trying to use the Alfresco portlet released from Liferay in the V.4.2.1 of the Liferay Portal, pointing it to an Alfresco V.1.4 on another server….

This Liferay's portlet use the Web Services Sdk of Alfresco V.1.4 server.

I'm able to see the folders structure on the Alfresco server, but I can't read nothing because I get the message "ERROR [ViewAction:80] connect timed out" when I select a file from a folder.

I hope someone could help me on this matter.

Reading Liferay and Alfresco forums, this integration is the most wanted from people but I can't get any comments on this matter …

Thank you in advance!!

Ivano C.
3 REPLIES 3

harshad
Champ in-the-making
Champ in-the-making
Hi,

I also deployed the alfresco.war (1.4) from Liferay into Liferay 4.2.1. The Alfresco portlets works with the Alfresco in the same instance.

What changes should I do so that it connects to Alfresco running on a separate machine? Basically is there a way the portlets use web services to connect to remote Alfresco?

thanks,

-harshad

icarrara
Champ in-the-making
Champ in-the-making
Hi,

You don't need to deploy the alfresco.war on the Liferay portal if you have to connect to an already running Alfresco server.

You nee to deploy the alfresco.war only if you will install a complete new Alfresco server inside the same Tomcat instance where Liferay portal is running.

The Liferay portlet included in the Liferay portal is a Web service client based on the Alfresco Web Services Sdk… it access to the Alfresco server via Web services.

In my installation of Liferay portal I can see the remote Alfresco server on another Tomcat server in another phisical location via Internet ….  I can browse the folder structure of the Alfresco server but when I choice a file I get the error "ERROR [ViewAction:80] connect timed out" .

The problem is that no one person on the World can explain me what is this error.

I posted thi problem here in he Alfresco forum and also in the Liferay forum since 20 days but no one replyed me…

The Alfresco and Liferay integration is still a big secret…..

harshad
Champ in-the-making
Champ in-the-making
Thanks.

I got this to work. But I get the content only once. Subsequently exception is thrown:

Details:

Exception on Liferay side:
—————————-


23:42:53,639 ERROR [[localhost].[/alfresco].[downloadContent]] Servlet.service()  for servlet downloadContent threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been committed
        at org.apache.catalina.connector.Request.doGetSession(Request.java:2214)

        at org.apache.catalina.connector.Request.getSession(Request.java:2024)
        at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.
java:831)
        at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.
java:842)
        at org.alfresco.web.app.servlet.BaseServlet.redirectToLoginPage(BaseServ
let.java:179)
        at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServ
let.java:144)
        at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServ
let.java:109)
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadCon
tentServlet.java:92)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
23:42:53,655 ERROR [[localhost].[/alfresco].[jsp]] Servlet.service() for servlet  jsp threw exception
java.lang.IllegalStateException: RenderResponse object is null
        at org.alfresco.web.ui.repo.tag.SystemErrorTag.doStartTag(SystemErrorTag
.java:226)
        at org.apache.jsp.jsp.error_jsp._jspx_meth_r_systemError_0(error_jsp.jav
a:149)
        at org.apache.jsp.jsp.error_jsp._jspService(error_jsp.java:107)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:332)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:465)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:398)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:301)
        at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.j
ava:363)
        at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValv
e.java:212)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:134)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Jan 26, 2007 11:42:53 PM org.apache.catalina.core.StandardHostValve custom


Exception at the remote repository side:
—————————————-


15:42:29,406 ERROR [smb.protocol.mailslot] Host announce error, 10022Smiley FrustratedendSocket Datagram - Invalid argument, (LANA 3) … (This error keeps coming whether we use content portlet or not).

org.alfresco.repo.security.authentication.AuthenticationException: Bad credentia ls presented
        at org.alfresco.repo.security.authentication.AuthenticationComponentImpl
.authenticate(AuthenticationComponentImpl.java:69)
        at org.alfresco.repo.security.authentication.AuthenticationServiceImpl.a
uthenticate(AuthenticationServiceImpl.java:104)
        at sun.reflect.GeneratedMethodAccessor437.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:335)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:181)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:148)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.inv
oke(DelegatingIntroductionInterceptor.java:116)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInter
ceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:41)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentIm
pl.java:210)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.j
ava:156)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:61)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:176)
        at $Proxy21.authenticate(Unknown Source)
        at org.alfresco.repo.webservice.authentication.AuthenticationWebService.
startSession(AuthenticationWebService.java:59)
        at sun.reflect.GeneratedMethodAccessor452.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.j
ava:397)
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider
.java:186)
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:
323)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454
)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:69
9)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: net.sf.acegisecurity.BadCredentialsException: Bad credentials present ed
        at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.getUserF
romBackend(DaoAuthenticationProvider.java:393)
        at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.authenti
cate(DaoAuthenticationProvider.java:225)
        at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(Provi
derManager.java:159)
        at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(Abstr
actAuthenticationManager.java:49)
        at org.alfresco.repo.security.authentication.AuthenticationComponentImpl
.authenticate(AuthenticationComponentImpl.java:63)
        … 51 more
15:45:30,593 ERROR [smb.protocol.mailslot] Host announce error, 10022Smiley FrustratedendSocket Datagram - Invalid argument, (LANA 0)
15:47:29,406 ERROR [smb.protocol.mailslot] Host announce error, 10022Smiley FrustratedendSocket Datagram - Invalid argument, (LANA 3)
15:47:29,406 ERROR [smb.protocol.mailslot] Marked LANA as unavailable due to sen d errors, (LANA 3)

It shows Bad credentials error on Liferay side. The user name / password combo are right as it connects, I see the spaces, I can navigate to remote file and then see it in Content Portlet the first time. Subsequently I get an exception.

-Harshad
Cignex Technologies Inc.