uPortal安装

需要环境
sun jdk 1.5.x
apache ant 1.6.5
apache tomcat 5.5.17
postgreSQL 7.1-8.1或oracle 8i-10g(不建议使用mysql)
数据库jdbc驱动
1.配置JAVA_HOME,ANT_HOME环境变量,并加入PATH环境变量%JAVA_HOME%/bin;%
ANT_HOME%/bin;
2.创建数据库帐号和数据库
3.解压uPortal 2.5.x的压缩包
4.解压tomcat 5.5.17
5.copy数据库JDBC驱动到/lib
6.编辑文件/build.properties (以下以版本比较描述方式描述修改,-代表删除该行,+
代表添加该行),可根据自己需要调整
- server.home=/JavaClasses/jakarta-tomcat-5.0.28
+ # (tomcat安装目录)
+ server.home=D:/java/up253rc1-tomcat-5.5.17
- webapp.contextFile=uPortal.xml
+ #webapp.contextFile=uPortal.xml
- #webapp.contextFile=uPortal55.xml
+ # (tomcat配置文件模板)
+ webapp.contextFile=uPortal55.xml
- jdbcDriver.jar=${lib.path}/hsqldb.jar
+ # (JDBC驱动)
+ jdbcDriver.jar=${lib.path}/postgresql-8.1-407.jdbc3.jar
7.编辑文件/build.xml
找到deploy target.在<copy todir="${server.home}/shared/lib" file="${portlet
-api.jar}"/>后
+ <copy todir="${server.home}/common/lib" file="${jdbcDriver.jar}"/>
8.修改文件 /properties/rdbm.properties
- jdbcDriver=org.hsqldb.jdbcDriver
- jdbcUrl=jdbc:hsqldb:hsql://localhost:8887
- jdbcUser=sa
- jdbcPassword=
+ # (数据库连接参数)
+ jdbcDriver=org.postgresql.Driver
+ jdbcUrl=jdbc:postgresql://localhost:5432/uportal
+ jdbcUser=uportal
+ jdbcPassword=password
9.修改文件 /properties/portal.properties
+ # (配置Distributed Layout Manager)
-
org.jasig.portal.layout.UserLayoutStoreFactory.implementation=org.jasig.port
al.layout.alm.AggregatedUserLayoutStore
+
org.jasig.portal.layout.UserLayoutStoreFactory.implementation=org.jasig.port
al.layout.dlm.RDBMDistributedLayoutStore
-
org.jasig.portal.layout.UserLayoutManagerFactory.coreImplementation=org.jasi
g.portal.layout.alm.AggregatedLayoutManager
+
org.jasig.portal.layout.UserLayoutManagerFactory.coreImplementation=org.jasi
g.portal.layout.dlm.DistributedLayoutManager

10.修改文件 /properties/db/dbloader.xml
如果该文件中没有你的数据库类型就按照例子格式添加进去,如果已经有了就不用修改
了.
+   <db-type-mapping>
+     <db-name>PostgreSQL</db-name>
+     <db-version>8.1.4</db-version>
+     <driver-name>PostgreSQL Native Driver</driver-name>
+     <driver-version>PostgreSQL 8.1 JDBC3 with SSL (build 407)</driver-
version>
+     <type><generic>LONGVARCHAR</generic><local>TEXT</local></type>
+     <type><generic>VARCHAR</generic><local>VARCHAR</local></type>
+     <type><generic>LONGVARBINARY</generic><local>BYTEA</local></type>
+     <type><generic>VARBINARY</generic><local>BYTEA</local></type>
+     <type><generic>INTEGER</generic><local>integer</local></type>
+   </db-type-mapping>
11.运行cmd ,进入uPortal目录,执行ant dbtest
12.如果BUILD SUCCESSFUL就执行ant initportal
13.如果BUILD SUCCESSFUL就进入打开数据库管理器执行SQL语句(配置Distributed
Layout Manager)
UPDATE up_user_profile SET structure_ss_id=4,theme_ss_id=3 WHERE
theme_ss_id=11
13.运行tomcat-5.5.17/bin/startup.bat
14.打开浏览器访问http://localhost:8080/uPortal/
默认管理员帐号和密码是

admin
goodluck 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值