Tomcat 6 for Windows won't start
I have Tomcat 6 installed on a W2K3 R2 Enterprise SP2 VM. It was running just fine. VMware had a stroke, and I had to reboot the physical host. When this VM came back up, Tomcat won't start. The only error I can see is stdout_log, and it says: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Pretty cryptic, and no useful details that I can discern. But that's what it gives me. How do I find and fix the problem? -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat throwing some weird errors
RHEL5.2, tomcat5-5.5.23-0jpp.7.el5_2.1, Sun Java JDK 1.6.0u13 [r...@mda-services3 logs]# service tomcat5 start Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm /usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm [ OK ] [r...@mda-services3 ~]# ls -l /usr/share/tomcat5/common/lib/[jdbc-stdext].jar lrwxrwxrwx 1 root root 38 Jun 25 18:49 /usr/share/tomcat5/common/lib/[jdbc-stdext].jar - /could/not/find/extension/for/this/jvm I do have java-1.4.2-gcj-compat and java-1.4.2-gcj-compat-devel which provide /usr/lib/jvm-exports/java/jndi.jar and /usr/lib/jvm-exports/java/jdbc-stdext.jar Another system with the same setup works just fine. This system, though, when Tomcat starts, resets the symlinks like above. Is there something else that needs to be restarted or installed or set or ??? to make it leave the symlinks? Or some other package from Sun that includes jndi.jar, jaas.jar, and jdbc-stdext.jar? -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Disable AXIS services list?
I Googled for this, and found a reference to setting disableServiceList to true, but that didn't work. Tomcat is 6.0.18 running under W2K3 Server if that makes a difference. Thanks. -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
ajp_read_header: ajp_ilink_receive failed
[Sun Mar 29 04:05:33 2009] [error] ajp_read_header: ajp_ilink_receive failed [Sun Mar 29 04:05:33 2009] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost) I get these messages a *lot* in my ssl_error_log Google isn't helping, and I've had no response on the httpd list, so i'm hoping someone here can steer me in the right direction. -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ajp_read_header: ajp_ilink_receive failed
On Mon, Apr 06, 2009 at 05:42:21PM -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 4/6/2009 5:15 PM, John Oliver wrote: [Sun Mar 29 04:05:33 2009] [error] ajp_read_header: ajp_ilink_receive failed [Sun Mar 29 04:05:33 2009] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost) I get these messages a *lot* in my ssl_error_log Google isn't helping, and I've had no response on the httpd list, so i'm hoping someone here can steer me in the right direction. Tomcat version? JVM version? httpd version? mod_proxy_ajp or mod_jk? (looks like mod_proxy_ajp) Firewall involved? RHEL 5.2, httpd-2.2.3-11.el5_1.3, tomcat5-5.5.23-0jpp.7.el5_2.1 There is no firewall... Tomcat and httpd are on the same box. I'm not sure how to check the JVM version... this is the first time I've ever had to worry about Tomcat and Java stuff, so I'm doing a lot of guessing. [r...@mda-services ~]# rpm -qa | grep java java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115 gcc-java-4.1.2-42.el5 java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 Basically, the Java applications are the only things we're worried about. httpd is used as the front end because of SSL and the Tumbleweed validator. It basically hands everything off to Tomcat. It seems to work, even with all of these error messages, but this setup nwas cobbled together by developers. I always figure that error messages are there for a reason, and I'm better off fixing them. Also, Tomcat seems to be pretty unstable and needs to be restarted every week or so, and I wouldn't be surprised if these berrors have something to do with that. I just have no idea how to troubleshoot and tweak this stuff to, hopefully, wind up with a smoothly-running system. -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ajp_read_header: ajp_ilink_receive failed
On Mon, Apr 06, 2009 at 06:08:54PM -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 4/6/2009 5:51 PM, John Oliver wrote: RHEL 5.2, httpd-2.2.3-11.el5_1.3, tomcat5-5.5.23-0jpp.7.el5_2.1 2.2.3 is pretty old... any chance of upgrading to 2.2.11? You're nearly 3 years out of sync with the state-of-the-art. Tell it to Red Hat... There is no firewall... Tomcat and httpd are on the same box. iptables could be interfering, but not likely. Most people don't bother protecting localhost from itself :) Even if the app works? Some of these systems have some default iptables. Others have something else. Until I understand why which is what, I try to let things be. I'm not sure how to check the JVM version... this is the first time I've ever had to worry about Tomcat and Java stuff, so I'm doing a lot of guessing. $ java -version [r...@mda-services ~]# java -version java version 1.6.0_05 Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode) [r...@mda-services ~]# rpm -qa | grep java java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115 gcc-java-4.1.2-42.el5 java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 Hmm... it's probably /not/ your problem, here, but a /lot/ of people have had problems with the gcj version of Java. Fortunately, you're taking care of SSL through Apache httpd: that's where I've heard of lots of incompatibilities and simply incorrect (or very surprising) operation and/or crashes. I would recommend using Sun's Java. I'd also recommend a newer version (they're on 1.6 these days... 1.4 is a dinosaur). I think I am... :-) I'm guessing that version was installed some other way, and the Red Hat packages aren't being used? It seems to work, even with all of these error messages, but this setup nwas cobbled together by developers. So, are you using mod_proxy_ajp? Please post your configuration. I have had much better luck with mod_jk, but I think that's more due to my history with it than anything else: I simply have the experience with mod_jk and not with mod_proxy_ajp. The only config I'm aware of is /etc/httpd/conf.d/proxy_ajp.conf, which consists of lines like: ProxyPass /GmmsL/ ajp://localhost:8009/GmmsL/ I just add another similar line for each app. Also, Tomcat seems to be pretty unstable and needs to be restarted every week or so, and I wouldn't be surprised if these errors have something to do with that. Tomcat itself is super stable. I have never ever had it crash on me. I didn't mean to blame Tomcat itself. I'm sure that whatever problem is because someone hacked at something until it was good enough, and then walked away and forgot all about it :-) I've had the JVM crash crash (for different issues) and I've run out of memory, but Tomcat has never failed me. The most likely reason for server instability is, sadly, your own application. We might be able to help with that, too. That would rock :-) Thanks, Chris. -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ajp_read_header: ajp_ilink_receive failed
On Mon, Apr 06, 2009 at 05:30:49PM -0500, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ajp_read_header: ajp_ilink_receive failed [r...@mda-services ~]# rpm -qa | grep java java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115 gcc-java-4.1.2-42.el5 java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 Hmm... it's probably /not/ your problem, here Actually, if Tomcat is crashing, it likely *is* the problem. gcj has never really made it beyond the toy stage, so that's the first thing to replace. It is very possible that this gcj stuff is just installed, and is otherwise collecting dust. I would recommend using Sun's Java. I'd also recommend a newer version (they're on 1.6 these days... 1.4 is a dinosaur). [r...@mda-services ~]# java -version java version 1.6.0_05 Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode) Definitely. Make sure when moving up to a real JVM that you remove the Tomcat compatibility package that's used only with 1.4 JVMs. Since you're using a 3rd-party repackaged Tomcat, that may be difficult to find; on a real Tomcat, the compatibility files are stored in the follow locations: $CATALINA_HOME/bin/jmx.jar $CATALINA_HOME/common/endorsed/xercesImpl.jar $CATALINA_HOME/xml-apis.jar I don't have any of those files in /var/lib/tomcat5/ which is, I believe, $CATALINA_HOME (it's referred to as $TOMCAT_HOME, and I suppose that might be something different, but... ) While you're upgrading to proper levels of httpd and the JVM, consider installing a real Tomcat from tomcat.apache.org; the 3rd-party ones have files scattered all over, and sometimes change the configuration to the point where behavior is quite different from the standard version. Using the most recent versions of those would break our support from Red Hat. I don't really care about that... I've said we should stop paying them and use CentOS. If using more recent versions winds up being the answer, that would be more ammo for my argument. But if we can make things work properly with the supported versions, at least I can always say, Blame Red Hat... :-) -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ajp_read_header: ajp_ilink_receive failed
On Tue, Apr 07, 2009 at 12:40:42AM +0200, Rainer Jung wrote: [Sun Mar 29 04:05:33 2009] [error] ajp_read_header: ajp_ilink_receive failed [Sun Mar 29 04:05:33 2009] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost) 120006 should be AJP_ENO_HEADER, which means after sending a request to the backend, Apache was not able to receive the headers of the response. This could have multiple reasons, like a timeout while waiting for the response, and maybe also a backend closing a connection due to an idle timeout. You should configure Cping/Cpong on mod_proxy_ajp (with a recent version) to allow for robust detection of a broken backend. OK... What is the CPING / CPONG For Dummies version? :-) I found http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html which doesn't really help me... it presupposes that I know an awful lot more than I do. Is there a walkthrough somewhere that tells me how I'd go about CPINGing and CPONGing that starts with the assumption that I have no idea what they are? :-) -- *** * John Oliver http://www.john-oliver.net/ * * * *** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org