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 Common Libraries for two tomcat instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Common Libraries for two tomcat instance" Watch "Common Libraries for two tomcat instance" New topic
Author

Common Libraries for two tomcat instance

naveen jain
Greenhorn

Joined: Oct 02, 2008
Posts: 16
Hi,
I have two tomcat(5.5.27) instances on same machine. I put some of my jar files in common/lib folder of one tomcat instance, now i wants that these same jar files should be accessible from other tomcat instanse also , without putting these files in second tomcat common/lib folder.

Is there any method for it??
please give me some idea.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Nope.

Why do you need two Tomcat instances?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
naveen jain
Greenhorn

Joined: Oct 02, 2008
Posts: 16
Hello,

i have three separete web application. and if i would have only one instance then one problem arise that is , if i wants to stop only one application for some time than i have to stop whole tomcat and my all other two application will also stop that i dont wants. thats why i m using diferent instances.

is there any mehod to stop only one application at time??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

In a single Tomcat instance you can stop and start web applications independently. There is no need for multiple Tomcat instances in order to accomplish that.

Investigate the Tomcat Manager application.
naveen jain
Greenhorn

Joined: Oct 02, 2008
Posts: 16
i wants to write logs in different file for each application instead of writting logs in common file catalina.out file.
so i have to crate diffrent instances.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
naveen jain wrote:i wants to write logs in different file for each application instead of writting logs in common file catalina.out file.
so i have to crate diffrent instances.


Naveen, I would suggest to separate applications logging from Tomcat's internal logging. In this case you would able to use one Tomcat instance for all apps.

 
GeeCON Prague 2014
 
subject: Common Libraries for two tomcat instance