cancel
Showing results for 
Search instead for 
Did you mean: 

Full Integration of Liferay 5.1.2, Alfresco 3.0 E, SSO, LDAP

jonas
Champ in-the-making
Champ in-the-making
A solution of SSO plus LDAP for Liferay Portal 5.1.2 and Alfresco Portlet 3.0.0 with full RESTFul Integration at http://liferay.cignex.com

You can play with it at http://liferay.cignex.com

1. First please download an example Liferay Portal 5.1.2, Alfresco Portlet 3.0.0, LDAP (ADS) and SSO CAS.
liferay-portal-tomcat-6.0-5.1.2.zip
Download from (save link as …)
http://liferay.cignex.com
unzip it in your local machine.

2. Then create database (this is configurable) MySQL

for Liferay Portal 5.1.2
create database lportal;
grant all on lportal.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on lportal.* to 'liferay'@'localhost.localdomain' identified by 'liferay' with grant option;

for Alfresco Portlet
create database alfresco;
grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option;
grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option;

3. Start your AS from unzipped file
tomcat/bin/startup.bat or sh startup.sh

Go to http://localhost:8080/c/portal/login

press sign in

You may need to configure LDAP:
ldap://docs.cignex.com:10389
ou=users,ou=system
uid=admin,ou=system

and configure SSO
https://docs.cignex.com/cas-web/login
https://docs.cignex.com/cas-web/logout
https://docs.cignex.com/cas-web/proxyValidate

4. In CAS login page (https://docs.cignex.com/cas-web), login

possible users in LDAP server (docs.cignex.com) (configurable)
jonas/jonas
jane/jane

After login in CAS, you should be in Liferay Portal with your login name. No need relogin in Liferay Portal.

Add Alfresco Ext Client. You should be in Alfresco Portlet with your login name. No need relogin in Alfresco Portlet.

Liferay Book: http://liferay.cignex.com
3 REPLIES 3

jonas
Champ in-the-making
Champ in-the-making
All Alfresco portlets are working fine:  Alfresco Client, My Spaces, Document List, My Tasks, My Web Files, and My Web Forms.
You can download entire bundle at http://liferay.cignex.com

But the uploading issue in Alfresco Client portlet is still open. ….. it is a pity - need alfresco support …..

Thanks

Jonas Yuan

Liferay Book: Liferay Portal Enterprise Intranets at http://liferay.cignex.com

hosein
Champ in-the-making
Champ in-the-making
At this time Alfresco doesn't work fine !!! its SSO configuration and integration with liferay isn't working fine !!! even http://liferay.cignex.com/ removed its Alfresco Portlets !!! I integrate Alfresco with Liferay and ALL thing is working fine except SSO. i have to sign in to Alfresco first and then sign in to Liferay via CAS Otherwise Alfresco Portlets generate exception.

Also i can set guest as an admin user (in authority-services-context.xml) and by this way only guest users can use Alfresco Portlets and other users see old exception.

there is exception of Document List Portlet :



14:16:39,562 User:hasan ERROR [freemarker.runtime]

Error on line 42, column 7 in org/alfresco/portlets/doclist.get.html.ftl
userhome is undefined.
It cannot be assigned to home
The problematic instruction:
———-
==> assignment: home=userhome [on line 42, column 7 in org/alfresco/portlets/doclist.get.html.ftl]
———-

Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Error on line 42, column 7 in org/alfresco/portlets/doclist.get.html.ftl
userhome is undefined.
It cannot be assigned to home
   at freemarker.core.Assignment.accept(Assignment.java:111)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IfBlock.accept(IfBlock.java:82)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IfBlock.accept(IfBlock.java:82)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.process(Environment.java:188)
   at freemarker.template.Template.process(Template.java:237)
   at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
   at org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:504)
   at org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
   at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
   at org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:311)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:360)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:382)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:264)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:260)
   at org.alfresco.web.scripts.portlet.WebScriptPortlet$PortletRuntime.executeScript(WebScriptPortlet.java:302)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   at org.alfresco.web.scripts.portlet.WebScriptPortlet.doView(WebScriptPortlet.java:201)
   at org.alfresco.web.scripts.portlet.WebScriptPortlet.render(WebScriptPortlet.java:125)
   at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:126)
   at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)
   at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
   at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:618)
   at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:700)
   at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:419)
   at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1467)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
   at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2884)
   at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:897)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:170)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:103)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:281)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:190)
   at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:831)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
   at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:294)
   at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:471)
   at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:608)
   at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:846)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
   at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:425)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:257)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:191)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Unknown Source)


i need your help
thanks
S.M.H.Jamali

marianandan
Champ in-the-making
Champ in-the-making
Hi Everybody,

I also tried to integrate Liferay 5.3-tomcat-6.0.20 with Alfrresco 3.4.

I followed the following resources to do the integration.
a.http://www.youtube.com/watch?v=ypw7oCjUPKo
b.http://liferay.cignex.com/
c.http://forums.alfresco.com/en/viewtopic.php?t=15186

But, none of the above approach worked.

Any help would be appreciated.

Thanks
Mari