Thanks Ognjen .

I need to set certain application specific enviornment variables ,pls suggest 
what is the best way of doing that.
eg:- configuring enviornment variable for LOG4j file path 

eg:export path=/tc/amps/logs

does above entry will be sufficient for defining in setenv.sh

Thanks
Vicky



________________________________
 From: Ognjen Blagojevic <[email protected]>
To: Tomcat Users List <[email protected]> 
Sent: Friday, 20 September 2013 3:42 PM
Subject: Re: setenv.sh issue
 

Vicky,

On 20.9.2013 11:32, vicky wrote:
> Hi All,
>
>   When i am declaring variables in my $CATALINA_BASE/bin/setenv.sh file , 
>they are not getting exported :-
>
> eg:- export NAME=e1
>       export ID=22
>
> But when i am declaring the same variables in $CATALINA_BASE/bin/startup.sh 
> in following manner these are getting exported properly:-
> eg:-
> export CATALINA_OPTS="-DNAME=e1 -DID=22"
>
> Kindly suggest what is the issue in this

When you say "varibles", do you mean "Java system properties" or "OS 
environment variables"?

If you need to set Java system properties, use:

   export CATALINA_OPTS="-DNAME=e1 -DID=22"

If you want to export OS environment variables use:

   export NAME=e1
   export ID=22

In either way, refrain from modifying startup.sh, but use setenv.sh.

Regards,
Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to