aspose file tools*
The moose likes Tomcat and the fly likes Address already in use: JVM_Bind:80 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Address already in use: JVM_Bind:80" Watch "Address already in use: JVM_Bind:80" New topic
Author

Address already in use: JVM_Bind:80

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi List[],

I am getting this error. Please help me.Even my project is not running.

SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:313)
at org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:151)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:76)
at org.apache.catalina.connector.Connector.start(Connector.java:1090)
at org.apache.catalina.core.StandardService.start(StandardService.java:457)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Feb 19, 2009 10:18:35 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:80
at org.apache.catalina.connector.Connector.start(Connector.java:1097)
at org.apache.catalina.core.StandardService.start(StandardService.java:457)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Feb 19, 2009 10:18:35 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6360 ms
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61662
    
  67

That means something else is already using port 80. Another Tomcat instance? Apache web server? Other?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
how can i check the other web server is also running .
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

On windows you can use the netstat -a command.

Hope this helps


SCJP, SCWCD.
|Asking Good Questions|
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

netstat will tell you that something is there. Opening a web browser to http://127.0.0.1/ might be more informative as far as finding out what's actually running.


[Jess in Action][AskingGoodQuestions]
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi,

i have change the Connector port="80" to Connector port="90" in server.xml file.
Now at the console its showing Server startup.

But when i run the command in url http://localhost its not showing the tomcat page.


Please help me.


Thanks
Javid Jamae
Author
Ranch Hand

Joined: May 14, 2008
Posts: 198
Web browsers point to port 80 by default. If you configured Tomcat to use port 90, you'd have to access your app by going to http://locahost:90.


Author: JBoss in Action, javidjamae.com, @javidjamae on Twitter
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Are you using Windows, with no other than Tomcat as a server ?, then there is IIS running on port 80..
and to stop IIS,

Go to >> Start >> Control Panel >> Administrative Tools >> Administrative Tools >> Internet Information Services

Open It, click on "Web sites" tree element and stop it...

HTH.



[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
pankaj semwal wrote:
But when i run the command in url http://localhost its not showing the tomcat page.

Think again. What does it show instead? Once you figure that out, then you know which service to stop on that port.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Thanks, Bauke, for watching my back

Yes, folks, what he said. The point was to figure out what's running on port 80, and we've already established that something is. Whatever you see in your web browser at http://localhost is the thing that's in the way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Address already in use: JVM_Bind:80