• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't start Tomcat on win2000

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
C:\tomcat401\bin>startup
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CLASSPATH: ..\bin\bootstrap.jar;C:\jdk1.3\lib\tools.jar
Using JAVA_HOME: C:\jdk1.3
C:\tomcat401\bin>
In the second dos window I get:
Catalina.start: LifecycleException: Error creating server socket: java.net.Bin
dException: Address in use: JVM_Bind
LifecycleException: Error creating server socket: java.net.BindException: Addr
ess in use: JVM_Bind at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:483) 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(Catalina.java:775) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Any ideas? I could not find which address Tomcat is trying to use.
Thanks.
Bruce
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked again, only IBM HTTP server and DB2 are running. I stopped HTTP but still can’t start Tomcat.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!
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?
 
Ranch Hand
Posts: 2378
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can check this thread in case you have missed any step....
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=56&t=000036
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy BJ....in the Win env you can use netstat -a to get a glimpse of who's runnign on what port.
Cheers!
Bob Hanley
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic