You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bruno Vilardo <br...@gmail.com> on 2007/06/29 18:43:04 UTC

java.net.BindException: Address already in use

Hello All,

Linux 2.6.9-55.ELsmp
tomcat.version=5.5.9
java version = 1.5

We have an application that uses Tomcat and Java (Sorry I am newbie to this
topic).

This morning our Tomcat server stopped and When we try to startup, it says
it is started but I can not connect to the Tomcat Admin Page nor the Manager
page.
I tried to stop it again, but then when I check the process, using "ps
-ef|grep tomcat" the process still there.

I found some messages that perhaps is causing this issue. Please see below:

java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java
:346)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jun 29, 2007 12:35:52 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 29, 2007 12:35:52 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8443
Jun 29, 2007 12:35:53 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:35:57 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jun 29, 2007 12:36:28 PM org.apache.catalina.connector.MapperListenerdestroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
        at org.apache.catalina.connector.MapperListener.destroy(
MapperListener.java:161)
        at org.apache.catalina.connector.Connector.stop(Connector.java:1044)
        at org.apache.catalina.core.StandardService.stop(
StandardService.java:521)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java
:717)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
        at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(
Catalina.java:629)
Jun 29, 2007 12:36:28 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 29, 2007 12:36:28 PM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started

Does anybody knows how can I solve this issue in order to startup our Tomcat
WebServer again??

TIA,

Bruno

Re: java.net.BindException: Address already in use

Posted by Bruno Vilardo <br...@gmail.com>.
Hello Everyone!!!

Thanks for the response TIM..

I guess we found what was going on..

THere was another person working with Tomcat and he was restarting Tomcat at
the same time I was shutdown it.

So after I called this person, we were able to startup Tomcat Successfully.

Thanks everyone.

Bruno


On 6/29/07, Tim Funk <fu...@joedog.org> wrote:
>
> 1) You kill tomcat. kill -9
> 2) Then figure out why tomcat is still running (kill -3 to create a
> stack trace)
>
> In reality - you want to get the stacktrace before you run the kill -9
>
> -Tim
>
> Bruno Vilardo wrote:
> > Hello All,
> >
> > Linux 2.6.9-55.ELsmp
> > tomcat.version=5.5.9
> > java version = 1.5
> >
> > We have an application that uses Tomcat and Java (Sorry I am newbie to
> this
> > topic).
> >
> > This morning our Tomcat server stopped and When we try to startup, it
> says
> > it is started but I can not connect to the Tomcat Admin Page nor the
> > Manager
> > page.
> > I tried to stop it again, but then when I check the process, using "ps
> > -ef|grep tomcat" the process still there.
> >
> > I found some messages that perhaps is causing this issue. Please see
> below:
> >
> > java.net.BindException: Address already in use
> >        at java.net.PlainSocketImpl.socketBind(Native Method)
> >        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
> >        at java.net.ServerSocket.bind(ServerSocket.java:319)
> >        at java.net.ServerSocket.<init>(ServerSocket.java:185)
> >        at org.apache.catalina.core.StandardServer.await(
> StandardServer.java
> > :346)
> >        at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
> >        at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:585)
> >        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java
> :271)
> >        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Bruno Vilardo
MFG/Pro Admin & Database Specialist
QAD Brazil
Office - 55 11 3529-2700
Mobile - 55 11 9999-8869
bruno.vilardo@gmail.com

Re: java.net.BindException: Address already in use

Posted by Tim Funk <fu...@joedog.org>.
1) You kill tomcat. kill -9
2) Then figure out why tomcat is still running (kill -3 to create a 
stack trace)

In reality - you want to get the stacktrace before you run the kill -9

-Tim

Bruno Vilardo wrote:
> Hello All,
> 
> Linux 2.6.9-55.ELsmp
> tomcat.version=5.5.9
> java version = 1.5
> 
> We have an application that uses Tomcat and Java (Sorry I am newbie to this
> topic).
> 
> This morning our Tomcat server stopped and When we try to startup, it says
> it is started but I can not connect to the Tomcat Admin Page nor the 
> Manager
> page.
> I tried to stop it again, but then when I check the process, using "ps
> -ef|grep tomcat" the process still there.
> 
> I found some messages that perhaps is causing this issue. Please see below:
> 
> java.net.BindException: Address already in use
>        at java.net.PlainSocketImpl.socketBind(Native Method)
>        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>        at java.net.ServerSocket.bind(ServerSocket.java:319)
>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>        at org.apache.catalina.core.StandardServer.await(StandardServer.java
> :346)
>        at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org