Portal Home > Knowledgebase > Articles Database > 2 Tomcat version on single server ?


2 Tomcat version on single server ?




Posted by map007, 11-18-2008, 05:58 AM
2 Tomcat version on single server ? Hi, I have a Linux(RHEL5) dedicated server.Tomcat version 5.x is running integrated with Apache and now i want to install tomcat 6.x integrate with apache without effecting older tomcat version. it will run as it is. How can i do this and if yes then how can i set tomcat home path for both versions. CATALINA_HOME= and how to install it. Thank you.

Posted by Aun Muhammad, 11-18-2008, 08:49 AM
Regarding installation , just down load the .tar.gz file of new tomcat version from tomcat.apache.org[/url] and will just need to extract that zipped file.Now you can run both 5 and 6 version at the server , for that just make sure to change the connector port of tomact 6 from default 8080 because your 5 version might be using that one i.e. just make sure that both are running at different ports. __________________ Aun Muhammad Razawww.aunraza.net

Posted by map007, 11-18-2008, 09:35 AM
Hi, Thanks Aun Muhammad, I have installed it on the server tomcat 6.x and configured on 9090 port now when i start ./startup.sh script that time older version stopped so can u guide me how can i do this and how can start and stop certain tomcat srcipt . I have install it under /usr/local/tomcat/tomcat-5.5 and second one /usr/local/tomcat/tomcat-6.0 and i sat CATALINA_HOME path in startup.sh script for both tomcat. Please guide me step be step howto do this. Thank you.

Posted by Aun Muhammad, 11-18-2008, 09:38 AM
You will need to check logs of catalina for identifying the cause of problem.Do tail -f catalina.out file which is there in logs folder of tomcat and then start the server.You will see the error messages there.From these logs , we will be able to identify where the problem is. __________________ Aun Muhammad Razawww.aunraza.net

Posted by stdunbar, 11-18-2008, 03:34 PM
Make sure you have totally separate installations and, as Aun Muhammad indicated, make sure you have changed the ports to be different. The default Tomcat out of the box listens on three ports (defined in $TOMCAT_HOME/conf/server.xml): 8005 - the "server" port, usually used for shutdown commands (see the port definition in the Server stanza of server.xml) 8080 - the normal HTTP connector port 8009 - the AJP 1.3 port. All of these ports must be different between the two installations. If you're using Apache httpd in front of Tomcat you can set up connections to the different ports depending on if you're splitting by virtual host or web application. __________________Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

Posted by map007, 11-20-2008, 02:19 AM
Hi, Thank STDUNBAR. I have done it. Thanks.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read