We used log4j in a standalone GlassFish server based on recommendations in this FAQ - see FaqCongifureLog4J. However, this did not work in a cluster environment, until we realized how to configure it properly. The following is the summary of our findings. Log4j JAR should be added to all $
/lib folders in all node instances.
The following 2 lines should be added to the System Classpath in your cluster-config->JVM Settings->JVM Classpath Settings:
Unknown macro: {com.sun.aas.instanceRoot}
/lib/log4j.jar
/lib/classes (if you put log4j.properties there). |