OK Guys, I've got a really strange one here. I'm trying to upgrade an existing configuration that is working fine under Tomcat 6. The existing setup is: Amazon Web Services instance (VPC with NAT) Windows Server 2008 R2 Datacenter Java JDK1.6.0_43 Tomcat 6.0.36 APR 1.1.23 (comes in the installer) The setup is working fine under this configuration. On the same system, I've installed: Java JDK1.7.0_51 Tomcat 7.0.47 (added -Djava.net.preferIPv4Stack=true to startup parameters) APR 1.1.29 (comes in the installer) I've copied the application to this setup, and made the necessary adjustments to the server.xml to reflect 7.x changes (I think). When I run the new Tomcat7/Java7 configuration, everything appears to startup correctly, and there are no errors in the logs. I can connect using the server's local IE and the configured "local" IP address. I cannot connect from any system, anywhere, using the "external" IP address. I can stop the Tomcat7 and start the Tomcat6 and immediately connect from anywhere. Is there some flag I'm missing for the APR library? I've also tried it with Tomcat 7.0.42 and Java JDK1.7.0_25 which is working correctly in our local test environment, but I can't get it to work on AWS.
For completeness, here's my server.xml and startup log: [server.xml] <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="-1" shutdown="SHUTDOWN"> <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" /> --> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> <Listener className="org.apache.catalina.core.JasperListener" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <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> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="PolyDemo"> <!-- first 2 connectors are for polydyne.com hostnames --> <Connector address="10.4.1.20" port="80" maxHttpHeaderSize="8192" maxThreads="10" enableLookups="false" redirectPort="443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" compression="on" compressableMimeType="text/html,text/xml,text/plain,text/css,text/csv,text/javascript,text/rtf,text/richtext" /> <Connector address="10.4.1.20" port="443" maxHttpHeaderSize="8192" maxThreads="100" enableLookups="false" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" compression="on" compressableMimeType="text/html,text/xml,text/plain,text/css,text/csv,text/javascript,text/rtf,text/richtext" scheme="https" secure="true" SSLEnabled="true" SSLCertificateFile=" path_to_server.crt" SSLCertificateKeyFile=" path_to_server.key" SSLCertificateChainFile="path_to_server_chain.crt" SSLPassword="******" /> <Engine name="PolyDemo" defaultHost="qwdemo.polydyne.com"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="qwdemo.polydyne.com" appBase="PolyDyne_webapps\QuoteWin" unpackWARs="true" autoDeploy="false" deployXML = "false"> <Alias>qwdemo</Alias> <Alias>qwdemo.rfxix.com</Alias> </Host> <Host name="dwdemo.polydyne.com" appBase="PolyDyne_webapps\DesignWin" unpackWARs="true" autoDeploy="false" deployXML = "false"> <Alias>dwdemo</Alias> <Alias>dwdemo.rfxix.com</Alias> </Host> </Engine> </Service> </Server> [catalina.log] Jan 17, 2014 3:32:59 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8. Jan 17, 2014 3:32:59 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Jan 17, 2014 3:33:00 PM org.apache.catalina.core.AprLifecycleListener initializeSSL INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013) Jan 17, 2014 3:33:00 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-apr-10.4.1.20-80"] Jan 17, 2014 3:33:00 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-apr-10.4.1.20-443"] Jan 17, 2014 3:33:00 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1469 ms Jan 17, 2014 3:33:00 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service PolyDemo Jan 17, 2014 3:33:00 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 Jan 17, 2014 3:33:00 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\dwdemo.polydyne.com\manager.xml Jan 17, 2014 3:33:01 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\dwdemo.polydyne.com\polydyne-backend.xml Jan 17, 2014 3:33:02 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\dwdemo.polydyne.com\ROOT.xml Jan 17, 2014 3:33:08 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\dwdemo.polydyne.com\SupplyWin.xml Jan 17, 2014 3:33:12 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\qwdemo.polydyne.com\manager.xml Jan 17, 2014 3:33:12 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\qwdemo.polydyne.com\polydyne-backend.xml Jan 17, 2014 3:33:13 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\qwdemo.polydyne.com\ROOT.xml Jan 17, 2014 3:33:17 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Program Files\Apache Software Foundation\Tomcat 7.0_DEMO7\conf\PolyDemo\qwdemo.polydyne.com\SupplyWin.xml Jan 17, 2014 3:33:21 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-apr-10.4.1.20-80"] Jan 17, 2014 3:33:21 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-apr-10.4.1.20-443"] Jan 17, 2014 3:33:21 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 20752 ms Jeffrey Janner Sr. Network Administrator jeffrey.jan...@polydyne.com<mailto:first.l...@polydyne.com> PolyDyne Software Inc. Main: 512.343.9100 Direct: 512.583.8930 [cid:image002.png@01CC0FB7.4FF43CE0] Speed, Intelligence & Savings in Sourcing