In my experience you'll always have to fiddle to make log4j work;) I can think of several things you could try:
- Add the location of the properties file explicitly to the CLASSPATH. You might want to try to add the full path.
- Add the properties file to the jar file.
- Fiddle with the $ENV{EXTRA_JAVA_ARGS} part. I think the argument you provide is not correct/complete, i.e. the "-Dlog4j.debug" part. I would expect something like "-Dlog4j.configuration=dir_where_to_find_config_file/log4j.properties".
Sanity check: I assume you have established that log4j actually works if you run the java app.?
HTH
Harry