cancel
Showing results for 
Search instead for 
Did you mean: 

JetSpeed intergration

luba_s
Champ in-the-making
Champ in-the-making
Hi, I have succesfully deployed Alfresco into JetSpeed as a portlet. I found there are at least two issues that could be solved:

1. Documentation of AlfrescoFacesPortlet class - this class act as a JSR168/MyFaces bridge and is very usefull (not only for JetSpeed) but there is no mention in wiki or documentation.

2. SSO with portal is missing -  I have to log again into alfresco portlet even when i'm already logged in portal. It could be nice if alfresco recognize logged portal user (request.getRemoteUser() ?) and automatically log the user into alfresco. Does anybody tried to solved it??

Thanks
3 REPLIES 3

doblek
Champ in-the-making
Champ in-the-making
Hi,

I'm interested in deploying Alfresco into Jetspeed2 as a portlet…
For the moment, I could only think of a portlet that connects to Alfresco (which is actually a webapp)…

Can you give some advice of how you've done it?

Thanks.

Regards,
Enrique

luba_s
Champ in-the-making
Champ in-the-making
Hi,

I'm interested in deploying Alfresco into Jetspeed2 as a portlet…
For the moment, I could only think of a portlet that connects to Alfresco (which is actually a webapp)…

Can you give some advice of how you've done it?

Thanks.

Regards,
Enrique

Ok, no problem. I'm using Alfresco 2 and JetSpeed 2. You need to pass following steps:
1. Prepare Alfresco server to run JetSpeed:
- Copy JS_HOME/shared/* into ALF_HOME/tomcat/shared/
- Copy JS_HOME/webapps/.war into ALF_HOME/tomcat/webapps/
- Copy JS_HOME/conf/Catalina/localhost/j* into ALF_HOME/tomcat/conf/Catalina/localhost/
- Update alfresco.bat
set JAVA_OPTS=-Xms256m -Xmx1024m -Xss128k -server -XX:MaxPermSize=256m

Start ALF_HOME/alfresco.bat and verify that both http:///localhost:8080/jetspeed and http:///localhost:8080/alfresco are running ok

2. Modify Alfresco.war to act as a portlet
- Remove portal-lib.jar from WEB-INF/lib directory
- Modify web.xml to use 2.4 Servlet API, filter dispatcher:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">

   <filter-mapping>
      <filter-name>Authentication Filter</filter-name>
      <url-pattern>/faces/*</url-pattern>
      <dispatcher>INCLUDE</dispatcher>  <!– put these 3 lines to every filter-mapping  –>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>     
   </filter-mapping>

- Create portlet.xml

<portlet-app id="alfresco" version="1.0">
<portlet id="alfresco">
<description>Alfresco Web Client Portlet</description> <portlet-name>alfresco</portlet-name>

<display-name>Alfresco Web Client Portlet</display-name> <portlet-class>org.alfresco.web.app.portlet.AlfrescoFacesPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports> <portlet-info>
<title>Alfresco Web Client Portlet</title>
<short-title>alfresco</short-title>
</portlet-info>
</portlet>
</portlet-app>

3. Now it would be easy to prepare alfresco.psml and place the portlet on the page you want..

For me it works fine except for SSO with portal. Does Alfresco team prepares patch for it?

doblek
Champ in-the-making
Champ in-the-making
Thanks a lot =D