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

problem on startup tomcat 4.0

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
Can anyone tell me why when I use startup.bat to start the tomcat, there are following error messges?
Thanks a lot
Catalina.start: LifecycleException: Address
in use: JVM_Bind
LifecycleException: Address in use: JVM_Bin
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
at org.apache.catalina.core.StandardService.initialize(StandardService.j
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
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(
----- Root Cause ----- Address in use: JVM_Bind
at Method)
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

The answer is in the stack trace.This means that something else (probably Tomcat) is already running on a port that Tomcat is trying to obtain.

If you installed Tomcat 4.x on a Windows system, you had the option at install time to install Tomcat as a service. If you did this, then Tomcat will automatically start with your PC. Attempting to start it again will result in this error.

To remove the service, you need to use the Control Panel and set that service to "manual" as opposed to "automatic"

Also, moving this from Servlets -> Apache/Tomcat
Kevin Cao
Ranch Hand

Joined: Jun 19, 2002
Posts: 55
I had the same problem (using eclipse), so what is the name of the services I should change in control panel.
Kevin Cao
Ranch Hand

Joined: Jun 19, 2002
Posts: 55
I reinstalled tomcat with a full installation, now I can see the "Apache Tomact" in service. But the prolem still there. I start Tomcat through Eclipse, it works fine whenever I was connecting with the internet. I think my problem is with my windows2000, it doesn't clear those instances of Tomact in those ports. Is there anyway to fix this? Your help is much appreciated.
Kevin Cao
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868
The solution is very simple
Go to the server.xml file in your tomcat conf directory
Modify the below line
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
and change the port 8080 to lets say 8090
use the url http://localhost:8090 to access the web application.
This is the simplest solution
I agree. Here's the link:
subject: problem on startup tomcat 4.0
It's not a secret anymore!