RE: Running Tomcat as a Service on Non-default port

2008-09-09 Thread Caldarale, Charles R
 From: Kamal Sheikh [mailto:[EMAIL PROTECTED]
 Subject: Running Tomcat as a Service on Non-default port

 Is it possible to install Tomcat as a service and
 configure it so that it runs on a different port?

Ports are configured in the Connector element(s) in conf/server.xml; a 
restart of Tomcat is required when changing port numbers.  If the service 
doesn't reflect what you're editing, then the service is using a Tomcat 
installation different from what you think.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running Tomcat as a Service on Non-default port

2008-09-09 Thread André Warnier

Kamal Sheikh wrote:

Hi,

I am using Tomcat v 5.5.23 and want to run the server as a Windows service
(tomcat5.exe) on a port other than the default port of 8080.  Is it possible
to install Tomcat as a service and configure it so that it runs on a
different port?

While we can configure Tomcat and run it on a different port when we are in
console mode (startup.bat or catalina run), but as a service it doesn't seem
possible to change the default port.

Any help will be appreciated.

Thanks.


That's a really easy one, even I can answer :

In your Tomcat installation directory, look for the subdirectory conf, 
and in it the file server.xml.


Locate this bit :

Connector port=8180 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

and change it to :

Connector port=9180 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

(i.e. the port= attribute, whatever it is and whatever you want).
Then start (or restart) the Tomcat service.

André

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]