aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to setup two tomcats in eclipse indigo ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to setup two tomcats in eclipse indigo ?" Watch "How to setup two tomcats in eclipse indigo ?" New topic
Author

How to setup two tomcats in eclipse indigo ?

siva chaitanya
Ranch Hand

Joined: Jul 05, 2011
Posts: 59
i have one jsp file i want it to run on two different tomcats. Is it possible ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15639
    
  15

You don't "run" JSPs. JSPs are resources within webapps. You can deploy the same webapp (WAR or EAR) file to multiple servers, but if you are intending to work with multiple servers (Tomcat or otherwise) and a single copy of a WAR, you'll have to obey certain restrictions.

People commonly use "exploded" WARs with Tomcat. If you just take a WAR file and drop it into Tomcat's webapps directory, Tomcat will automatically explode it by default. You should not attempt to share that exploded copy, each Tomcat instance needs its own CATALINA_BASE, and that means it has its own distinct webapps directory.

To literally share the exact same WAR between multiple Tomcats, you need to define a deployment descriptor that points to a codeBase WAR that's external to all Tomcat instances. For example, a build directory in your Eclipse project.

Starting multiple Tomcats from Eclipse is a whole different issue. Most Tomcat control plugins are designed with the idea that one Tomcat is enough, even if you have multiple webapp instances to debug. So to start the second Tomcat, you would have to launch it manually and connect to it via the Remote Debugging facilities. Embedded Tomcat uses Remote Debugging as well, but the Eclipse Tomcat plugin will automatically handle that one.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to setup two tomcats in eclipse indigo ?
 
Similar Threads
session migration
servletContext()
Derby/Tomcat/Linux issue
Jsp-Javaclass file call between two tomcat
Axis Web Service on Apache/Tomcat