tags:

views:

25

answers:

1

I need to pass -Dlog4j.debug to tomcat through command line, how to do that ?? The platform in Linux box, the command is $CATALINA_HOME/bin/startup.sh

I've tried set CATALINA_OPTS=-Dlog4j.debug=true but noway !!

The solution is :

export CATALINA_OPTS=-Dlog4j.debug=true 
A: 

I'm not sure how you're starting tomcat, but doing:

set CATALINA_OPTS=-Dlog4j.debug=true

And then starting it on the same command line, will do the job.

Hope this helps you

Marcos Placona