• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can�t start Tomcat 4.0.1  RSS feed

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just downloaded Tomcat 4.0.1. The only thing I did was to add �SET Java_home=C:\jdk1.3� to Catalina.bat. When I run startup.bat I get this message:
Catalina.start: LifecycleException: Error creating server socket: java.net.BindException: Address in use: JVM_Bind
Then I restart my PC but the same thing happend.
Any ideas?
Thanks.
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which os you are running?
------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That error is due to something already using one of the ports that Tomcat uses. Are you sure Tomcat is not already running? Try sending your browser to http://localhost:8080/ and see what happens.
Bill
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you install on windows, it installs tomcat as a service that runs at startup.

So you might be starting it from the 'Start' menu shortcut, and it's actually already running.

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for the reply.
I am using win2000.
I checked that no other service is running. Also checked using netstat which shows nothing.
My Tomcat 3.2 can be started correctly.
But I can�t start Tomcat 4.0.1. How to find out which port Tomcat 4.0.1 is trying to use? 80? 8080? Or something else?
Thanks.
Bruce
 
Jim Wang
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Mike:
How to install Tomcat on win2000 as a service? It's that possible to run Tomcat as a background service and wounld stop when user log off?
Jim
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that Tomcat installs itself to run as a service on NT? I downloaded it last week and was stopping it and starting it from the command line. I don't think there was anything in install docs about it running as a service.
At least not for v4.0.1
Adam
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you use this distribution: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jakarta-tomcat-4.0.1.exe

It asks you if you want to run Tomcat as a service. It should ask you for WinNT and 2000... not sure about Win9x. (it's the second check box and it's called "NT Service (NT /2k/XP only)" ) So i guess that answers 9x.

It should function, even if the user has not logged in.

Tomcat, by default, attempts to use 8080, and several other ports. If you want the complete list, examine server.xml.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!