cancel
Showing results for 
Search instead for 
Did you mean: 

3.4.b integrate with Liferay Portlets

dblessing
Champ in-the-making
Champ in-the-making
I cannot seem to get the Alfresco portlets to work in Liferay.  I am using Alfresco Community version 3.4.b and Liferay 6 (I have also tried Liferay 5.x with exact same results)

I have followed all kinds of instructions, but the latest one I was trying was here: http://wiki.alfresco.com/wiki/Doclib_Portlet
I am attempting this all on the same server running in one instance of Tomcat.

I says to add the endpoint configurations to share-config-custom.xml (I did exactly as shown in the wiki) and to add the authentication elements to alfresco-global.properties (the auth elements shown in that wiki page are slightly wrong, but I didn't type them like that).  I used:

authentication.chain=alfrescoNtlm1:alfrescoNtlm,external1:external
external.authentication.proxyUserName=

Liferay and Alfresco all start up fine, with no errors in the logs.  The portlets deploy successfully and are available to be added to Liferay pages.  I also know it's communicating with my Alfresco server, because if you add the portlets to the front page of Liferay and aren't logged in, it displays a splash page that says Please login to your portal, or something like that.  The error occurs when I login to Liferay.  The portlets all display "Porlet is unavailable at this time" and the logs show:
04:16:49,670 ERROR [jsp:154] org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository

I'm guessing that either my endpoints are correct, or I'm missing some little configuration.  My endpoints all reference localhost:8080 as that is where my Alfresco is deployed.

Can anyone offer me some help?  If you need more information or more from logs, please let me know.  It would be amazing to finally figure out what I'm doing wrong.
21 REPLIES 21

flefoll
Champ in-the-making
Champ in-the-making
I finally successfully configured everything, and it works.
But unfortunately, it doesn't in Multi-Tenancy….
😞
No need to create a JIRA item, comments in source codes show it's already known by the involved developer.

Regards,

Francois

dblessing
Champ in-the-making
Champ in-the-making
Multi-tenancy?  I'm not sure that applies to me.  I'm merely running a single instance of Alfresco.  I could be mistaken about the meaning of multi-tenancy though.

thiagointechne
Champ in-the-making
Champ in-the-making
I am having the same problem of "unable to resolve user from repository", did any one has any clue?
I already made all configuration…

alexbo
Champ in-the-making
Champ in-the-making
i've installed alfresco and integrate this into Liferay.

is there any solution for the "centered" text (navigation …)

thanks for your help

mikeh
Star Contributor
Star Contributor
i've installed alfresco and integrate this into Liferay.

is there any solution for the "centered" text (navigation …)

thanks for your help
No, that's a side-effect of Share using YUI's CSS grid system. It's pretty easy to reset though by editing a couple of Liferay CSS files - use something like Firebug to find the DIVs.

Thanks,
Mike

tw_joshua
Champ in-the-making
Champ in-the-making
Hi communities,

I had the same error.
My installation environment is WIndows 2003 server, Alf 3.4c and Liferay 5.2.3 with the bundle installation of Liferay and Alfresco. The same error message after adding the portlet show "Portlet is temporarily unavailable." and the screen shows
ERROR [PortletServlet:96] javax.portlet.PortletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
javax.portlet.PortletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
…..
…..

Is there anyone have any update to fix this error?

Thanks,
Joshua

tw_joshua
Champ in-the-making
Champ in-the-making
Hi communities,

I had the same error.
My installation environment is WIndows 2003 server, Alf 3.4c and Liferay 5.2.3 with the bundle installation of Liferay and Alfresco. The same error message after adding the portlet show "Portlet is temporarily unavailable." and the screen shows
ERROR [PortletServlet:96] javax.portlet.PortletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
javax.portlet.PortletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
…..
…..

Is there anyone have any update to fix this error?

Thanks,
Joshua

Hi All,

My issues were closed and solved.
Please replace your the whole content of your share-config-custom.xml with the following code. And make sure your Alf user password is same with Liferay.

<alfresco-config>

   <!– Overriding endpoints to reference a remote Alfresco server –>
   <config evaluator="string-compare" condition="Remote">
      <remote>

         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>

         <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.springframework.extensions.webscripts.connector.AlfrescoConnector</class>
         </connector>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoCookie</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>
                 
      </remote>
   </config>

</alfresco-config>

tw_joshua
Champ in-the-making
Champ in-the-making
i've installed alfresco and integrate this into Liferay.

is there any solution for the "centered" text (navigation …)

thanks for your help
No, that's a side-effect of Share using YUI's CSS grid system. It's pretty easy to reset though by editing a couple of Liferay CSS files - use something like Firebug to find the DIVs.

Thanks,
Mike

Hi Mike,

Thanks…Thanks I fixed it on my system.
On my system this issue is caused by
${ALFRESCO_Home}\tomcat\webapps\share\yui\reset-fonts-grids\reset-fonts-grids.css
find "body{text-align:center;}", and change it to "body{text-align:left;}"

Joshua

tw_joshua
Champ in-the-making
Champ in-the-making
i've installed alfresco and integrate this into Liferay.

is there any solution for the "centered" text (navigation …)

thanks for your help

Please find my reply to Mike…
Joshua

dblessing
Champ in-the-making
Champ in-the-making
Will someone please post their working share-config-custom.xml file?  From looking and hundreds of forums and spending days trying to get this integration to work I BELIEVE that my problem is a bad share-config-custom.xml file.

I am asking for the WHOLE share-config-custom.xml file because simply adding in the parts from the wiki isn't working apparently.  I'm wondering if another part of my file isn't mucking things up.

Thanks for your help.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.