jivejdon3.0在Tomcat5.5.26配置與執行。
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.
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修改過]
相關文章
- JiveJdon3.0 配置檔案問題
- 【YApi】配置與執行API
- [YApi] 配置與執行API
- 配置 Rational Functional Tester 在 Linux 上執行FunctionLinux
- 保證執行緒在主執行緒執行執行緒
- 執行緒、執行緒與程式、ULT與KLT執行緒
- 執行緒與多執行緒執行緒
- 合理配置執行緒池執行緒
- MyBatis Generator配置及執行MyBatis
- Java執行環境配置Java
- EJB在weblogic下的部署與執行問題Web
- Spring AI 與 Ollama 在本地執行案例原始碼SpringAI原始碼
- JavaScript執行環境與執行棧JavaScript
- Java執行緒中斷與終止執行緒執行Java執行緒
- 多執行緒------執行緒與程式/執行緒排程/建立執行緒執行緒
- birt報表:BIRT報表在TOMCAT下執行環境配置!Tomcat
- DockerSwarm入門(二)配置選項與基本執行環境要求DockerSwarm
- HarmonyOS Stage 模型:程序、執行緒與配置檔案之淺析模型執行緒
- 初次執行 Git 前的配置Git
- Jar 包執行時修改配置JAR
- 我的TeXasStudio執行配置
- 配置並執行Activiti Explorer
- 在 macOS 中執行 FortranMac
- 在NuoDB上執行AsteriskAST
- 在OpenShift中執行容器
- 執行truncate在pl/sqlSQL
- 在window上執行bash
- scp 在後臺執行
- java在windows下執行JavaWindows
- 可以在Windows的"執行"中直接執行的程式Windows
- wine-在mac上執行exe執行檔案Mac
- 自適應查詢執行:在執行時提升Spark SQL執行效能SparkSQL
- 程式與執行緒執行緒
- 執行緒與程式執行緒
- 執行緒與程序執行緒
- Java與執行緒Java執行緒
- 程序與執行緒執行緒
- Spark學習(一)——執行模式與執行流程Spark模式