title: Log4j error during deploing web application
body: <p>I have a problem, I try to deploy my web project in glasfish 3.1.2, it is works fine but throws  the following error, please help me to understand what is the problem</p>
  
  <pre><code>SEVERE: log4j:ERROR log4j called after unloading, see http://logging.apache.org/log4j/1.2/faq.html#unload.
  SEVERE: java.lang.IllegalStateException: Class invariant violation
      at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)
      at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
      at org.apache.log4j.Logger.getLogger(Logger.java:104)
      at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
      at org.apache.commons.logging.impl.Log4JLogger.&lt;init&gt;(Log4JLogger.java:65)
      at sun.reflect.GeneratedConstructorAccessor47.newInstance(Unknown Source)
  </code></pre>