cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to run Alfresco portlets

shobana
Champ in-the-making
Champ in-the-making
Hi,

I am trying to run Alfresco portlets in a portal server based on liferay. I followed these steps

1. Checked-out latest Alfresco source code and generated a war file
2. Introduced deployment descriptors for my app server for making Alfresco run on my app server
3. Followed the steps mentioned here - http://wiki.alfresco.com/wiki/Deploying_2.1WAR_Liferay4.3


The Issue -
Whereas I am able to run Alfresco 2.9 as portletets, with the latest version of source code I am getting the following exception

ERROR com.liferay.portal.deploy.hot.PortletHotDeployListener - java.lang.ClassCastException: org.springframework.beans.factory.BeanCreationException cannot be cast to org.springframework.web.context.WebApplicationContext
java.lang.ClassCastException: org.springframework.beans.factory.BeanCreationException cannot be cast to org.springframework.web.context.WebApplicationContext
        at org.alfresco.web.scripts.portlet.WebScriptPortlet.init(WebScriptPortlet.java:85)
        at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:250)
…. truncated …

Any ideas what I am doing wrong here? I tried changing jdk versions, that did not work.
Just to recheck, I tried deploying version 2.9 and it worked.
Has there been any major change that would invalidate the steps mentioned in the wiki - http://wiki.alfresco.com/wiki/Deploying_2.1WAR_Liferay4.3 ?

Thanks in advance
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
I'm working on Alfresco portal integrations on Alfresco 3.0 and 3.1 and WebScriptPortlet class works correctly for me.
But I have used a stable and Enterprise version of Alfresco.

I suggest you to try using a stable version of Alfresco.

Hope this helps.