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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to