AnsweredAssumed Answered

Share Portlet In Liferay

Question asked by yellowpoint on Jul 22, 2010
Latest reply on Nov 26, 2010 by ricvieira
Hi,
Im trying to get the example Share portlet to work in Liferay but its not happening. I've followed this blog post on how to do it. I am using Alfresco CE 3.3G and Liferay 6.0.3 (in separate tomcat instances running at different ports).

I followed all the steps outlined in that post exactly except for the one about remote authenticator(step 6). For some reason, Share doesn't pick up webscript-framework-config-custom.xml so instead I put the remote authenticator definition in share-config-custom.xml:


<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>

When I add the portlet in liferay, I get this in the log and there are no exceptions:
DEBUG [web.portlet.ProxyPortlet] Processing portal render request http://localhost:9090//share (scriptUrl=/share/service/sample/cmis/repo)

However, there's nothing displayed in the portlet except for:
The requested resource (/share/service/sample/cmis/repo) is not available

Has anybody got this to work with Liferay 6.0.3? Thanks.

Outcomes