Never used Catalina, but if you peruse the config files used by the server,
you may find out that the environment variables are fed to the VM
via -D<env_var>=<value>. It's not hard to do in a shell script; it's just a
matter of looping over the variabels returned by the "set" command, and
construct a corresponding string with -D options.

--

Thomas


| -----Original Message-----
| From: Morycz, Felicia V [mailto:[EMAIL PROTECTED]]
| Sent: 02 October 2002 16:46
| To: 'Log4J Users List'
| Subject: RE: Relative path for FileAppender File
|
|
| Actually, I found a catalina.home System properties too.  Does something
| translate CATALINA_HOME environment variable to catalina.home System
| property?
|
| -----Original Message-----
| From: Morycz, Felicia V [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, October 02, 2002 11:36 AM
| To: 'Log4J Users List'
| Subject: RE: Relative path for FileAppender File
|
|
| Thanks, Thomas
|
| I looked at my System properties and found an existing entry called
| "catalina.base" that I used:
| log4j.appender.R.File=${catalina.base}/webapps/democorp/WEB-INF/lo
| gs/surveyo
| r.log
|
| It worked beautifully.  I appreciate the lesson.
|
| -----Original Message-----
| From: Thomas Muller [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, October 02, 2002 11:07 AM
| To: Log4J Users List
| Subject: RE: Relative path for FileAppender File
|
|
| | I have an environment variable called CATALINA_HOME that contains
| | D:/Tomcat4.1
|
| You need to set the variable in the System properties.
| Environment or shell
| variables are _not_ automatically or magicly transferred to the java
| properties.
|
| Either start the VM with the -D option
| (e.g. -DCATALINA_HOME=%CATALINA_HOME%, or set it programmatically with
| System.setProperty( "CATALINA_HOME", <path>" );
|
| | I have tried:
| | log4j.appender.R.File=${CATALINA_HOME}/webapps/democorp/WEB-INF/lo
| | gs/surveyor.log
|
| This is the correct syntax, given that CATALINA_HOME is defined in the
| System properties.
|
| Hope this helps.
|
| --
|
| Thomas
|
|
|
| *************************************************************************
| Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved.
| The information supplied in this email should be treated in confidence.
| No liability whatsoever is accepted for any loss or damage
| suffered as a result of accessing this message or any attachments.
|
| ________________________________________________________________________
| This email has been scanned for all viruses by the MessageLabs SkyScan
| service. For more information on a proactive anti-virus service working
| around the clock, around the globe, visit http://www.messagelabs.com
| ________________________________________________________________________
|
| --
| To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to