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 > -----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="20000" > 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 120000 > [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 120000 > > > > -- > 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]>
