This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problem after starting the tomcat servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem after starting the tomcat servers" Watch "Problem after starting the tomcat servers" New topic

Problem after starting the tomcat servers

Keerthi Kumar
Ranch Hand

Joined: Apr 20, 2009
Posts: 105
Dear All,

I have two different tomcat servers in the same folder. But I have changed the port numbers in both the server.xml files to avoid any conflict. Also I am able to start both the servers as well. But after 1-2 minutes, which ever the server was started first will be stopped. Only the recently started server will be working. Request you to please help me out to resolve this issue.

Thanks in advance.

Keerthi Kumar N
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
I would check log fles
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964

There are 2 environment variables used by Tomcat: CATALINA_HOME and CATALINA_BASE.

CATALINA_HOME contains directories that can be shared between multiple instances of Tomcat. That includes such things as the bin and lib directories.

CATALINA_BASE contains the stuff that cannot be shared. You have to have a separate CATALINA_BASE for each instance of the Tomcat server. CATALINA_BASE contains things like the conf, webapps, work, temp, and logs directories.

For single-instance Tomcat users, CATALINA_HOME and CATALINA_BASE can point to the same root directory, but in your case, that's not possible.

Customer surveys are for companies who didn't pay proper attention to begin with.
It is sorta covered in the JavaRanch Style Guide.
subject: Problem after starting the tomcat servers
Similar Threads
Multiple Application Servers
Deploying multiple web projects on Tomcat in Eclipse
weblogic start up problem
Cluster related problem in WS 5.0