apache-roller-src-3.1.tar.gz 配置過程。
weblogic8.1下部署。
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以上。
<property name="hibernate.query.factory_class">
org.hibernate.hql.ast.ASTQueryTranslatorFactoryproperty>
4. 修改roller-custom.properties,注意這個是客戶定製的一些配置,默認配置是在roller.properties。
uploads.dir=D:/bea/user_projects/domains/blogdomain/roller/roller_data/uploads
#set search index directory
search.index.dir=D:/bea/user_projects/domains/blogdomain/roller/roller_data/search-index
#set user register password whether or not encrypt
passwds.encryption.enabled=false
#set hibernate dialect, also can modify hibernate.cfg.xml
hibernate.dialect=org.hibernate.dialect.Oracle9iDialect
5. 注意:部分程序是沒有源碼的,可參考相關的jar包 (這裏不是很明白???)
roller-business.jar 業務邏輯,映射文件等
roller-web.jar 展現邏輯
6. 設置應用服務器使用UTF-8編碼以使國際化(I18N)正常工作。