Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CATALINA_HOME problem  RSS feed

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 different applications running on two different versions of tomcat on my system. For some reasons, I need to use the CATALINA_HOME for my applications. Is there some way by which I can change the CATALINA_HOME dynamically from one version to another. If not,please suggest me an alternative as to how to accomplish this..your help would be appreciated.
Thanks
Jas
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd think -and this is really just speculation, but maybe worth a try- that the CATALINA_HOME environment variable is only used by the various scripts in the bin directory, but not inside the Tomcat code. So you could do search-and-replace through those scripts, and in one of the two installations replace CATALINA_HOME by some other variable (CATALINA_HOME_2 or whatever), thus keeping both installations runnable at the same time.
[ August 10, 2005: Message edited by: Ulf Dittmer ]
 
You didn't tell me he was so big. Unlike this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!