---
title: "在weblogic8.1下部署roller3.1"
author: "tphaofang"
date: "2007-09-27T16:29:47Z"
tags: []
slug: "weblogic8-1-roller3-1"
draft: false
lastmod: "2007-09-27T16:29:47Z"
id: 127649
url: "https://tphaofang.iteye.com/blog/127649"
---

&lt;o:p&gt; &lt;/o:p&gt;

### 在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以上

 

  &lt;o:p&gt;&lt;/o:p&gt;

     &lt;property name="hibernate.query.factory\_class"&gt;org.hibernate.hql.ast.ASTQueryTranslatorFactoryproperty&gt;

 

4.  修改roller-custom.properties，注意这个是客户定制的一些配置,默认配置是在roller.properties，

&lt;o:p&gt; &lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

  #set uploade directory &lt;o:p&gt;&lt;/o:p&gt;

uploads.dir=D:/bea/user\_projects/domains/blogdomain/roller/roller\_data/uploads&lt;o:p&gt;&lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

#set search index directory&lt;o:p&gt;&lt;/o:p&gt;

search.index.dir=D:/bea/user\_projects/domains/blogdomain/roller/roller\_data/search-index&lt;o:p&gt;&lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

#set user register password whether or not encrypt&lt;o:p&gt;&lt;/o:p&gt;

passwds.encryption.enabled=false&lt;o:p&gt;&lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

#set hibernate dialect, also can  modify hibernate.cfg.xml&lt;o:p&gt;&lt;/o:p&gt;

hibernate.dialect=org.hibernate.dialect.Oracle9iDialect&lt;o:p&gt;&lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

5\. 注意：部分程序是没有源码的，可参考相关的jar包&lt;o:p&gt;&lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

roller-business.jar 业务逻辑，映射文件等&lt;o:p&gt;&lt;/o:p&gt;

roller-web.jar       展现逻辑&lt;o:p&gt;&lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

&lt;o:p&gt; &lt;/o:p&gt;

6.  设置应用服务器使用UTF-8编码以使国际化（I18N）正常工作