cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying Alfresco1.3.0 into Liferay4.0.0

kevinr
Star Contributor
Star Contributor
Hello,

As part of the Alfresco 1.3 packages we now supply a bundle containing Alfresco 1.3 pre-configured with Liferay4.0.0+Tomcat. However, if you wish to deploy the plain WAR file yourself (if say you already have Liferay installed) then the instructions are available here:
http://wiki.alfresco.com/wiki/Deploying_WAR_Liferay

Thanks,

Kevin
21 REPLIES 21

simonmags
Champ in-the-making
Champ in-the-making
do i need to start a new thread so that people actually reply? if that's the case why don't you close this thread!

kevinr
Star Contributor
Star Contributor
To run Alfresco 2.1 against Liferay you need the Liferay 4.3+tomcat bundle. You will also need the latest Alfresco code from HEAD SVN for this to work i.e. it will not work corectly with 2.1 RC1 release. Then the steps are relatively simple:

. Unpack Alfresco 2.1 WAR to temp location
. Delete WEB-INF/lib/portlet-api-lib.jar
. Modify WEB-INF/web.xml to add "/WEB-INF/faces-config.xml" to Faces config files list:
   <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-custom.xml,/WEB-INF/faces-config-enterprise.xml</param-value>
   </context-param>
. Add faces-config.xml, liferay-display.xml, liferay-portlet.xml to WEB-INF (see below)
. Repack WAR file
. Deploy WAR to C:\Documents and Settings\<username>\liferay\deploy (or whereever your deploy dir is set) and start Liferay

The additional files mentioned above you need i've placed here:
http://www.kevs3d.co.uk/dev/liferay43files.zip

I'll move those to an Alfresco server once they are back up (they have been hit by the severe flooding across the UK).

Thanks,

Kevin

simonmags
Champ in-the-making
Champ in-the-making
thanks very much for the Kevin, will try it tonight. By the way I am running Linux not windows, so I hope everything is still just the same.

jonas
Champ in-the-making
Champ in-the-making
Hi,

You can find Instructions for Do-It-Yourselfers -
Liferay Portal(4.3), Alfresco Portlet (2.1), LDAP and SSO full integration -
at

http://liferay.cignex.com/cignex/Liferay-Full-Integration.doc

And Real Demo (Linux Server) might show you what you expect

at

http://liferay.cignex.com/

Good Luck!

lawrencemagiera
Champ in-the-making
Champ in-the-making
Jonas,

I visited liferay.cignex.com and attempted to configure the "Alfresco Content" portlet but was unable to do so.

Is it possible to post instructions for that task?

My goal is to have a Liferay "Alfresco Content" portlet configured such that users can use it to interact only with a specific space in Alfresco (the "jonas" space, for example, on your server).

Thanks a million for your help,
Larry

jonas
Champ in-the-making
Champ in-the-making
Hi Larry,

There is one bug in "Alfresco content" (web services portlet) at liferay.cignex.com. It is expected to be fixed soon. Detailed instructions will come soon after tests were passed.

if you download the whole system and install it in your local machine "locahost" port "8080", you will make "Alfresco content" working well.

Here is an option to view alfresco content by IFrame WebDAV portlet. By this, you can do similar job as well as that in Alfresco content web services portlet.

in CAS loging page, login as

joebloggs / joe

First time to use WebDAV, input admin/admin for WebDAV.

check "My Docs", navigate to "jonas". You will find one file "Test1".

How to configure this?

Just Go to configuration of "My Docs" portlet and configure it.

You may just replace

http://liferay.cignex.com:8092/alfresco/webdav

with your own Alfresco WebDAV. 

Good luck!

jonas
Champ in-the-making
Champ in-the-making
Hi Larry,

As promised, I fixed the bug - in "Alfresco content" at liferay.cignex.com.

in CAS login page, log in as

jonas/jonas        (1)
joebloggs/joe     (2)



etc.

