Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 69441 invoked from network); 9 Aug 2000 00:37:06 -0000 Received: from atlas.dnai.com (207.181.194.95) by locus.apache.org with SMTP; 9 Aug 2000 00:37:06 -0000 Received: from azoth.dnai.com (azoth.dnai.com [207.181.194.94]) by atlas.dnai.com (8.9.3/8.9.3) with ESMTP id RAA57446 for ; Tue, 8 Aug 2000 17:36:40 -0700 (PDT) Received: from acm.org (dnai-216-15-121-186.cust.dnai.com [216.15.121.186]) by azoth.dnai.com (8.9.3/8.9.3) with ESMTP id RAA80139 for ; Tue, 8 Aug 2000 17:36:39 -0700 (PDT) Sender: tim@azoth.dnai.com Message-ID: <3990A792.AFF1BB3B@acm.org> Date: Tue, 08 Aug 2000 17:36:34 -0700 From: Tim Kientzle Reply-To: kientzle@acm.org X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Startup problems References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Isn't there an FAQ on this? 1) Make sure another copy of Tomcat isn't already running. (We've all accidentally tried running two copies of Tomcat before.) ps -ef | grep java (SysV) ps -auxww | grep java (BSD) 2) Use netstat -a to see which ports are open by other programs. In the default installation, Tomcat tries to open ports 8080 (listens for HTTP requests) and 8007 (listens for AJP requests from Apache). If another program is using one of those, Tomcat will not start. Using additional netstat options in conjunction with fstat, it should be possible to track down which program is using those other ports, but that's a rather tedious process. - Tim "Robert V. Sigillito" wrote: > > I can't get Tomcat to start. I've defined the JAVA_HOME and CLASSPATH and > I keep getting the following: > > [web@test bin]$ ./startup.sh > Guessing TOMCAT_HOME from tomcat.sh to ./.. > Setting TOMCAT_HOME to ./.. > Using classpath: > .:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:./../lib/xml.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/jdk1.2.2/lib/classes.zip:/usr/local/JSDK2.0/lib/jsdk.jar > [webadmin@cybil bin]$ Starting tomcat. Check logs/tomcat.log for error > messages > FATAL:java.net.BindException: Address already in use > java.net.BindException: Address already in use > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386) > at java.net.ServerSocket.(ServerSocket.java:169) > at java.net.ServerSocket.(ServerSocket.java:120) > at > org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) > at > org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.java:186) > at > org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:142) > at > org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) > > I've got this on a machine running RedHat 6.0 that I've have Apache > (w/JServ) installed on. I've tried pointing it to port 8888 and 8080, but > I still get this same problem. I think that the problem is something other > than the ports, but I can't seem to find anything in the Jakarta-Tomcat > docs. > > Bob