Solved

Installed Tomcat, cannot start: StandardServer.await: create[8005]: java.net.BindException: Address in use: JVM_Bind

Posted on 2004-03-21
9
3,777 Views
Last Modified: 2013-11-24
Upon installation I not the following in my logs after Tomcat tries to start and fails.

[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
[INFO] Catalina - -Initialization processed in 1390 ms
[INFO] StandardService - -Starting service Catalina
[INFO] StandardEngine - -Starting Servlet Engine: Apache Tomcat/5.0.19
[INFO] StandardHost - -XML validation disabled
[INFO] StandardHost - -Create Host deployer for direct deployment ( non-jmx )
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
[INFO] StandardHostDeployer - -Installing web application at context path  from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
[INFO] StandardHostDeployer - -Installing web application at context path /tomcat-docs from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
[INFO] StandardHostDeployer - -Installing web application at context path /jsp-examples from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
[INFO] StandardHostDeployer - -Installing web application at context path /servlets-examples from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples
[INFO] StandardHostDeployer - -Installing web application at context path /webdav from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/31  config=E:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.properties
[INFO] Catalina - -Server startup in 2985 ms
StandardServer.await: create[8005]: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(Unknown Source)
      at java.net.ServerSocket.<init>(Unknown Source)
      at org.apache.catalina.core.StandardServer.await(StandardServer.java:534)
      at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
[INFO] Http11Protocol - -http11protocol.pause
[ERROR] Catalina - -Catalina.stop <LifecycleException:  Cannot find message associated with key coyoteConnector.protocolHandlerPauseFailed>LifecycleException:  Cannot find message associated with key coyoteConnector.protocolHandlerPauseFailed
      at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1462)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:560)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2379)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
      at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:686)

I recently installed JDK1.3.1.11, Hibernate, Eclipse and MySQL if that helps.

Many thanks :)
0
Comment
Question by:micknorman11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 9

Accepted Solution

by:
Nick_72 earned 250 total points
ID: 10647321
Possibly there's another service running on port 8080 on the computer. Try to change the port to something else (for example 8090) in the server.xml file.

/Nick
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 250 total points
ID: 10647423
I guess Nick is correct. If you don't know about how to modify the server.xml file, then have a look here:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html

http://www.cs.tcd.ie/courses/baict/bass/4ict12/tomcat.html
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:micknorman11
ID: 10653833
Thanks for the input. I'll try the ideas when I get home.

I did try and telnet to 8080 and there was no response.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10860147
Please proceed with that recommendation.
0
 
LVL 9

Expert Comment

by:Nick_72
ID: 10860467
As mayankeagle
0
 

Expert Comment

by:fsm289
ID: 11838311
Just to add another solution to problem for future users
I had a similar issue on a server with two different versions of tomcat running.
Solution was to change server port from 8005 to 8006, not the tomcat service port 8080 as my second tomcat service port was already on 8200.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question