subhashlg26
subhashlg26

Reputation: 1013

JBoss 7.1 logging is not working

In my web application I am using apache logging log4j. When I was working jboss as 7.0, logging was working well.

But when i switched to Jboss 7.1 logging is not working. Can somebody let me know what has been changed?

Upvotes: 1

Views: 6113

Answers (1)

James R. Perkins
James R. Perkins

Reputation: 17760

By default in 7.1 logging dependencies are added to each deployment. This works for most people, but if you're using your own log4j configuration this will not work for you in 7.1.1 and lower. You need to exclude the servers log4j dependency.

Note: In 7.2.x this will just work and you can remove the jboss-deployment-structure.xml and the dependency.

Upvotes: 3

Related Questions