• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

prob in JBoss and log4j

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have this specific problem related to JBoss-4.0.1 and log4j (which comes inbuilt in JBoss).
I dont want JBoss's inbuilt log4j to do logging for me.
I want to make my own properties file and JBoss on the fly should lift the properties file and log accordingly to files and console.
I tried to disable JBoss's log4j logging. But am unable to do it.

If I try to run a stand-alone java program (without JBoss Server) with a log4j properties file, it works fine and logs accordingly as given in my properties file.
But, if I try to run my application (on JBoss), it is not taking my properties file, but it is taking JBoss's log4j.xml and logs accordingly.
I tried to customize the log4j.xml, even that dint work for me.

I have deleted all the log4j.xml files, wherever I found in the %JBOSS_HOME% folder. Yet am not able to find the solution,even though, there is no xml file, even then, JBoss logs as if it is lifting the properties from an xml.

Please give me a solution to my problem.


Prashanth Babu.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!