Combination View Flat View Tree View
Threads [ Previous | Next ]
Ankur Goel
Alfresco Liferay integration Steps
June 20, 2012 10:56 PM
Answer

Ankur Goel

Rank: New Member

Posts: 2

Join Date: June 20, 2012

Recent Posts

Hi I got the steps for liferay alfresco integration at http://www.liferay.com/es/web/jonas.yuan/blog/-/blogs/3852267 as follows :
1



1) Get Alfresco web client application: alfresco.war (from Alfresco Tomcat bundle)

2) Unzip it to $ALFRESCO_HOME (any folder in your local machine, e.g., new folder /Alfresco)

3) Update dir.root in $ALFRESCO_HOME/ WEB-INF/classes/alfresco/repository.propertes.

dir.root=../../alf_data

4) Create a database alfresco in MySQL

drop database if exists alfresco;

create database alfresco character set utf8;

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;

5) Remove the file $ALFRESCO_HOME/WEB-INF/lib/portlet-api-lib.jar

6) Add /WEB-INF/faces-config.xml to the faces config files list at $ALFRESCO_HOME/WEB-INF/web.xml like

<context-param>

<param-name>javax.faces.CONFIG_FILES</param-name>

<param-value>/WEB-INF/faces-config.xml,/WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-beans.xml,/WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-config-common.xml,/WEB-INF/faces-config-repo.xml,/WEB-INF/faces-config-wcm.xml,/WEB-INF/faces-config-custom.xml</param-value>

</context-param>

7) Download and add files: faces-config.xml, liferay-display.xml, liferay-portlet.xml, portlet.xml to $ALFRESCO_HOME/WEB-INF

8) Create a folder license under $ALFRESCO_HOME /WEB-INF/classes/alfresco/extension and add license file to $ALFRESCO_HOME /WEB-INF/classes/alfresco/extension/ license

9) Package all files as a WAR: alfresco.war;

10) Deploy it in $LIFERAY_HOME/deploy

Note that you may not be able to add alfresco portlets in Liferay portal pages properly, since some alfresco portlets requires to be signed in first. Simple solution - you can create an account “admin/admin” (default account in alfresco) in Liferay, and assign this account to the role “Administrator”. Then login as “admin/admin” in Liferay portal, and add alfresco portlets in Liferay portal pages.

1



Step 7 says to download some files and add it to $ALFRESCO_HOME/WEB-INF . Please tell me from where to download these files.?
Step 8 says to add license file . Please tell me from where to get the license file ?


Thanks,
Ankur