Thanks this helped a lot. I can now get to main.jsp. I also used this
as reference:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg32735.html
Here are my settings
cvs machine (apache)-
httpd.conf:
# Added for the mod_jk connector
#
# Load mod_jk
#
LoadModule jk_module modules/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /cruisecontrol/* cruise
End cvs machine (apache)-
cvs machine workers.properties
# workers.properties
#
# In Unix, we use forward slashes:
ps=/
# list the workers by name
worker.list=cruise
#
# tomcat server
#
worker.cruise.port=8009
worker.cruise.host=cruise.domainname.com
worker.cruise.type=ajp13
#
# END workers.properties
#
End cvs machine workers.properties
On the Tomcat machine I didn't make this entry but this came in the
default server.xml
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
enableLookups=false redirectPort=8443 debug=0
protocol=AJP/1.3 /
I also have a workers.properties file under conf/jk/ I'm not sure if I
need this?
---Cruise workers.properties (Tomcat)---
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=cvs.domainname.com
worker.ajp13.type=ajp13
#END workers.properties
---End Cruise workers.properties (Tomcat)---
-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 5:12 PM
To: Tomcat Users List
Subject: RE: mod_jk Tomcat and Apache httpd two different machines?
Yes its possible.
I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put
into the diffrent 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
/
I hope this helps you get it running.
-Original Message-
From: James R. Marcus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:17 PM
To: [EMAIL PROTECTED]
Subject: mod_jk Tomcat and Apache httpd two different machines?
I want to run tomcat on our build machine and apache with the Jk
connector on another is this possible?
Are there any good tutorial docs available to do this?
Thanks,
James
-
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]