Big Moose Saloon
 Search | Java FAQ | Recent Topics Register / Login

# can i have tomcat 4 and tomcat 5 together ?

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Mar 22, 2000
Posts: 12569

1
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

Java Resources at www.wbrogden.com
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Jan 08, 2004
Posts: 834
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

Joined: Mar 22, 2000
Posts: 12569

1
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

Joined: Jan 08, 2004
Posts: 834
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

Joined: Feb 20, 2001
Posts: 3695

I've fixed your thread (it's because you posted that huge classpath line) and deleted the other one you had started.

I agree. Here's the link: http://aspose.com/file-tools

subject: can i have tomcat 4 and tomcat 5 together ?