[转载]Jetspeed 2 集成 Alfresco 2

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值