Ritesh Agrawal wrote: > currently I am configuring OpenNMS(http://opennms.org) for our > servers . It requires Tomcat,J2SDK,postgresql etc. When i installed > tomcat(with J2SDK offcourse) only. Tomcat works properly , but when i > installed opennms , it crashes. becoz openNMS adds some lines of code in > /var/tomcat4/conf/server.xml > *************************************************************** > > <Context path="/opennms" docBase="opennms" debug="0" > reloadable="true"> > <Logger className="org.opennms.web.log.Log4JLogger" > homeDir="/opt/OpenNMS"/> > <Realm > className="org.opennms.web.authenticate.OpenNMSTomcatRealm" > homeDir="/opt/OpenNMS"/> > </Context> > > ************************************************************************* > after installing openNMS , Tomcat begin to crash after restarting > and show these message... > ***************************************************************** > Stopping tomcat4: Using CATALINA_BASE: /var/tomcat4 > Using CATALINA_HOME: /var/tomcat4 > Using CATALINA_TMPDIR: /var/tomcat4/temp > Using JAVA_HOME: /usr/java/j2sdk1.4.2_03 > Catalina.stop: java.net.ConnectException: Connection refused > java.net.ConnectException: Connection refused > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) > at java.net.Socket.connect(Socket.java:452) > at java.net.Socket.connect(Socket.java:402) > at java.net.Socket.<init>(Socket.java:309) > at java.net.Socket.<init>(Socket.java:124) > at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) > at org.apache.catalina.startup.Catalina.process(Catalina.java:180) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > [FAILED] My guess is this is due to inability of some threads(standalone 'workers') in Tomcat to bail out (Maybe due to lack of CPU memory resources or bad code: A thread dump is more helpful) Simple solution is to check whether tomcat was still running by giving a $ps auxw | grep catalina and kill the process using #kill -9 <PID> ## the second column in the previous output. Single line command that works for me is #kill -9 `ps auxw | grep catalina | awk '{print $2}'` Nagios is a more popular FLOSS NMS package.
-Tarun _______________________________________________ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/