File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Q: 1 server, 2 IP's, 2 TOMCAT servers... HELP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Q: 1 server, 2 IP Watch "Q: 1 server, 2 IP New topic
Author

Q: 1 server, 2 IP's, 2 TOMCAT servers... HELP

William Kuderka
Greenhorn

Joined: Dec 05, 2002
Posts: 3
Please take it easy on me. I am a UNIX system admin trying to assist a dev team. We have an existing iPlanet webserver working with a Tomcat app server on one of our Sun Solaris boxes. We are trying to add second web instance, bound to a second IP (that part is working) and have a speparate Tomcat app server also be bound to the second IP address (that part isn't working).
The second iPlanet web server instance can serve static pages correctly. When we try to start the second Tomcat app server it starts to initialize and then stops indicating: "java.lang.reflect.InvocationTargetException: org.apache.tomcat.core.TomcatException: Root cause - Address already in use".
My gut feeling is that Tomcat is binding to the first IP.
Please understand I know next to nothing about Tomcat. How would I tell Tomcat to open/use ports on the second IP address?
Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Hi,
try to edit the file server.xml on the conf directory in the tag <Host name="xxx.xxx.xxx.xxx" ..
Best Regards


Isaias
William Kuderka
Greenhorn

Joined: Dec 05, 2002
Posts: 3
Thanks for your reply.
I took a look at the server.xml file and did not see an entry for "Host name=" anywhere in the file.
We are running Tomcat 3.3. I took a look at the documentation on the jakarta.apache.org site and didn't see anything about a "Host name=" setting in the server.xml documentation.
Do you think the setting you suggest is not documented or not available in my version of Tomcat?
William Kuderka
Greenhorn

Joined: Dec 05, 2002
Posts: 3
Also, is the jakarta.apache.org site the best reference for Tomcat 3.3 or should I be looking some place else for docs?
Thanks again.
Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
hi,
I utilize tomcat 4.1.
have a documentation on tomcat at http://localhost:8080
Best Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Q: 1 server, 2 IP's, 2 TOMCAT servers... HELP
 
Similar Threads
Tomcat Connector configurations
load balance with BigIP and Tomcat 4
How to log System.out.println in iplanet ?
session time out for EJB's..
Can Tomcat serve apps on two different IP addesses, both on port 80