Hello,
I've just upgraded to tomcat7 (7.0.100) afterwards I'm unable to
reconfigure it to the pre 7.0.100 behaviour where AJP connector listens
on the public ip address in order to use it with mod_jk. Can someone
help me out to make it works again? My server.xml is:

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
        <Listener className="org.apache.catalina.core.JasperListener" />
        <Listener 
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
        <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
        <Listener 
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
        <GlobalNamingResources>
                <Resource name="UserDatabase" auth="Container"
                        type="org.apache.catalina.UserDatabase"
                        description="User database that can be updated and 
saved"
                        
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                        pathname="conf/tomcat-users.xml" />
        </GlobalNamingResources>
        <Service name="Catalina">
                <Connector port="8080" protocol="HTTP/1.1"
                connectionTimeout="3000"
                URIEncoding="UTF-8"
                redirectPort="8443"
                maxHttpHeaderSize="8192"
                maxThreads="400"
                processorCache="400"
                minSpareThreads="40"
                enableLookups="false"
                acceptCount="100"
                disableUploadTimeout="true"
                />
                <Connector port="8009" protocol="AJP/1.3"
                allowedRequestAttributesPattern=JK_LB_ACTIVATION
                redirectPort="8443"
                URIEncoding="UTF-8"
                connectionTimeout="3000"
                maxThreads="400"
                processorCache="400"
                minSpareThreads="40"
                maxConnections="400"
                enableLookups="false"
                acceptCount="100"
                />
                <Engine name="Catalina" defaultHost="localhost" 
jvmRoute="tomcat-06" >
                        <Realm 
className="org.apache.catalina.realm.LockOutRealm">
                                <Realm 
className="org.apache.catalina.realm.UserDatabaseRealm" 
resourceName="UserDatabase"/>
                        </Realm>
                        <Host name="localhost"  appBase="webapps" 
unpackWARs="true" autoDeploy="true">
                                <Valve 
className="org.apache.catalina.valves.AccessLogValve"
                                        directory="logs"
                                prefix="localhost_access_log." suffix=".txt"
                                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
                        </Host>
                </Engine>
        </Service>
</Server>

The issue seems to be, that even when I add the address property to the above
AJP connector, it does not listen on its internal ip address so it can not be
reached from mod_jk which is running on another host:

(tomcat-06) [/etc/tomcat7] lsof -P -i -n | grep -i tomcat
java      29094 tomcat7   16u  IPv6 4315605      0t0  TCP *:46937 (LISTEN)
java      29094 tomcat7   17u  IPv6 4315606      0t0  TCP *:3000 (LISTEN)
java      29094 tomcat7   19u  IPv6 4316198      0t0  TCP *:42795 (LISTEN)
java      29094 tomcat7   56u  IPv6 4278035      0t0  TCP *:8080 (LISTEN)
java      29094 tomcat7   57u  IPv6 4278036      0t0  TCP 127.0.0.1:8009 
(LISTEN)
java      29094 tomcat7  238u  IPv6 4316200      0t0  TCP 127.0.0.1:8005 
(LISTEN)

Cheers,
        Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to