I just started working with Tomcat so I don't know what script is used to start it other than Catalina.sh (the start section pasted below the command output).
It used to work but stopped working recently. I did add a network interface and change the default gateway to point to the new interface. It is probably not related but, I also had a power outage. [r...@localhost logs]# netstat -an | grep 8209 [r...@localhost logs]# netstat -an | grep 8606 [r...@localhost conf]# grep 8209 server.xml <Connector protocol="AJP/1.3" acceptCount="100" bufferSize="2048" connectionTimeout="5000" debug="0" disableUploadTimeout="false" enableLookups="false" maxProcessors="75" minProcessors="1" port="8209" proxyPort="0" redirectPort="8643" scheme="http" secure="false" tcpNoDelay="true" useURIValidationHack="false" useBodyEncodingForURI="true" URIEncoding="UTF-8"></Connector> [r...@localhost conf]# grep 8606 server.xml <Server debug="0" port="8606" shutdown="SHUTDOWN"> [r...@localhost conf]# dmesg | grep -i centos Linux version 2.6.18-164.10.1.el5 (mockbu...@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Jan 7 20:00:41 EST 2010 [r...@localhost bin]# ./catalina.sh version Using CATALINA_BASE: /usr/local/netomat/tomcat Using CATALINA_HOME: /usr/local/netomat/tomcat Using CATALINA_TMPDIR: /usr/local/netomat/tomcat/temp Using JRE_HOME: /usr/jdk1.5.0_17 Server version: Apache Tomcat/5.5.23 Server built: Mar 5 2007 08:25:04 Server number: 5.5.23.0 OS Name: Linux OS Version: 2.6.18-164.10.1.el5 Architecture: i386 JVM Version: 1.5.0_17-b04 JVM Vendor: Sun Microsystems Inc. [r...@localhost bin]# **From Catalina.sh elif [ "$1" = "start" ] ; then shift touch "$CATALINA_BASE"/logs/catalina.out if [ "$1" = "-security" ] ; then echo "Using Security Manager" shift "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \ -Djava.security.manager \ -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \ -Dcatalina.base="$CATALINA_BASE" \ -Dcatalina.home="$CATALINA_HOME" \ -Djava.io.tmpdir="$CATALINA_TMPDIR" \ org.apache.catalina.startup.Bootstrap "$@" start \ >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & if [ ! -z "$CATALINA_PID" ]; then echo $! > $CATALINA_PID fi else "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \ -Dcatalina.base="$CATALINA_BASE" \ -Dcatalina.home="$CATALINA_HOME" \ -Djava.io.tmpdir="$CATALINA_TMPDIR" \ org.apache.catalina.startup.Bootstrap "$@" start \ >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & if [ ! -z "$CATALINA_PID" ]; then echo $! > $CATALINA_PID fi fi ** end of snippet Paul Bourget Isabella Products -----Original Message----- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: Wednesday, August 25, 2010 10:26 AM To: Tomcat Users List Subject: Re: java.net.BindException: Address already in use Well, the ports you're requesting are or have recently been in use. Try: netstat -an | grep 8209 ... just in case someone's given the service a name in /etc/services. Also just check that you've not got the same number in two places in conf/server.xml, for example as the shutdown port. Finally, check none of your scripts are trying to start two instances of the same Tomcat at the same time - it has happened! If it's none of those, come back to us. If you could give us details about your environment (OS version, Tomcat version, Java version) we'd be more likely to give help that's specific to you. I can see Tomcat 5.5.23 in the logs (why so old, by the way?) but have no idea about the others. Finally, what's that Socks socket doing at shutdown? - Peter On 25 August 2010 15:17, Paul Bourget <paul.bour...@isabellaproducts.com>wrote: > I assumed that this indicates be a port conflict before I googled this > problem. Every solution I found said "find and resolve the port > conflict". I cannot find the conflict. > > > > > > [r...@localhost logs]# netstat -a | grep 8209 > > [r...@localhost logs]# > > > > [r...@localhost logs]# netstat -a | grep 8606 > > [r...@localhost logs]# > > > > [r...@localhost logs]# ps -ef | egrep 'httpd | apache | tomcat | > catalina' > > root 3036 1 0 Aug24 ? 00:00:00 Xvnc :5 -desktop > localhost.localdomain:5 (root) -httpd /usr/share/vnc/classes -auth > /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth > /root/.vnc/passwd -rfbport 5905 -pn > > > > > > Here's the log output > > > > [r...@localhost logs]# more catalina.2010-08-24.log > > Aug 24, 2010 1:51:16 PM org.apache.catalina.startup.Catalina load > > INFO: Initialization processed in 570 ms > > Aug 24, 2010 1:51:16 PM org.apache.catalina.core.StandardService start > > INFO: Starting service Tomcat-Standalone > > Aug 24, 2010 1:51:16 PM org.apache.catalina.core.StandardEngine start > > INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 > > Aug 24, 2010 1:51:16 PM org.apache.catalina.core.StandardHost start > > INFO: XML validation disabled > > Aug 24, 2010 1:51:42 PM org.apache.jk.common.ChannelSocket init > > ** > > INFO: Port busy 8209 java.net.BindException: Address already in use > > ** > > Aug 24, 2010 1:51:42 PM org.apache.jk.common.ChannelSocket init > > INFO: JK: ajp13 listening on /0.0.0.0:8210 > > Aug 24, 2010 1:51:42 PM org.apache.jk.server.JkMain start > > INFO: Jk running ID=1 time=1/89 config=null > > Aug 24, 2010 1:51:42 PM org.apache.catalina.startup.Catalina start > > INFO: Server startup in 25506 ms > > ** > > Aug 24, 2010 1:51:42 PM org.apache.catalina.core.StandardServer await > > SEVERE: StandardServer.await: create[8606]: > > java.net.BindException: Address already in use > > at java.net.PlainSocketImpl.socketBind(Native Method) > > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) > > at java.net.ServerSocket.bind(ServerSocket.java:319) > > at java.net.ServerSocket.<init>(ServerSocket.java:185) > > at > org.apache.catalina.core.StandardServer.await(StandardServer.java:363) > > at org.apache.catalina.startup.Catalina.await(Catalina.java:616) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:576) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) > > Aug 24, 2010 1:51:43 PM org.apache.catalina.core.StandardService stop > > INFO: Stopping service Tomcat-Standalone > > Aug 24, 2010 2:29:02 PM org.apache.catalina.connector.Connector pause > > SEVERE: Protocol handler pause failed > > java.net.SocketException: Network is unreachable > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > > at java.net.Socket.connect(Socket.java:520) > > at java.net.Socket.connect(Socket.java:470) > > at java.net.Socket.<init>(Socket.java:367) > > > > > > > > > > > > Paul Bourget > > Director, Network Operations > > Isabella Products > > 9 Damonmill Square, Suite 4A > > Concord, MA 01742 > > 978 287 0007 Ext 123 > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org