JBoss3.0-Tomcat4.03, Apache integration

zhaozj2021-02-16  46

Operator System: Windows 2000 Server 2

Application Server: JBoss3.0-Tomcat4.03

DB: Oracle8.17

JDK: JDK1.31

Web Server apache1.3

First, first install apache, jboss3.0-tomcat4.03 I installed in E: /JBOSS3.0_TOMCAT4.03 and E: / Webserver / Apache directory

Second, the chivalment TOCMAT-Service.xml file is as follows

The default value is what of the jboss / catalina bundle where there

JAKARTA-TOMCAT-4.0.3-Le-JDK14 Is Included as jboss_dist / catalina

->

]>

->

Name = "jboss.web: service = EmbeddedCatalinasx">

& Catalina.home;

Session clustering.

Interval

2000 ->

Verbositylevel = "trace" category = "org.jboss.web.localhost.Engine" />

Prefix = "localhost_access" suffix = ".log"

Pattern = "Common" Directory = "../server/default/log" />

Port = "8080" MINPROCESSORS = "3" maxprocessors = "10" enablelookups = "True"

Acceptcount = "10" debug = "0" connectionTIMEOUT = "60000" />

Port = "8009" MINPROCESSORS = "5" maxprocessors = "75"

Acceptcount = "10" />

Here is the most important:

Port = "8009" MINPROCESSORS = "5" maxprocessors = "75"

Acceptcount = "10" />

And Apache is not defined here. Third, download MOD_JK.DLL from here] http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/win32/i386/mod_jk.dll

After downloading, take it to the Modules directory of Apache.

Fourth, edit the http.conf file under Apache's confed. In the end, add the following lines

LoadModule JK_Module Modules / MOD_JK.DLL

JKWorkersFile Conf / Workers.properties

Jklogfile logs / jk.log

Jkloglevel Warn

JKMount /*.jsp Ajp13

JKMOUNT / Web / * ajp13

JKMOUNT / JMX-Console / * ajp13

// This plus Dongdong you can change from our own situation

All of the Web applications published in JMX-Console / and / Web / JBoss3.0-Tomcat 4.03 so at least 8080 can be accessed by 8080 before you add this / JMX-Console / and / Web / and HTTP: // localhost: 8080 / jmx-console / and http: // localhost: 8080 / web / is successful.

Fourth, save the following as a workers.properties file

Worker.ajp13.port = 8009

Worker.ajp13.host = localhost

Worker.ajp13.type = ajp13

Worker.ajp13.lbFactor = 1

Worker.ajp13.cachesize

Worker.loadbalancer.Type = LB

Worker.loadbalancer.balanced_Workers = ajp13

These are the minimum elements of implementation. Of course you can add it. This file is specified in conf / http.conf, such as jkworkersfile conf / worker.properties, I am in the confed directory, and with http.conf.

After Apache and JBoss-Tomcat, http: // localhost / jmx-console / and http: // localhost / web / are successful browsing, everything OK

转载请注明原文地址:https://www.9cbs.com/read-25260.html

New Post(0)