Jetspeed2.0安装指南

系统需求
       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
 
 

你可能感兴趣的:(Jetspeed2.0安装指南)