Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i have tomcat 4 and tomcat 5 together ?

 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i install tomcat 5 recently, however i couldn't start it up ..

tomcat 4 - i make it install in c:\tomcat (working fine)
tomcat 5 - i install it into d:\tomcat5 (not working)

when i double click on d:\tomcat5\bin\start.bat , it actually invoke tomcat4 ..how i solve this problem ?

thank you very much for answering !
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Been there - done that
It is probably due to your environment CATALINA_HOME setting. You need to modify the start.bat file for tomcat5 to set CATALINA_HOME instead of grabbing it from the environment.
Bill
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
william, can you express more detail ? thank you very much for your time !!

my current catalina_home = c:\tomcat (which is tomcat 4)
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for more detail on environment:

classpath



java_home :


i'm using tomcat 4.1.30 and tomcat 5 (5.0.12)

thank you !

[MDC] Edited long line so thread is not destroyed.
[ June 24, 2004: Message edited by: Mike Curwen ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Tomcat totally ignores your environment classpath setting
2. Take a look at the contents of the start.bat - see how it uses the contents of the CATALINA_HOME environment variable in statements like:

Before that line, you can insert a definition for CATALINA_HOME
set CATALINA_HOME=c:\yourpathtoTomcat5\
Then startup.bat should pick up that definition of CATALINA_HOME and execute Tomcat5 instead of 4

I also suggest that you do NOT click on startup.bat - instead, open an command prompt window, change directory to your Tomcat5\bin directory and execute startup.bat from the command line. That way you will be able to see what it is using.
Bill
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i can't read the thread (thread suddently become blank), william ....do you mind to post again what u try to say ?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've fixed your thread (it's because you posted that huge classpath line) and deleted the other one you had started.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic