2 Instance on Tomcat

Posted on 2012-09-17
Last Modified: 2012-09-20
We have Tomcat 6 installed on our server as a service.
Now we need to setup another tomcat instance on the same machine without having to create another service. So we downloaded a zipped version of Tomcat which can be exploded (without having to install).

After exploding this Tomcat we executed the startup.bat from command prompt but it gave an error saying CATALINE_HOME is not set. so on the prompt we did "set CATALINA_HOME=...". Now the error has disappeared but the server still does not start.

can someone please help.

We don't want to create another service as we don't want to make any changes in the registry. Also, we do not want to set any values in the system variables as that could effect the already running instance.

Thank you
Question by:ank5
    LVL 86

    Expert Comment

    Look at the log file and post the errors here

    Accepted Solution

    When we run Tomcat, it uses 5 environment variables. They are:

    In the above list, CATALINA_HOME and JAVA_HOME are mandatory environment variables. All others are optional and can be calculated using CATALINA_HOME.

    CATALINA_HOME - this environment variable should point to tomcat base folder, where tomcat binary are  installed/extracted. so based on CATALINA_HOME we can get bin and lib folder
    LVL 86

    Assisted Solution

    You would definitely need to adjust the default port as otherwise each instance would try to listen on the same one. The one that gets there second to the same port will throw an error

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    factorial example challenge 10 44
    array6 challenfge 6 48
    nestparen challenge 4 33
    What is the latest versions eclipse neon 2 55
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now