jivejdon3.0在Tomcat5.5.26配置與執行。

sunusts發表於2009-01-31
  OOJDON的“Tomcat環境JiveJdon原始版”(jivejdon3.0),執行在Tomcat6上,我們的環境及應用大部分是在Tomcat5.5.26環境下,經過修改配置檔案,目前已經能正常執行(JDK1.6)。配置方法如下:

1. copy lib-additional\*.jar to ${catalina.home}\common\lib
files list :
annotations-api.jar
antlr-2.7.6.jar
aopalliance.jar
asm-attrs.jar
asm.jar
cglib-2.1.3.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-fileupload.jar
commons-io-1.3.1.jar
commons-pool-1.2.jar
commons-validator.jar
compass.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
ejb3-persistence.jar
el-api.jar
hibernate-annotations.jar
hibernate3.jar
hsqldb.jar
jaas.jar
jakarta-oro.jar
jasper-el.jar
jasper-jdt.jar
jasper.jar
javassist.jar
jdbc2_0-stdext.jar
jdom.jar
jdon-hibernate3x.jar
jdon-struts1x.jar
jdonFramework.jar
jta.jar
log4j.jar
lucene-analyzers.jar
lucene-core.jar
lucene-highlighter.jar
lucene-snowball.jar
mysql-connector-java-5.0.4-bin.jar
picocontainer-1.1.jar
struts.jar
41 files

2. edit catalina.bat , load file of JAAS configuration :
rem ----- Execute The Requested Command ---------------------------------------
set JAVA_OPTS=-Xms128m -Xmx512m -Djava.security.auth.login.config=%CATALINA_BASE%/conf/jaas.config

3. edit ${catalina.home}/conf/server.xml :
<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="JdonForumRealm"
userClassNames="com.jdon.jivejdon.auth.jaas.User"
roleClassNames="com.jdon.jivejdon.auth.jaas.Role"
/>

3. Create file ${catalina.home}/conf/jaas.config
JdonForumRealm {
com.jdon.jivejdon.auth.jaas.JdonForumLoginMoudle required;
};

4、edit file ${catalina.home}/context.xml , configure data resource
<Resource name="jdbc/JdonForum"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jdonforum?useUnicode=true&characterEncoding=UTF-8" />

5. Create DataBase jdonforum
In MySql, create database jdonforum:
c:\mysql5\bin>mysql -u root
mysql>create database jdonforum;
mysql>exit;

6. run startup.bat, and shutdown.bat ,deploy jdonforum.war.

7. edit ${catalina.home}/webapps/jdonforum/WEB-INF/classes/log4j.properties
log4j.appender.R.File=E:/tomcat/logs/jdonforum.log =>
log4j.appender.R.File=${catalina.home}/logs/jdonforum.log

8、run startup.bat, restart Tomcat 5-5
(1)In browser ,locate http://localhost:8080/jdonforum ,login a user ,this username is admin ,he is an administrator.
(2) logon as admin , in forum management , create forums.



[該貼被sunusts於2009-01-31 16:53修改過]

[該貼被sunusts於2009-01-31 16:57修改過]

[該貼被sunusts於2009-01-31 17:00修改過]

相關文章