• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Second Port on tomcat 3.x

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thx
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ray Dereck
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You Ben
 
reply
    Bookmark Topic Watch Topic
  • New Topic