aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss log4j configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss log4j configuration" Watch "Jboss log4j configuration" New topic

Jboss log4j configuration

Ragavendran Baskaran

Joined: Dec 12, 2011
Posts: 15
I have configured in my application(EAR) as explained in the following article -->

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.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9317

What exact version of JBoss AS is this?

[My Blog] [JavaRanch Journal]
Ragavendran Baskaran

Joined: Dec 12, 2011
Posts: 15
Version used here is JBoss EAP 5.1.
Ragavendran Baskaran

Joined: Dec 12, 2011
Posts: 15
I'm still struck with this issue. Can some one point me out what is missing here ?
I agree. Here's the link:
subject: Jboss log4j configuration
Similar Threads
Jar Isolation Not Working
Loading different version of Hibernate(3.3) in Jboss4.0.3
Deploying a webservice with isolated namespace
Twist on server/packaged library problem - Jboss/Packaging
log 4j in JBOSS 4.0.0