• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Jboss log4j configuration

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have configured log4j.properties in my application(EAR) as explained in the following article --> http://planet.jboss.org/post/how_do_i_use_my_own_log4j_properties_or_xml_file_in_jboss

i.e., I have packaged jboss-app.xml to isolate the class loading as below.



After doing this, JBoss is able to locate my custom log4j property file however it fails in my start up servlet where i'm trying to locate the JBoss MBean server for registering my custom application specific mbeans. I hope the findMBeanServer method will try to locate the mbean server in the current class loader, as we have isolated the class loader is it creating the problem ?
The below piece of code used to work before adding jboss-app.xml.

Code snippet in my startup servlet is given below:



Can some one help me how to solve this ?

Note:- My goal is to setup my jboss instance with my custom log4j property file without affecting my startup servlet.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exact version of JBoss AS is this?
 
Ragavendran Baskaran
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Version used here is JBoss EAP 5.1.
 
Ragavendran Baskaran
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm still struck with this issue. Can some one point me out what is missing here ?
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic