After searching on the different forums, it seems that there is no clear
solution to solve this issue. With the application we are developing, the same
problem occurs.
We are deploying an app1.WAR and a app2.EAR file in JBoss. Each of them has its
own log4j.xml and logging occurs respectively
Hi,
Both suggestion from the Wiki don't work. It is cheating.
I just cut and paste the code into my code, it doesn't work at all.
too bad
Benson
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058560#4058560
Reply to the post :
Yeah I couldn't get it to work either, allbeit I didn't try for very long.
It seems to be a poor feature of Log4J that you can only have one config per
JVM. In the end we have to have 1 log4j config in our EAR file which has
knowledge of every application deployed and the JBoss log4j config
the problem is not comming log4j. It's a jboss classloading problem.
In jboss4.3 sp1 version, you could have a log4j.jar version for each of you
application.
But with jboss 4.2 version doing so, you may experience with exception below
| log4j:ERROR A org.jboss.logging.appender.FileAppender
The Wiki is your friend.
http://wiki.jboss.org/wiki/Wiki.jsp?page=ScopedLoggingConfig
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4048948#4048948
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4048948