Solved

How to create two instance of tomcat in same machine

Posted on 2004-10-17
1
163 Views
Last Modified: 2008-02-01
I have an application which is development under Tomcat server.

I would like to create a instance for Production and one for Testing in the same machine. One using port 8080 and the other using 8081.

Can I do that under one Tomcat server and how can I do that ? Or I need to setup two tomcat server?

Thanks
0
Comment
Question by:jabbaa
1 Comment
 
LVL 5

Accepted Solution

by:
mrielf earned 88 total points
ID: 12387585
You must create two service with separate connectors



<Service name="Production">
<Connector port="8080" ... />
<Engine ...
<Host name="localhost" appBase="/path/to/production" ... >
...
</Host>
</Engine>
</Service>

<Service name="Testing">
<Connector port="8081" ... />
<Engine ...
<Host name="localhost" appBase="/path/to/testing" ... >
...
</Host>
</Engine>
</Service>
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access WebSphere Logs With Console 2 471
Weblogic monitoring on linux or java, any tool? 9 325
tomcat 7.0.47 download dont work 3 117
Lamba in java 8 9 244
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

825 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