The moose likes JBoss/WildFly and the fly likes lgo4j configuration problem in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "lgo4j configuration problem in JBoss" Watch "lgo4j configuration problem in JBoss" New topic

lgo4j configuration problem in JBoss

M K Rayapudi
Ranch Hand

Joined: Feb 19, 2007
Posts: 157
The configuration for log4j in JBoss is as follows:
file name: D:\jboss-4.0.5.GA\server\default\conf\log4j.xml

During my application deployment, I am getting the following error:

Please help where I am doing wrong?

dharmendra gahlot
Ranch Hand

Joined: Apr 22, 2009
Posts: 54
This is class Loader problem as your web application also has a log4j jar.
Please remove this jar from your application lib and restart server.
Application server's library is parent library for web application.

Dharmendra Gahlot
SCJP-5.0 87%,SCWCD-5.0 92%
M K Rayapudi
Ranch Hand

Joined: Feb 19, 2007
Posts: 157
thank you dharmendra,
as you said I removed log4j.jar, it is not giving any errors during deployment.
It is sorta covered in the JavaRanch Style Guide.
subject: lgo4j configuration problem in JBoss
Similar Threads
Help? - Reloading log4j.xml config without jboss restart
server.log showing INFO even after jboss-log4j.xml configured to ERROR mode. Please help
Jboss final start up message not comes up in console
JBoss' embedded tomcat not Logging