Jetspeed2.0安装指南

本文介绍如何在Windows XP Professional SP2环境下安装和部署Jetspeed2。包括配置Tomcat以支持Portlet应用管理,通过SVN获取源码,配置build.properties文件,编译初始化及部署流程。

Ant1.5 or higher
       Maven 1.0.2
       Java 1.4.2_02 or higher
       Servlet 2.3 Engine :
         Tomcat 5.5.8 or higher
         Jetty
          Websphere
         Geronimo
         JBoss

系统说明
       Microsoft Windows XP Professional SP2
       Ant 1.6.2
       Maven 1.0.2
       Java 1.5.0_06
       Tomcat 5.5.9
       Mysql 4.1.12

安装步骤
1、 配置 Tomcat
Jetspeed 2 可以通过PALM(Portlet Application Lifecycle Manager Portlet)使用Tomcat的应用管理器来管理Portlet应用。因此需要预先配置一个具有’manager’权限的Tomcat用户。在Tomcat目录下的/conf/tomcat-users.xml文件中添加一个用户。
<user username="j2deployer" password="j2deployer" roles="manager"/>
注:在这里定义的username和password的值必须与后面Jetspeed的build.properties文件中定义的值相同。

在windows系统中使用Tomcat5.5.9必须设置全局的上下文属性’ antiJARLocking’为true。修改Tomcat目录下的/conf/context.xml文件:
<Context antiJARLocking="true">
...
</Context>

2、获取Jetspeed 2源码
Jetspeed工程使用Subversion(SVN)管理源码。在windows系统下可以使用TortoiseSVN。安装后,选择一个文件夹来存放源代码,右键点击文件夹,单击’SVN Checkout …’。在URL of repository中填入’ http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk’,确定后即可从服务器端获得源码。

3、配置
需要在此文件夹下配置一个build.properties文件。示例如下:
# jetspeed 2 home required for build
org.apache.jetspeed.project.home = D:/resources/portal/jetspeed2/Jetspeed2.0

# jetspeed required properties
org.apache.jetspeed.server.home = D:/Program Files/Apache Software Foundation/Tomcat 5.5
org.apache.jetspeed.catalina.version.major = 5.5
org.apache.jetspeed.server.shared = ${org.apache.jetspeed.server.home}/shared/lib
org.apache.jetspeed.deploy.war.dir = ${org.apache.jetspeed.server.home}/webapps
org.apache.jetspeed.services.autodeployment.user = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer

# My SQL Driver Path Example, test and production
org.apache.jetspeed.test.jdbc.drivers.path=./mysql-connector-java-3.0.14-production-bin.jar
org.apache.jetspeed.production.jdbc.drivers.path=./mysql-connector-java-3.0.14-production-bin.jar

# -------------------------------------------------------------------------
# configure MySQL Test DB (only needed when running unit tests)
# -------------------------------------------------------------------------
org.apache.jetspeed.test.database.default.name=mysql
org.apache.jetspeed.test.database.url = jdbc:mysql://localhost:3306/j2test
org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.test.database.user = root
org.apache.jetspeed.test.database.password =
# -------------------------------------------------------------------------
# configure MySQL Production DB
# -------------------------------------------------------------------------
org.apache.jetspeed.production.database.default.name=mysql
org.apache.jetspeed.production.database.url = jdbc:mysql://localhost:3306/j2
org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.production.database.user = root
org.apache.jetspeed.production.database.password =
# -------------------------------------------------------------------------

maven.repo.remote = http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/, \
                    http://dist.codehaus.org/, http://cvs.apache.org/repository

说明:
org.apache.jetspeed.project.home 为工程目录,即源码存放文件夹
org.apache.jetspeed.server.home 为Tomcat安装目录
org.apache.jetspeed.services.autodeployment.user
org.apache.jetspeed.services.autodeployment.password 与Tomcat用户值相同
本例中使用的数据库为Mysql。需要将驱动程序包放在本目录下,同时将其拷贝到Tomcat的/share/lib目录下。

4、编译
初始化
cd ${org.apache.jetspeed.project.home}
maven initMavenPlugin
编译
maven allClean allBuild

5、部署
maven j2:quickStart

6、运行
http://localhost:8080/jetspeed
系统缺省的用户帐号:
username password roles
admin admin admin, manager, user
manager manager manager, user
jetspeed jetspeed manager
user user user
tomcat tomcat   

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值