DNS error, no reply from Tomcat and no clues in the log
I'm trying to upgrade to Tomcat 5.5.14 on Windows2000. The JRE is 1.4.2_03. I've deployed the compatability patch, and commented out the Apache Portable Runtime listener from the 'server.xml'. I encountered an error when starting Tomcat for the first time after installation. The service starts normally, but the browser reports a DNS error. Netstat reports that Tomcat is listening on 8080 (for IP 0.0.0.0). But if I telnet to the machine's IP address and connect to port 8080 there is no reply. Perhaps Tomcat is listening on a different IP? Most perplexing, the Tomcat logs show nothing unusual. Below are the (rather short) logs from my Tomcat startup. What's missing here? The Catalina logs stop before the expected 'org.apache.catalina.startup.HostConfig checkResources', WAR deployment and context loading. There are three areas I suspect issues to arise: - The Java environment is a bit weird, with several versions of the JDK on the system. When the Tomcat installer prompted for a JRE, the path suggested was invalid. I opted to use 'D:\j2sdk1.4.2_03\jre' since I can see there is a JRE there, and JAVA_HOME points to 'D:\j2sdk1.4.2_03'. If I enter 'java -version' at the command line, I get: java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) - A JK2 ISAPI redirector is in place, and I'm working the installation around it. This is because we can't restart the World Wide Web publishing service - it's a production service. - There's a separate instance of JRun on the machine, listening on port 8000 I think. Is that the same as the MBean Server? Any suggestions would be helpful. Jakarta Service Log ` [2005-12-21 19:13:07] [info] Running Service... [2005-12-21 19:13:07] [info] Starting service... [2005-12-21 19:13:09] [info] Service started in 1531 ms. Catalina Log ``` Dec 21, 2005 7:13:11 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 21, 2005 7:13:12 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2890 ms Dec 21, 2005 7:13:12 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 21, 2005 7:13:12 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.14 Dec 21, 2005 7:13:12 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 21, 2005 7:13:21 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 21, 2005 7:13:22 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Dec 21, 2005 7:13:22 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/110 config=null Dec 21, 2005 7:13:22 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 10203 ms STDOUT Log ``` Created MBeanServer with ID: 197a37c:1084d05bf2a:-8000:sinccbwb2kp02:1 Localhost Log ``` Dec 21, 2005 7:13:15 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 21, 2005 7:13:15 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 21, 2005 7:13:16 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 21, 2005 7:13:16 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 21, 2005 7:13:18 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 21, 2005 7:13:18 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Regards, Bill Claxton ([EMAIL PROTECTED]) MSN: [EMAIL PROTECTED] Skype: [EMAIL PROTECTED] Blog: http://learningweb.blogspot.com
RE: DNS error, no reply from Tomcat and no clues in the log
Charles, Compare an unused port and an active Tomcat, and there is a difference. Tomcat will clear the screen and wait for input. An unused port will appear to hang there and eventually time out. For our production server, after Tomcat installation the Telnet session appears like its communicating with an unused port (no listener). At 10:32 PM 12/21/2005, you wrote: From: Caldarale, Charles R Subject: RE: DNS error, no reply from Tomcat and no clues in the log From: William Claxton [mailto:[EMAIL PROTECTED] Subject: DNS error, no reply from Tomcat and no clues in the log But if I telnet to the machine's IP address and connect to port 8080 there is no reply. Firewall, perhaps? I just tried this on two different platforms and get no response to a telnet open on an active, verified functional Tomcat port, so the no reply behavior appears to be normal. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Regards, Bill Claxton ([EMAIL PROTECTED]) MSN: [EMAIL PROTECTED] Skype: [EMAIL PROTECTED] Blog: http://learningweb.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Portable Runtime not found on the java.library.path
Running Java JDK 1.4. After upgrading to Tomcat 5.5 I get this error. I have also installed the compatability upgrade for the Java Runtime. The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path. Any suggestion on how to resolve this? Regards, Bill Claxton ([EMAIL PROTECTED]) MSN: [EMAIL PROTECTED] Skype: [EMAIL PROTECTED] Blog: http://learningweb.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Portable Runtime not found on the java.library.path, resolved
At 02:46 AM 12/21/2005, Adam Constabaris wrote: FTP wrote: I face the same problem with: Tomcat 5.5.12 jdk: 1.5.06 and cannot find the library you suggest in order to include it! APR integration isn't yet fully part of the Tomcat distribution, as far as I can tell (I think it's misleading of them to enable the APR listener on startup, because it makes you think you're supposed to use it). I'm not sure how stable the Tomcat developers consider the APR integration, so if you're at all concerned about that, it's probably easier to just comment out the Listener instead. If you want to use the APR libraries, first read http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are precompiled binaries for your platform (Windows only, AFAICT). If not, (a) install APR (http://apr.apache.org); if you use Linux, your distribution may ship the APR in a package. (b) compile libtcnative-1.so by unpacking $TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the instructions there; NOTE if you don't need openSSL support, be warned that --without-ssl switch did not work for me with tomcat-native-1.1.0 (ships with 5.5.12; 1.1.1 with 5.5.14-beta did honor that switch). HTH AC Thank you all. I was able to recreate and resolve the problem on another machine (not the production server). Here's the procedure I followed. 1. Clean install of JRE 1.4.2_03. This is intentionally an older version to recreate environment on the production machine. 2. Clean install of Tomcat 5.5.14. During installation, initially encountered the error: Failed to install Tomcat 5 service. Check your settings and permissions. This was due to fact that, after uninstalling previous version of Tomcat, the Windows service was marked for deletion but not removed. I ran the INSTSRV utility to remove the service, but it failed. Apparently, this issue was encountered only because the Windows Services manager was open on the desktop. After closing and reopening, the service was gone, and Tomcat could install normally. 3. Starting Tomcat encounter the JVM error: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page. 4. Deployed the compatability patch (by copying the files into Tomcat 'bin' and 'common' folders). 5. Restarting Tomcat encountered the APR error: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path. 6. Edited Tomcat 'server.xml' (in the 'conf' folder). Removed the line: Listener className=org.apache.catalina.core.AprLifecycleListener / 7. Restarting Tomcat, everything works fine! Regards, Bill Claxton ([EMAIL PROTECTED]) MSN: [EMAIL PROTECTED] Skype: [EMAIL PROTECTED] Blog: http://learningweb.blogspot.com