Installed and started the Tomcat 7 on Linux. Java 6.
What is the allowed range for the ports in addition to the 8080. I intend to run multiple Apps on the same server. So if the 8080 is taken, I'll need to use a different one for another app. In which XML file to specify the port (server.xml or context.xml)?
Why? Other than "I want to", that is. Tomcat is set up to handle the customary way; why swim upstream to do things differently without a very good reason?
Joined: Jul 12, 2012
The Tomcat will be installed on the same machine as the Eclipse IDE. To keep the development and production as identical as possible, the web app on the development environment will be named exact the same as the testing environment, such as TestApp for both, that is,
By this way, if testing is passed, in the production, I only need to deploy to the production server and use the exact setting such as: http://192.168.1.11:8083/TestApp, without toggling the name such as TestApp and ProdApp.
I just tried to make sure that if I want to use different ports for separate apps, I actually can.
And what is the range for the ports which I can use including the 8080. And how can I determine which ports are allowed for http on Tomcat?
P.S. Currently I am using IBM's Websphere on which I use :9080 for development and 9083 for testing something like:
J2EE webapp servers are based on the idea that one server can - and often will - host multiple webapps. The distinction is based not on the port number, but on the context path that is associated with the webapp. This is just as true in WebSphere as it is in Tomcat.
The Tomcat server essentially consists of building blocks that are wired together according to the schema mapped out in the Tomcat server.xml file. Ports are defined as Connectors within a Service, and the Service also contains an Engine. Requests coming in on the Connectors are routed by the Service to the Engine, which then sends them down the pipeline to whichever webapp the context path in the URL indicates that the request should be handled by.
Setting up an entirely new Service for gratuitous purposes is rather messy. As long as you're at it, you might as well simply clone the entire server and run 2 separate Tomcats.
An IDE is no substitute for an Intelligent Developer.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com