• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiple JVM problem

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends,

I have a question about installing Tomcat on multiple JVM versions. because one of my applications only works with JDK 1.4.2. the other one can work with JDK1.5. I know I can reinstall the application that works with JDK1.5, the problem is that there are many projects under that application and also it is shared by serveral guys. so I wonder if I can install tomcat on multiple JVM.

my operating system is linux. there is a Tomcat based on JDK1.5 under root account and is shard by all users, it runs all the time. I want to install another Tomcat based on JDK1.4.2 on my own account(not root account). but I don't know if there will have confliction between the two tomcats. and if not, how can I install my own tomcat and how should I configure it?

thank you very much for your great help!
Sam
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You won't have a problem. Just set the JAVA_HOME environment variables to point to the correct jdk for each instance.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sam:

Ben is correct, you can have the JAVA_HOME set to differnt JDKs for each Tomcat instance.

This would be a somewhat complicated installation. I have tried it with multiple VirtualHost entries in the apache conf and there are several gotchas.

I decided to use apache VirtaulHost to separate catalina_home installations and create a worker for each one, with separate web server doc roots.

I tried to get separate installations of the workers.java_home & workers.tomcat_home, but I am pretty sure that won't work without multiple apache homes. Then you would need at to proxy requests so that both installation would like to clients like they are just on port 80, that means that you need a "master" apache and one at each proxy "end point" -- a lot of work.

I got frustrated and decided that I could live with 'sharing' the workers.tomcat_home with one of the virtual host cataline home's.

Seems to work OK for development, though I would think in production this would be bad -- if your app breaks the java that is running the workers then POOF all the apps go down...
[ January 28, 2005: Message edited by: jay wick ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic