tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Starting up a particular configuration
Date Thu, 22 Jan 2004 17:02:04 GMT

Howdy,
As always, if you have
corrections/additions/clarifications/modifications to the documentation,
I will be happy to review and commit them.  Send them at your leisure
(to the list so that others may comment, not to me directly).  Thanks,

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Guy Rouillier [mailto:guyr@masergy.com]
>Sent: Thursday, January 22, 2004 11:47 AM
>To: Tomcat Users List
>Subject: RE: Starting up a particular configuration
>
>Shapira, Yoav wrote:
>> Howdy,
>> Use the -config {pathname} argument to specify a server.xml
>> file to use. And please be careful in your wording, as this quote:
>>
>>> According to RUNNING.txt, "you can pass a
>>> "-Dcatalina.base=$CATALINA_BASE" argument when executing the startup
>>> command" to run a specified configuration.
>>
>> is completely out of context or alternatively you completely
>> misunderstood it.  Setting CATALINA_BASE (different from
>> CATALINA_HOME) applies only to multiple instances sharing the
>> same base.
>
>Yoav, thanks for the reply.  I am indeed running two instances of
Tomcat
>from one installation directory.  I've created a subdirectory (called
>secure) under CATALINA_HOME and created the required directories (work,
>conf, temp) there.  To run the first instance, I just run startup.  To
>run the second instance, I tried this:
>
>startup -Dcatalina.base=C:\\tomcat-jakarta-5.0.16\secure
>
>and got the message I originally posted ("usage: java
>org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -debug ]
[
>-nonaming ] { start | stop }").  That's what I understand RUNNING.txt
to
>mean when it says "executing the startup command."  However, I very
well
>may be misunderstanding what it says, as I see in catalina.bat that it
>uses the following:
>
>%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
>-Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%"
>-Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%"
>-Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
>%ACTION%
>
>So it looks like the -Dcatalina.base option is used by catalina.bat
when
>it invokes org.apache.catalina.startup.Bootstrap.  I think RUNNING.txt
>could be clearer on this, as the end user would never supply this
option
>if he/she is using the supplied startup scripts/batch files.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message