jivejdon3.0在Tomcat5.5.26配置与运行。

09-01-31 sunusts
  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修改过]

         

banq
2009-02-02 10:11
非常感谢 将加入文档

猜你喜欢