RE: apache does not talk to tomcat via jk2(ajp13)

2003-01-27 Thread Turner, John

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]




RE: apache does not talk to tomcat via jk2(ajp13)

2003-01-27 Thread Andres Montiel
I too encounter the same problem. I checked the docs on
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html. However,
it seems that it still shows wrong commands for jk2. For example, on
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html ,
JkMount is still posted
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html#mod_jk%20Directives).

If someone knows the correct info / settings for jk2, could some please
post it here? :)

- Andres

On Tue, 2003-01-28 at 01:54, Victor Lewis wrote:
 Those are JK configuration directives, not JK2 configuration.  See
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html for how to
 configure JK2.
 
 -Victor




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: apache does not talk to tomcat via jk2(ajp13)

2003-01-27 Thread Ignacio J. Ortega
Andres,

 
 I too encounter the same problem. I checked the docs on
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
 . However,
 it seems that it still shows wrong commands for jk2. For example, on
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html ,
 JkMount is still posted
 (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowt
 o.html#mod_jk%20Directives).
 

Althought i can coincide with you that the documentation for JK/JK2 is
far from perfect, the 2 last documents you point out are jk docos
transformed to the new look, not jk2 docs, this directory bundles jk and
jk2 docos together under jk2 directory.. 

TO take a look at apache directives for JK2 see at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html#S
erver-specific%20configuration it must be clarified thought, any patches
are welcomed as ever ;)..

Saludos, 
Ignacio J. Ortega 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]