<o:p> </o:p>
在weblogic8.1下部署roller
1. 执行数据库脚本 WEB-INF/dbscripts/oracle/createdb.sql
2. 为数据库设置数据源名称为: jdbc/rollerdb,
配置mail的jndi名称为mail/Session,properties里配置相应的属性
如: mail.smtp.host=10.147.142.84
(10.147.142.84是邮件服务器)
3. 修改hibernate.cfg.xml,以下配置,注意,hibernate的版本最好是3.2以上
<o:p></o:p>
<property name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactoryproperty>
4. 修改roller-custom.properties,注意这个是客户定制的一些配置,默认配置是在roller.properties,
<o:p> </o:p>
<o:p> </o:p>
#set uploade directory <o:p></o:p>
uploads.dir=D:/bea/user_projects/domains/blogdomain/roller/roller_data/uploads<o:p></o:p>
<o:p> </o:p>
#set search index directory<o:p></o:p>
search.index.dir=D:/bea/user_projects/domains/blogdomain/roller/roller_data/search-index<o:p></o:p>
<o:p> </o:p>
#set user register password whether or not encrypt<o:p></o:p>
passwds.encryption.enabled=false<o:p></o:p>
<o:p> </o:p>
#set hibernate dialect, also can modify hibernate.cfg.xml<o:p></o:p>
hibernate.dialect=org.hibernate.dialect.Oracle9iDialect<o:p></o:p>
<o:p> </o:p>
5. 注意:部分程序是没有源码的,可参考相关的jar包<o:p></o:p>
<o:p> </o:p>
roller-business.jar 业务逻辑,映射文件等<o:p></o:p>
roller-web.jar 展现逻辑<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
6. 设置应用服务器使用UTF-8编码以使国际化(I18N)正常工作
本文介绍如何在WebLogic 8.1上部署Roller博客系统,包括数据库配置、数据源设置、邮件服务配置及Hibernate参数调整等步骤,并提供了一些关键配置文件的修改建议。
9276

被折叠的 条评论
为什么被折叠?



