"Cannot assign requested address" when starting Tomcat on multihomed machine
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chris_Wilkes
Posted On:   Thursday, November 14, 2002 08:21 AM

I've been able to run Tomcat 4.1 on a Win2k and a RedHat 7.2 boxes and am unable to start it up on a RedHat box with two ethernet cards in it. The machine's my router and has an internal address and a public IP address.

I've spelled out what IP address to bind to in my server.xml file but I'm beginning to think it ignores it and tries to bind to 0.0.0.0:8080, which might be causing the problem.

I strace'd the startup file and there wasn't much interesting in there. Is there an strace for java apps? I would like to find out what IP address it is trying to bind to.

Re: "Cannot assign requested address" when starting Tomcat on multihomed machine

Posted By:   Jeff_Hubbach  
Posted On:   Thursday, November 14, 2002 08:42 AM

I also had to work through this issue, Chris. The trick is to put an address="[ip]" in the tag, then set defaultHost="[ip]" in the tag, and specify name="[ip]" in the tag.
About | Sitemap | Contact