3 Replies Latest reply on Jan 5, 2011 3:46 AM by Sakari Isoniemi

    Logger injection in JBoss 6 Final ?

    Sakari Isoniemi Newbie

      Seam Logger don't inject with Seam 2.2.1.CR2, JBoss 6 Final.


      Application is generated by seam-gen and works fine.


      When loggging is added comes always NPE no matter how logging is instantiated.


      import org.jboss.seam.annotations.Logger;


      @Logger public Log log;


      log.debug(”test seam logging”); -- NPE


      @Logger private Log log;


      log.debug(”test seam logging”); -- NPE


      @Logger Log log;


      log.debug(”test seam logging”); -- NPE


      In JBoss AS 6 commmon lib is log4.jar and server start advertises this lib. I copied this jar to ../default/lib.


      Result is the same. Maybe jar must be in applications libraries in this AS version ?