Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Im having some strange problem on my tomcat server at ubuntu pc its can start after start with in few seconds its goes to shutting down . still i could not up the tomcat server

my server.xml have no error i change the ports also no luck still

this is my config

<Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />

any help?

my catalina.out error log saying

Oct 11, 2011 6:34:00 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 <null>:8080
    at org.apache.catalina.connector.Connector.start(Connector.java:1094)
    at org.apache.catalina.core.StandardService.start(StandardService.java:534)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    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)
Oct 11, 2011 6:34:00 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 23691 ms
Oct 11, 2011 6:34:00 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8080]: 
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:662)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
    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)
Oct 11, 2011 6:34:00 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Oct 11, 2011 6:34:00 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Oct 11, 2011 6:34:01 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Oct 11, 2011 6:34:01 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Oct 11, 2011 6:34:08 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
    at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
    at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:596)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
    at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
Oct 11, 2011 6:34:08 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Oct 11, 2011 6:34:08 AM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started
Oct 11, 2011 6:34:09 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
    at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
    at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:596)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
    at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
Oct 11, 2011 6:34:09 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Oct 11, 2011 6:34:09 AM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started
Oct 11, 2011 6:34:09 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
    at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
    at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:596)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
    at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
Oct 11, 2011 6:34:09 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Oct 11, 2011 6:34:09 AM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started
share|improve this question
    
Take a look at catalina.out. –  quanta Oct 11 '11 at 10:48
    
@quanta updated my question thanks –  Roshan Oct 11 '11 at 10:49
    
do you have anymore output? normally the first part of the traceback gives a good indication of the problem, perhaps in the console? –  BoyMars Oct 11 '11 at 11:05
    
@BoyMars I updated more out out on catalina.sh –  Roshan Oct 11 '11 at 11:12
    
Thanks bros after changing the ports all worinng fine –  Roshan Oct 11 '11 at 11:28

1 Answer 1

up vote 2 down vote accepted

SEVERE: StandardServer.await: create[8080]: java.net.BindException: Address already in use

The port is already in use. You may need to use another or find out what's running on 8080 and stop it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.