doblek wrote: |
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:
Code: |
<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
Code: |
<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?
原文:
http://forums.alfresco.com/viewtopic.php?p=17672&sid=94b462c7874083e2a3a84c85781358fc