Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 18567 invoked by uid 500); 3 Jul 2001 23:50:15 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 18560 invoked from network); 3 Jul 2001 23:50:14 -0000 Received: from femail21.sdc1.sfba.home.com (24.0.95.146) by h31.sny.collab.net with SMTP; 3 Jul 2001 23:50:14 -0000 Received: from cx628443-b.home.com ([24.14.128.40]) by femail21.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010703235014.OWSQ28041.femail21.sdc1.sfba.home.com@cx628443-b.home.com> for ; Tue, 3 Jul 2001 16:50:14 -0700 Message-Id: <5.1.0.14.0.20010703184533.02981390@mail> X-Sender: steveturoff@mail X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 03 Jul 2001 18:47:41 -0500 To: tomcat-user@jakarta.apache.org From: Steven Turoff Subject: RE: Restarting Tomcat on NT In-Reply-To: <9554E64634B57B42BF3333938B5D754B1BFBE4@exchange01.wiseconn ect.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Darrell, I can't think of any apps I'm running that have integrated web servers. Perhaps mySQL? Maybe my firewall (ZoneAlarm)? Emacs? Steve At 02:56 PM 07/03/2001, Darrell Porter wrote: >Steve, > >If you're running personal web server, IIS, or some third party apps that >have integrated web servers (several webcam products come to mind), then >shut these down. This is most likely the offending application. > >Darrell > > >-----Original Message----- >From: Steven Turoff [mailto:steveturoff@home.com] >Sent: Tuesday, July 03, 2001 5:30 AM >To: tomcat-user@jakarta.apache.org >Subject: RE: Restarting Tomcat on NT > > >Actually, I'm not running Tomcat as a service. I meant that I don't have >any problems starting Tomcat after rebooting the machine. I've run netstat >-a (results below) and can see that the ports are in use, however that >information doesn't seem to be very useful. Perhaps I should try running >tomcat as a service? > >Steve > >At 05:56 AM 07/03/2001, Randy Layman wrote: > > > No, there is no way to free a port. You mentioned that Tomcat >comes > >up after a reboot, implying that you are running Tomcat as a service. If > >that is the case, the process name is jk_nt_service.exe. Unless you have > >another process that is constantly trying to grab that port, Tomcat is >still > >running - NT does free the ports when the process dies. > > > > Also, 2000 (and I believe NT) ship with netstat. Using "netstat >-a" > >you can determine which ports are currently in use (and their state). > > > > Randy > > > > > -----Original Message----- > > > From: Steven Turoff [mailto:steveturoff@home.com] > > > Sent: Monday, July 02, 2001 7:34 PM > > > To: tomcat-user@jakarta.apache.org > > > Subject: RE: Restarting Tomcat on NT > > > > > > > > > I've already tried that. Tomcat is dead, alright. Is there a way to > > > explicitly free up a port on NT? > > > > > > At 06:04 PM 07/02/2001, you wrote: > > > >Maybe you didn't really kill off Tomcat, but just the DOS > > > box it was running > > > >in,... (I've seen it happen after closing the DOS box, but not after > > > >Ctrl+C'ing the program.) > > > > > > > >Try bringing up the Task Manager, and make sure there aren't > > > any instances > > > >of a "java" image name running. > > > > > > > > -- Bill K. > > > > > > > > > -----Original Message----- > > > > > From: Steven Turoff [mailto:steveturoff@home.com] > > > > > Sent: Monday, July 02, 2001 3:30 PM > > > > > To: tomcat-user@jakarta.apache.org > > > > > Subject: Restarting Tomcat on NT > > > > > > > > > > > > > > > I am having problems restarting Tomcat on NT. After a > > > reboot of the > > > > > machine, Tomcat starts without a problem. However, if I stop > > > > > Tomcat and > > > > > then attempt to restart, I get the following error: > > > > > > > > > > FATAL:java.net.BindException: Address in use: bind > > > > > java.net.BindException: Address in use: bind > > > > > at java.net.PlainSocketImpl.socketBind(Native Method) > > > > > at > > > java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) > > > > > at java.net.ServerSocket.(ServerSocket.java:173) > > > > > at java.net.ServerSocket.(ServerSocket.java:124) > > > > > at > > > > > org.apache.tomcat.net.DefaultServerSocketFactory.createSocket( > > > > > DefaultServerSocketFactory.java:97) > > > > > at > > > > > org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc > > > > > pEndpoint.java:239) > > > > > at > > > > > org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec > > > > > tor.java, > > > > > Compiled Code) > > > > > at > > > > > org.apache.tomcat.core.ContextManager.start(ContextManager.jav > > > > > a, Compiled Code) > > > > > at > > > org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) > > > > > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) > > > > > > > > > > I'm running Tomcat on port 8080. After I receive the above > > > > > error, a netstat > > > > > -a yields: > > > > > > > > > > TCP cx628443-b:8007 0.0.0.0:0 LISTENING > > > > > TCP cx628443-b:8007 0.0.0.0:0 LISTENING > > > > > TCP cx628443-b:8080 0.0.0.0:0 LISTENING > > > > > TCP cx628443-b:8080 0.0.0.0:0 LISTENING > > > > > > > > > > So, for some reason, stopping Tomcat does not free up the > > > > > port. I must then > > > > > reboot my machine to run Tomcat again. I'm using Tomcat 3.2.1 > > > > > and Classic > > > > > VM (build JDK-1.2.2-001, native threads, symcjit). > > > > > > > > > > Ideally, I'd like to fix the problem, however, I'm also > > > > > interested in any > > > > > solution that doesn't require rebooting my machine. I'll be > > > > > switching to a > > > > > Linux-Tomcat platform soon, but need a solution for the meantime. > > > > > > > > > > Thanks, > > > > > > > > > > Steve > > > > > > > >