On 5/16/2013 3:24 AM, Bernd Fehling wrote:
OK, solved. I have now run-jetty-run with log4j running. Just copied log4j libs from example/lib/ext to webapp/WEB-INF/classes and set -Dlog4j.configuration in run-jetty-run VM classpath.
The location where you copied those files is in the extracted .war file, and may get automatically wiped out at some point in the future, especially by an upgrade. It would be better to copy them to the external lib directory for your container. For jetty, that's lib/ext ... it is likely to be different for other containers.
Thanks, Shawn