This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Second Port on tomcat 3.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Second Port on tomcat 3.x" Watch "Second Port on tomcat 3.x" New topic

Second Port on tomcat 3.x

Ray Dereck

Joined: Dec 04, 2006
Posts: 2
I have an application using Java Servlets about 30 and HTML forms on tomcat 3.x version.

Is it possible to create another directory/port like 8081 to copy over all the java code, setup JDK and install tomcat 5.x in it?

All I want to see/test existing code on newwer version of tomcat.

Can someone please advise if this possible?

I looked around and i found tomcat can be started using server.xml file with -f option so I can have two tomcats running on two different ports 8080 (existing) and 8081 (newer version) , recompile all java code and test out.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can run as many instances of Tomcat as you like.
As you've mentioned, the port settings can be configured in conf/server.xml.

Besides changing the HTTP port (8080), you will also need to change the SHUTDOWN port. By default it is set to 8005. It doesn't matter what you change it to as long as you use a value that is already being used on your system.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ray Dereck

Joined: Dec 04, 2006
Posts: 2
Thank You Ben
I agree. Here's the link:
subject: Second Port on tomcat 3.x
Similar Threads
http://localhost:8081/ not working
problem using manager application for each tomcat instance
Is it possible to run Tomcat from dos prompt if
problem in starting tomcat with eclipse
Run As -> Run on server cause Http 404 error