RE: Tomcat Shutdown Port as Variable

2008-10-15 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat Shutdown Port as Variable
>
> a shame that you cant specify that attribute via %JAVA_OPTS%

As Rainer already pointed out, you can; the shutdown script does not use 
CATALINA_OPTS, but it does honor JAVA_OPTS.

 - 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: Tomcat Shutdown Port as Variable

2008-10-15 Thread Martin Gainty

a shame that you cant specify that attribute via %JAVA_OPTS%
maybe look at writing a set_8005 script which writes that  to 
%TOMCAT_HOME%/conf/server.xml
should be fine as long as you execute the script before starting TC ..

any other suggestions?
Martin Gainty 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> To: users@tomcat.apache.org
> Subject: Tomcat Shutdown Port as Variable
> From: [EMAIL PROTECTED]
> Date: Wed, 15 Oct 2008 09:42:51 -0400
> 
> Hi All -
> 
> I have quite a few installs of Tomcat on the same server (same 
> CATALINA_HOME, different CATALINA_BASE), and I am interested in making my 
> configs a little more portable.  I'm trying to make certain unique items 
> in my server.xml variable ( ${variablename} ), being pulled from my 
> CATALINA_OPTS as parameters (-D...).  Everything works great, however, the 
> shutdown port seems to be an issue.  Since catalina.sh does not utilize 
> CATALINA_OPTS for the stop command, it does not process my parameter 
> (-Dtc.shutdown.port=) and therefore will not attempt to shutdown the 
> correct port.  Is there any good way to achieve this to keep my server.xml 
> modular without hacking apart the standard scripts that come with tomcat?
> 
> for reference, TC version 6.0.18
> 
> Thanks,
> 
> Al

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Re: Tomcat Shutdown Port as Variable

2008-10-15 Thread AFaller
> > I have quite a few installs of Tomcat on the same server (same 
> > CATALINA_HOME, different CATALINA_BASE), and I am interested in making 
my 
> > configs a little more portable.  I'm trying to make certain unique 
items 
> > in my server.xml variable ( ${variablename} ), being pulled from my 
> > CATALINA_OPTS as parameters (-D...).  Everything works great, however, 
the 
> > shutdown port seems to be an issue.  Since catalina.sh does not 
utilize 
> > CATALINA_OPTS for the stop command, it does not process my parameter 
> > (-Dtc.shutdown.port=) and therefore will not attempt to shutdown 
the 
> > correct port.  Is there any good way to achieve this to keep my 
server.xml 
> > modular without hacking apart the standard scripts that come with 
tomcat?
> 
> Adding it to JAVA_OPTS instead?

That works as expected.  Thank you very much!

Al

Re: Tomcat Shutdown Port as Variable

2008-10-15 Thread Rainer Jung

[EMAIL PROTECTED] wrote:

Hi All -

I have quite a few installs of Tomcat on the same server (same 
CATALINA_HOME, different CATALINA_BASE), and I am interested in making my 
configs a little more portable.  I'm trying to make certain unique items 
in my server.xml variable ( ${variablename} ), being pulled from my 
CATALINA_OPTS as parameters (-D...).  Everything works great, however, the 
shutdown port seems to be an issue.  Since catalina.sh does not utilize 
CATALINA_OPTS for the stop command, it does not process my parameter 
(-Dtc.shutdown.port=) and therefore will not attempt to shutdown the 
correct port.  Is there any good way to achieve this to keep my server.xml 
modular without hacking apart the standard scripts that come with tomcat?


Adding it to JAVA_OPTS instead?

Regards,

Rainer

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



Tomcat Shutdown Port as Variable

2008-10-15 Thread AFaller
Hi All -

I have quite a few installs of Tomcat on the same server (same 
CATALINA_HOME, different CATALINA_BASE), and I am interested in making my 
configs a little more portable.  I'm trying to make certain unique items 
in my server.xml variable ( ${variablename} ), being pulled from my 
CATALINA_OPTS as parameters (-D...).  Everything works great, however, the 
shutdown port seems to be an issue.  Since catalina.sh does not utilize 
CATALINA_OPTS for the stop command, it does not process my parameter 
(-Dtc.shutdown.port=) and therefore will not attempt to shutdown the 
correct port.  Is there any good way to achieve this to keep my server.xml 
modular without hacking apart the standard scripts that come with tomcat?

for reference, TC version 6.0.18

Thanks,

Al