• 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 4.0.1

 
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 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.
 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which os you are running?
------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic