You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Biernesser, Beth" <Be...@fnf.com> on 2006/08/17 05:21:32 UTC

Can't assign requested address error

 
I'm running tomcat 5.0.25 on RHES 3.0 and when starting tomcat, I get
the following error:

Aug 16, 2006 5:00:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15152 ms
StandardServer.await: create[8005]: java.net.BindException: Cannot
assign requested address
java.net.BindException: Cannot assign requested address
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
        at java.net.ServerSocket.bind(ServerSocket.java:318)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at
org.apache.catalina.core.StandardServer.await(StandardServer.java:487

Any ideas?  Thanks!

---------------------------------------------------------------------
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


Re: Can't assign requested address error

Posted by David Smith <dn...@cornell.edu>.
Another person had this trying to bind to the localhost (127.0.0.1) 
address when the interface wasn't up.  Check that your system has an 
interface supporting each of the network addresses specified in the 
address="" attributes of your connectors (see server.xml) and also the 
localhost address (required for the shutdown port).

I've also seen threads on the list where this comes from trying to bind 
to an IPv4 address in a server setup for IPv6 only.

--David

Biernesser, Beth wrote:

> 
>I'm running tomcat 5.0.25 on RHES 3.0 and when starting tomcat, I get
>the following error:
>
>Aug 16, 2006 5:00:52 PM org.apache.catalina.startup.Catalina start
>INFO: Server startup in 15152 ms
>StandardServer.await: create[8005]: java.net.BindException: Cannot
>assign requested address
>java.net.BindException: Cannot assign requested address
>        at java.net.PlainSocketImpl.socketBind(Native Method)
>        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
>        at java.net.ServerSocket.bind(ServerSocket.java:318)
>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>        at
>org.apache.catalina.core.StandardServer.await(StandardServer.java:487
>
>Any ideas?  Thanks!
>
>---------------------------------------------------------------------
>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
>
>  
>


---------------------------------------------------------------------
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


Re: Can't assign requested address error

Posted by Edoardo Panfili <ed...@aspix.it>.
Biernesser, Beth ha scritto:
>  
> I'm running tomcat 5.0.25 on RHES 3.0 and when starting tomcat, I get
> the following error:
> 
> Aug 16, 2006 5:00:52 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 15152 ms
> StandardServer.await: create[8005]: java.net.BindException: Cannot
> assign requested address
> java.net.BindException: Cannot assign requested address
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
>         at java.net.ServerSocket.bind(ServerSocket.java:318)
>         at java.net.ServerSocket.<init>(ServerSocket.java:185)
>         at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:487
> 
> Any ideas?  Thanks!

You can find many (and better) answers in this mailing list.
However it's possible that another server is using the address that 
tomcat needs, take a look at the configuration files.

I can replicate this error starting tomcat two times on the same machine.

Edoardo


-- 
edoardo@aspix.it
AIM: edoardopn
Jabber: edoardopa@talk.google.com
tel:075 9142766

---------------------------------------------------------------------
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