Here is the info:
I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put
into the different config files:
httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
Then I added a worker2.properties in Apache/conf/ like this:
[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log
[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0
# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0
[channel.socket:localhost:8010]
port=8010
host=127.0.0.1
debug=0
# Example socket channel, explicitly set port and host.
# [channel.socket:localhost:8009]
# port=8009
# host=127.0.0.1
# Example UNIX domain socket
# [channel.un:/usr/local/tomcat/work/jk2.socket]
# tomcatId=localhost:8009
# debug=0
# define the worker
[ajp13:localhost:8010]
#channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8010
# define the worker
# Announce a "status" worker
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8010
[uri:/javaroom/*]
worker=ajp13:localhost:8010
[status:status]
[status:]
info=Status worker,displays run time informations
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=status:status
[uri:/status/*]
worker=status:status
#---- end of workers2.properties----------------
Finally, I configured this Connector in the Tomcat server.xml:
-------------------
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8010"
minProcessors="5" maxProcessors="250"
acceptCount="10" debug="0"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" /
-----Original Message-----
From: Joaquin Corchero [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 11:15 AM
To: Tomcat Users List
Subject: Re: Connecting Apache 2.0.47 to Tomcat 4.0.6
Can you send me the tittle of the message (I signed up today)
Thank you very much
----- Original Message -----
From: "Asif Chowdhary" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 3:49 PM
Subject: RE: Connecting Apache 2.0.47 to Tomcat 4.0.6
I think Apache 2.0 works with mod_jk2. and the configuration is very
different
from mod_jk1.2. The directives such as JkWorkersFile JKMount dont work with
mod_jk2.
-----Original Message-----
From: Ahmad, Kashif [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 10:42 AM
To: '[EMAIL PROTECTED]'
Subject: Connecting Apache 2.0.47 to Tomcat 4.0.6
Hi All:
I have a question and hope someone can answer it. I have a client that is
trying to install Apache 2.0.47 with Tomcat 4.0.6. The application he is
trying to run comes with instructions on how to configure Apache 2.0.43 with
Tomcat 4.0.4 with mod_jk_1.2. Do the same instructions apply to with the
Apache 2.0.47 with Tomcat 4.0.6? I've been able to get him so far to the
point where he can access the application on the Tomcat internal HTTP on the
default port 8080. However, when he connects with Apache on port 80, he
gets a mis-configuration error.
Here are the instructions as provided for the application for configuring
Apache 2.0.43 and Tomcat 4.0.4
*****Start Configuration Instruction*****
4.2.2 Configure the Apache HTTP Server for Teams
Add the following lines at the end of httpd.conf in /opt/apache/conf:
#
# Configure mod_jk
#
LoadModule jk_module /opt/apache/modules/mod_jk.so
JkWorkersFile /opt/tomcat/conf/jk/workers.properties
JkLogFile /opt/tomcat/logs/mod_jk.log
JkLogLevel error
Alias /teams /opt/tomcat/webapps/teams
JkMount /teams/*.do ajp13
JkMount /teams/*.jsp ajp13
Alias /teamsadmin /opt/tomcat/webapps/teamsadmin
JkMount /teamsadmin/*.do ajp13
JkMount /teamsadmin/*.jsp ajp13
4.2.3 Configure Tomcat for TEAMS
4.2.3.1 Set Up Environment Variables
* Set JAVA_HOME to the JDK or JRE installation directory.
* Set TOMCAT_HOME to the Tomcat installation directory, e.g., /opt/tomcat.
4.2.3.2 Modify the Tomcat Startup Script
1. Add the following configuration information near the top of the file
$TOMCAT_HOME/bin/catalina.sh right after the comment section. Note that
it must be added as one line. Also, when copying from text editors, ensure
that
there are no hard returns in the entry between JAVA_OPTS= and
DORBagentPort settings.
# Define JAVA_OPTS
JAVA_OPTS="-Xbootclasspath/p:/opt/teams/jars/vbjapp.jar:/
opt/teams/jars/vbjorb.jar:/opt/teams/jars/swingall.jar -Xss2m -Xmx128m
-Dfile.encoding=ISO8859_1 -Djava.compiler=NONE -DSERVLET=true
-DTEAMS_HOME=/opt/teams -DLOG_FILE=/opt/tomcat/logs/teams.log
-DTEAMS_DEBUG_LEVEL=6 -DORBagentPort=15000"
2. Also in the $TOMCAT_HOME/bin/catalina.sh file, append the following jar
files to the second CLASSPATH setting:
a. If you are using JRE 1.3, add:
b. If you are using JDK 1.3 (see following example), add:
CLASSPATH="$CLASSPATH":/opt/teams/jars/tools.jar:"$ORACLE_HOME/jdbc/lib/
classes12.zip"
CLASSPATH="$CLASSPATH":"$ORACLE_HOME/jdbc/lib/classes12.zip"
4.2.3.3 Create AJP Connecter Workers File
Create a file /opt/tomcat/conf/jk/workers.properties with the following
content (note that the value of worker.ajp13.port is an example):
The AJP Connector Port (5044) must also be put into the server.xml file,
located in the$TOMCAT_HOME/conf directory, in the section called "Define an
AJP 1.3 Connector."
# Setup for Solaris system
#
workers.tomcat_home=/opt/tomcat/
workers.java_home=/opt/jdk1.3.1
ps=/
worker.list=ajp13
# Definition for Ajp13 worker
#
worker.ajp13.port=5044
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]