I also added <Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/lib/apache2/mod_jk.so"
workersConfig="/etc/apache2/workers.properties" />  between </Host> and
</Engine> in the conf/server.xml file

The listeners are only needed if you want Tomcat to generate a mod_jk configuration for you. The files which are auto-generated by the listener are not very good though. I would suggest to write a simple workers.properties yourself.

worker.list=worker1
worker.worker1.host=XXX
worker.worker1.port=YYY

XXX should by the address of the system, on which your Tomcat runs. If it is the same as your Apache system, "localhost" should do it. You can use names or IP address, but the name has to be resolvable during startup of httpd.

YYY is the port number of your Tomcat AJP port. It is not the same as the HTTP port of Tomcat (8090). You will find the port number in your server.xml. There should be a Connector element there for the AJP protocol. By default it is 8009.

Now Apache starts successfully.   I also modified jk_mod section:  JkMount
/*.jsp worker1   as you suggested.

If everything works, you should have a look the the "reference" docs pages for tomcat-connectors, especially those concerning Apache and Workers.

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to