Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • 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

how to read application specific log4j.xml in jboss

Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i deployed my web application in JBoss App server and i have my app specific log configurations specified in log4j.xml
which is reading that file in app specific file) file using DOMConfigurator but me not able to finding the log4j.xml but log4j.xml is availble in same directory.

Please help in this..

Posts: 10445
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of JBossAS do you use? Post the code which tries to load this log4j.xml. And why are you trying to load this file programatically? The easiest way is to configure the log4j through the log4j.xml available in %JBOSS_HOME%/server/< serverName>/conf folder.

While posting logs or code or xml content, please wrap it in a Code block by using the Code button in the message editor window. Please use the Preview button to ensure your post is correctly formatted.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!