File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Can't start Tomcat on win2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Watch "Can New topic

Can't start Tomcat on win2000

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
I installed Tomcat 4.0.1 on NT and win2000. It runs OK on NT. But on win2000 I try to start it and I get message in the first dos window:
Using CLASSPATH: ..\bin\bootstrap.jar;C:\jdk1.3\lib\tools.jar
Using JAVA_HOME: C:\jdk1.3
In the second dos window I get:
Catalina.start: LifecycleException: Error creating server socket:
dException: Address in use: JVM_Bind
LifecycleException: Error creating server socket: Addr
ess in use: JVM_Bind at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:552) at org.apache.catalina.startup.Catalina.start( at org.apache.catalina.startup.Catalina.execute( at org.apache.catalina.startup.Catalina.process( at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(
Any ideas? I could not find which address Tomcat is trying to use.

We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Are you sure it's not because Tomcat is already running? That is usually the cause of this error on WinNT/2000, because on those OS's Tomcat can be run as a service, which by default, starts when the computer does.

Tomcat runs on the port you specify in server.xml
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
I checked again, only IBM HTTP server and DB2 are running. I stopped HTTP but still can’t start Tomcat.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Well, it's the WarpConnector where the fault occurs, so check your server.xml to see what ports that component is configured for.
I know how to track down port owners for Linux, but last time I asked about doing it Windows no one could give me an answer.
You could always to to telnet to that port ID and see if what kind of response it gives, I suppose.

An IDE is no substitute for an Intelligent Developer.
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
WarpConnector is configured to use port 8008. I changed it to 8018 and now Tomcat runs!
Who is using port 8008? Can I track down this?
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2373

You can check this thread in case you have missed any step....

Ashik Uzzaman
Senior Software Engineer, TubeMogul, Emeryville, CA, USA.
Sunitha Prabhu

Joined: Jul 01, 2002
Posts: 2
Hi Bruce J
The port 8008 is used by IBM HTTP Administration Service. this needs to be stopped before starting tomcat.
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
Thanks Sunitha.
In my Jan 11 post, I noted I tried to stop IBM HTTP server but still had trouble with Tomcat. I will see if this HTTP server's Admin is a different thread.
Bob Hanley

Joined: Dec 10, 2003
Posts: 1
Howdy the Win env you can use netstat -a to get a glimpse of who's runnign on what port.
Bob Hanley

Bob Hanley<br />
Don't get me started about those stupid light bulbs.
subject: Can't start Tomcat on win2000
It's not a secret anymore!