普通安装方法
1. 下载路径:
http://portals.apache.org/jetspeed-2/download.html
其中:jetspeed-installer-mininal-2.2.0.jar是管理员版本,jetspeed-installer-demo-2.2.0.jar是demo版本
2. 链接数据库:
mysql5
1) 讲my.ini中的characer set设置为 utf8.(否则启动jetspeed后会出现乱码)
2) 下载mysql-java-connector. 我使用的是v3.0.17. 使用v5.0+的时候会出错,找不到jdbc driver.
3. 安装,配置和启动:
1)安装
%jetspeed-download-path%/java -jar jetspeed-installer-demo-2.2.0.jar
按照提示step by step的安装
2)配置
%jetspeed-installer-path%/bin/
修改catalina.bat, startup.bat, shutdown.bat, service.bat
添加:
set CATALINA_HOME=E:/Tomcat5
3)启动
%jetspeed-installer-path%/bin/startup
jetspeed 使用maven部署到WEB SERVER中的方法
1. 已经安装并可使用maven
d:/jets/
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate /
-DarchetypeGroupId=org.apache.portals.jetspeed-2 / -DarchetypeArtifactId=jetspeed-archetype / -DarchetypeVersion=2.2.0 / -DartifactId=jetexpress / -Dpackage=org.apache.portals.tutorials / -DgroupId=org.apache.portals.tutorials / -Dversion=1.0-SNAPSHOT
2. 在D:/jets/目录中产生了jetexpress目录
D:/jets/jetexpress/下打开: jetspeed-mvn-settings.jsp
<org.apache.jetspeed.server.home>D:/tomcat6</org.apache.jetspeed.server.home> <!-- original server home value: /change/this/apache-tomcat-6.0.18/ --> <org.apache.jetspeed.catalina.version.major>5</org.apache.jetspeed.catalina.version.major> <!-- original server version: 6-->
<org.apache.jetspeed.production.database.default.name>mysql</org.apache.jetspeed.production.database.default.name> <org.apache.jetspeed.production.jdbc.driver.groupId>mysql</org.apache.jetspeed.production.jdbc.driver.groupId> <org.apache.jetspeed.production.jdbc.driver.artifactId>mysql-connector-java</org.apache.jetspeed.production.jdbc.driver.artifactId> <org.apache.jetspeed.production.jdbc.driver.version>5.1.6</org.apache.jetspeed.production.jdbc.driver.version> <org.apache.jetspeed.production.database.driver>com.mysql.jdbc.Driver</org.apache.jetspeed.production.database.driver> <org.apache.jetspeed.production.database.url><![CDATA[jdbc:mysql://127.0.0.1/mydemo?useServerPrepStmts=false&jdbcCompliantTruncation=false]]></org.apache.jetspeed.production.database.url> <org.apache.jetspeed.production.database.user>root</org.apache.jetspeed.production.database.user> <org.apache.jetspeed.production.database.password>root</org.apache.jetspeed.production.database.password>
3. 使用maven 部署到TOMCAT6中。
D:/jets/jetexpress/mvn org.apache.portals.jetspeed-2:jetspeed-mvn-maven-plugin:mvn -Dtarget=all
4. 修改TOMCAT6配置项
修改%tomcat-home%/conf/catalina.properties文件,修改common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar 为:
common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/lib/*.jar,${catalina.base}/common/endorsed/*.jar,${catalina.base}/shared/lib/*.jar,${catalina.base}/server/lib/*.jar
5. 启动TOMCAT6