JkMount only applies to JK (mod_jk.so), not JK2 (mod_jk2.so). Mod_jk2.so
has no idea what to do with JkMount.
If you want a quick answer, switch out mod_jk2.so for mod_jk.so, and you
will probably start seeing results, maybe not exactly what you want, but a
lot more to go on so that you can tweak it.
If you want to stick with JK2, you'll need to either setup
uriworkermap.properties file, or use JkUriSet in httpd.conf instead of
JkMount.
There are HOWTOs available on the net, and there is considerable material in
the archives on this, as well as the current JK2 documentation on the Tomcat
site.
John
-Original Message-
From: Holger Klawitter [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:17 AM
To: Tomcat Users List
Subject: apache does not talk to tomcat via jk2(ajp13)
Hi there,
I am trying to make apache 2.0.43 with tomcat 4.1.12, via jk2
(via ajp13
protocol, under linux).
However I only get various errors and I cannot make any sense
out of it.
(They are at the very bottom of this mail.)
Is there a set of demo files for this kind of connection? Or
is there a reason
that one should not try to accomplish this connection?
Or is there something obviously wrong with the following
configuration?
(Tomcat itself [localhost:8080/app/index.jsp] works, Apache
[localhost/some_other_page] Works as well)
/etc/httpd/conf/httpd.conf-
LoadModule jk2_module modules/mod_jk2.so
include /etc/httpd/conf/jk2.conf
/etc/httpd/conf/jk2.conf---
JkWorkersFile /usr/opt/applications/tomcat/conf/jk2.properties
JkLogFile /usr/opt/applications/apache/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y]
JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories
JkMount /app/* worker1
JkMount /*.jsp worker1
/usr/opt/applications/tomcat/conf/jk2.properties
# Define l worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=locahost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
/usr/opt/applications/tomcat/conf/serverl.xml--(excerpt)-
Server
...
Service name=Tomcat-Standalone
...
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=10 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
...
Engine...
...
/Engine
/Service
The rest is pretty much default (warp stuff commented out).
/Server
The only hint that there IS somethign going wrong:
[error] workerEnv.init() create slot epStat.0 failed
[error] lb.service() worker failed ajp13:localhost:8009
[error] lb.service() unrecoverable error...
[error] mod_jk.handler() Error connecting to tomcat 12
[error] workerEnv.init() create slot epStat.1 failed
[error] lb.service() worker failed ajp13:localhost:8009
[error] lb.service() unrecoverable error...
[error] mod_jk.handler() Error connecting to tomcat 12
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]