• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble with running multiple Tomcat instances

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I have what I think is a probably an easy problem to fix, I just don't have the knowledge.

I am running Java 1.6.0_03, Tomcat 6.0.13, on Linux
I'm trying to get multiple instances of tomcat working but am unable to connect to the new instance I've set up. I've tried many different guides online as well as searching here on coderanch, to no avail. I think I am missing something very simple however, as I'll explain:

I have the following set up:

/usr/app/tomcat (original installation)
/usr/app/tomcatdev (second instance I would like to run)

I copied over the necessary directories/files from the first installation into the new directory and made the necessary changes to various ports specified in server.xml, the main listener being on 8081 now instead of the default 8080.
I've set $CATALINA_BASE to /usr/app/tomcatdev.
The second instance seems to start and run correctly with startup.sh, according to ps aux.
netstat -anp shows me that the correct process is in fact listening on 8081 - yet all of my attempts to reach the server at its address:8081 fail. There are no error messages(that I know of), other than my browser being unable to connect.

What am I missing?

Note: The original tomcat installation /usr/app/tomcat still works fine, listening on 8080.
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably you have something already running on 8081. It could be firewall issue. Try another port.
 
Joseph Clarm
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To much surprise here, that actually worked. I really doubt a process was stealing 8081, however, as I checked to make sure nothing was using it beforehand. I changed the port to 8085, and boom it works. Perhaps it was a firewall issue, but that seems unlikely now that 8085 works and seeing as I'm on the same local network as the server.

Thanks a lot for the help, Misha Ver.
 
reply
    Bookmark Topic Watch Topic
  • New Topic