File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes can i have tomcat 4 and tomcat 5 together ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "can i have tomcat 4 and tomcat 5 together ?" Watch "can i have tomcat 4 and tomcat 5 together ?" New topic
Author

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: 12759
    
    5
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

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: 12759
    
    5
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can i have tomcat 4 and tomcat 5 together ?
 
Similar Threads
Pro Jakarta Struts, Second Edition : Reader Question
jstl with jsp uri: http://java.sun.com//jsp/jstl/core cannot be resolved
logging system.out statements
non-embedded user
multiple tomcat 5 setting???