Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Common Libraries for two tomcat instance

 
naveen jain
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope.

Why do you need two Tomcat instances?
 
naveen jain
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic