0

I'm using linux and tomcat6.

When I open with browser http://my-ip-address:8080/my-app/, it shows a blank page.

INFO: Server startup in 6252 ms
May 6, 2013 10:39:25 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]: 
java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
    at java.net.ServerSocket.bind(ServerSocket.java:336)
    at java.net.ServerSocket.<init>(ServerSocket.java:202)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

How can I resolved it?

furyfish
  • 2,055
  • 5
  • 26
  • 28
  • you already have something running on port 8080, either stop that , or change tomcat's port and then try to start it – Satya May 06 '13 at 04:00
  • @Satya : I killed all process on port 8080, then restart tomcat. But nothing happen, it still say Address already in use. – furyfish May 06 '13 at 04:06
  • Try "netstat" and find out which service is using the port number. – Maximin May 06 '13 at 04:08
  • 1
    @TheUnlucky Not a duplicate. – user207421 May 06 '13 at 04:31
  • Are u familiar with linux? – Maximin May 06 '13 at 04:44
  • @TheUnlucky The port in question is 8005. Are you reading what's written here at all? It's right there in the stack trace, and also in an answer. – user207421 May 06 '13 at 04:46
  • @TheUnlucky You need to read the whole question, not just the first two lines. Port 8005 is mentioned three lines later. See also the answer below. – user207421 May 06 '13 at 04:48
  • @TheUnlucky I don't think you do. Tomcat uses port 8005 for shutdown. It also uses port 8009 for AJP, 8443 for HTTPS, etc etc etc. It's all configurable. You're jumping to conclusions without knowing enough about it. – user207421 May 06 '13 at 04:58
  • Thanks FYI :) Will keep improve it @EJP – thar45 May 06 '13 at 05:09

2 Answers2

1

You already have something running on port 8005, just like it says in the stack trace.

user207421
  • 305,947
  • 44
  • 307
  • 483
  • 1
    Find the process that using port 8005. It is almost certainly another Tomcat. If you're trying to run several Tomcats at once you have to make a lot of port/address adjustments in server.xml and the entire question would be off topic, belongs on serverfault.com. – user207421 May 06 '13 at 04:45
0

Not sure what you mean by 'But please show me how can I stop that?' You can simply kill the associated process or stop the service using Task manager (or tool like ProcessExplorer on Windows) and 'kill #pid' on linux.

NitinB
  • 261
  • 3
  • 3