Hello,

Each Tomcat can be interfaced with a HTTP client with 2 different ways (defined in 
server.xml)
- either with regular HTTP (eg: on port 8080)
- or/and indirectly via Apache (AJP protocol is used, eg port 8007)
If you use HTTP via Apache, Apache will need mod_jk.conf and worker.properties to know 
how to dialogue with Tomcat
If you use only one instance of Tomcat, then the default files (server.xml, 
mod_jk.conf-auto and worker.properties) work well.


Now if you use 2 Tomcats,  you can do:
- in server1.xml
        - HTTP on port 8080)
        - AJP on port 8007)
-in server2.xml
        - HTTP on port 8081)
        - AJP on port 8009)
Each Tomcat will have its own socket for serving HTTP. It is not possible to share a 
socket (eg: 8080) between to Tomcats as you are trying to do.

If you use HTTP via Apache, Apache will need to write your own mod_jk.conf and 
worker.properties. (It is important to realize that the default ones are working only 
when there is the default configuration of Tomcat (ie: only one Tomcat)).

I hope this help,
Xavier Marjou





Reply via email to