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 Running 2 separate instances of tomcat in server - HOW TO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Running 2 separate instances of tomcat in server - HOW TO" Watch "Running 2 separate instances of tomcat in server - HOW TO" New topic
Author

Running 2 separate instances of tomcat in server - HOW TO

e_poncedeleon
Greenhorn

Joined: Jun 12, 2008
Posts: 3
I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat for the same application. One would be for production and the other for development (which can be start and stopped whenever without affecting the production one).
From my understanding i need to have each instance on different ports and modifying some other files but what I am missing is the technical things. Can any one please guide me on the correct direction so that i don't mess up anything! I've never worked with Tomcat that is why i have no idea on how to do it.
Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61071
    
  66

why not just deploy them as two contexts that you can start and stop independently?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61071
    
  66

Oh and please check your private messages for an important administrative matter.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30353
    
150

"e_poncedeleon",
This is not a valid display name either. Please recheck the naming policy Bear sent you and note the part about having both a first and last name (no underscores) and not one that is obviously fictitious.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running 2 separate instances of tomcat in server - HOW TO