This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set up Log4J.properties in JBoss 5.1.0?

 
Dejan Mratinkovic
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my own Log4j.properties file, placed in the root of my ear file, set up as described here:http://www.jboss.org/feeds/post/how_do_i_use_my_own_log4j_properties_or_xml_file_in_jboss

On Jboss 4.2.3 ti all works fine. Now I want to migrate application to Jboss 5.1, but log4j.properties seem to be ignored.

Should I initialize log4j somehow, or do anything else? In 4.2.3 all worked out of the box, without me doing anything else except placing the file into the root of application. I have tried to put the same file elsewhere on classpath, but with same result.

I guess almost all enterprise applications have log4j set up somehow. Anyone got it working on 5.1? Is my problem just file placement or could it be something else, ie. initialize/configure Log4j from my code (which I could do, and I am pretty sure it will work, but would like to avoid)?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic