4 Replies Latest reply on Dec 8, 2011 4:22 AM by Oliver Roell

    JBoss AS 6.1 and log4j

    Oliver Roell Newbie



      I have switched from JBoss AS 5.1 to JBoss AS 6.1.


      When I start in Eclipse a Java-client which invokes a JBoss-session-bean, I always get a log4j warning in the Eclipse-console:


      log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

      log4j:WARN Please initialize the log4j system properly.


      This warning occurs only with JBoss 6.1 and not with 5.1.


      In JBoss 5.1 there was a jboss-log4j.xml in the directory

      jboss-5.1.0.GA\server\default\conf, but in JBoss 6.1 there is no log4j-config-file.


      Can I copy the jboss-log4j.xml from JBoss 5.1 into 6.1, or is there another possibility to avoid the warnings?


      Kind regards