2 Replies Latest reply on Aug 6, 2012 5:16 AM by technokrat

    ERROR Attempted to append to closed appender named [null]

    Russell Black Newbie

      I always get this error if I redeploy my ear and try to use my logger. My logging code looks like this:

      Inside my stateful session bean's setSessionContext method:

      org.apache.log4j.Logger logger = org.apache.log4j.Logger.getInstance(EmailerBean.class)

      ** later **

      logger.debug("blah blah blah")

      Any ideas why I'm trying to append to a closed appender? The hot deploy feature is really cool, and I'd like to avoid restarting the server every time I deploy.

      Thanks