[jboss-user] [Beginner's Corner] - Log4J Configuration Problems with JBoss 7.0.1 Final

Hauke Gulich do-not-reply at jboss.com
Fri Sep 16 17:34:57 EDT 2011


Hauke Gulich [http://community.jboss.org/people/haukegulich] created the discussion

"Log4J Configuration Problems with JBoss 7.0.1 Final"

To view the discussion, visit: http://community.jboss.org/message/626989#626989

--------------------------------------------------------------
Hello everyone,

after getting used to the new JBoss 7 (I come from JBoss 4) I managed to get everything to work, exept Log4j.

In my classes I do this:



public class JMSSender {
    private static final Logger logger = Logger.getLogger(JMSSender.class);

    ...

    public void something() {
        logger.info("Something");
   }



But I get this message



21:35:10,396 ERROR Log4J Configuration Problems with JBoss 7.0.1 Final (http://community.jboss.org/message/626989#626989#626989/stderr) (http--127.0.0.1-8080-1) log4j:WARN No appenders could be found for logger (de.hauke.client.jms.JMSSender).

21:35:10,396 ERROR Log4J Configuration Problems with JBoss 7.0.1 Final (http://community.jboss.org/message/626989#626989#626989/stderr) (http--127.0.0.1-8080-1) log4j:WARN Please initialize the log4j system properly.

21:35:10,396 ERROR Log4J Configuration Problems with JBoss 7.0.1 Final (http://community.jboss.org/message/626989#626989#626989/stderr) (http--127.0.0.1-8080-1) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.



I am using maven and I put this dependency to my project




|  |  | <dependency> |
|  |  |  | <groupId>log4j</groupId> |
|  |  |  | <artifactId>log4j</artifactId> |
|  |  |  | <version>1.2.16</version> |
|  |  | </dependency> |
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/626989#626989]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110916/9895f7f1/attachment.html 


More information about the jboss-user mailing list