1) for SSO plus LDAP against Liferay Portal, Alfresco Portlet, and Alfresco compliant standalone application, ( and Alfresco content web service portlet).

2) for Alfresco content web service portlet and Alfresco content WebDAV IFrame Portlet.

Good Luck!

edfialk
Champ in-the-making
Champ in-the-making
Hello all, I'm having troubles deploying Alfresco into Liferay 4.3.1.

When I startup/deploy Liferay, I get:
INFO: Server startup in 13305 ms
20:54:18,609 INFO  [AutoDeployDir:76] Processing alfresco.war
20:54:18,609 INFO  [PortletAutoDeployListener:67] Deploying package as a web application
20:54:18,625 INFO  [PortletAutoDeployListener:77] Copying portlets for C:\Documents and Settings\Administrator\liferay\deploy\alfresco.war
  Expanding: C:\Documents and Settings\Administrator\liferay\deploy\alfresco.war into C:\Liferay\ext\servers\tomcat\temp\20070830205418640
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF\jsp\liferay\wai
  Copying 1 file to C:\Liferay\ext\servers\tomcat\temp\20070830205418640\WEB-INF\jsp\liferay\wai
  Copying 2424 files to C:\Liferay\ext\servers\tomcat\bin\..\webapps\alfresco
  Copied 230 empty directories to 1 empty directory under C:\Liferay\ext\servers\tomcat\bin\..\webapps\alfresco
  Copying 2 files to C:\Liferay\ext\servers\tomcat\bin\..\webapps\alfresco
  Deleting directory C:\Liferay\ext\servers\tomcat\temp\20070830205418640
20:54:30,484 INFO  [PortletAutoDeployListener:83] Portlets for C:\Documents and Settings\Administrator\liferay\deploy\alfresco.war copied successfully

20:54:32,843 INFO  [PluginPackageHotDeployListener:74] Reading plugin package for alfresco
20:54:32,843 WARN  [PluginPackageHotDeployListener:123] Plugin package on context alfresco cannot be tracked because this WAR does not contain a lifer
ay-plugin-package.xml file
20:54:37,890 WARN  [PluginPackageUtil:114] Unable to communicate with repository http://plugins.liferay.com/official
20:54:40,906 INFO  [PluginPackageHotDeployListener:187] Plugin package alfresco/alfresco/unknown/war registered successfully
20:54:40,906 INFO  [PortletHotDeployListener:127] Registering portlets for alfresco
Aug 30, 2007 8:54:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 30, 2007 8:54:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
20:54:40,921 INFO  [PluginPackageHotDeployListener:74] Reading plugin package for alfresco
20:54:40,921 WARN  [PluginPackageHotDeployListener:123] Plugin package on context alfresco cannot be tracked because this WAR does not contain a lifer
ay-plugin-package.xml file
20:54:40,921 INFO  [PluginPackageHotDeployListener:221] Plugin package alfresco/alfresco/unknown/war unregistered successfully

Any idea what could cause a random SERVER: Error listenerStart that is apparently unrecoverable?

Mucho appreciation in advance.
-Ed

edfialk
Champ in-the-making
Champ in-the-making
I noticed this error in the localhost log of Liferay:

Aug 31, 2007 4:59:15 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.kernel.servlet.PortletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
   at com.liferay.util.bridges.wai.WAIPortlet.<clinit>(WAIPortlet.java:195)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
   at java.lang.Class.newInstance0(Class.java:350)
   at java.lang.Class.newInstance(Class.java:303)

LogFactory class not found….I can't find a LogFactory class anywhere, I wonder where that's supposed to come from?

cricalix
Champ in-the-making
Champ in-the-making
Having been battling with this myself, you need to get the Apache Commons Logging components from http://commons.apache.org/downloads/download_logging.cgi, unpack the archive, grab the three JAR files and drop them in [tomcatdir]/lib/ext (when using the liferay/tomcat bundle, probably just lib on a normal tomcat).

That'll make the severe error go away.

I still don't get Alfresco showing up in my portlet list though.