0 Replies Latest reply on Jan 31, 2013 3:36 PM by sjain24

    Need to disable Jboss logManager

    sjain24

      I am getting this exception in my app deploy to Jboss 7.1 :

      Caused by: java.lang.ClassCastException: org.jboss.logmanager.log4j.BridgeLogger cannot be cast to org.owasp.esapi.Logger

        at org.owasp.esapi.reference.Log4JLogFactory.getLogger(Log4JLogFactory.java:88)

        at org.owasp.esapi.ESAPI.getLogger(ESAPI.java:154)

        at org.owasp.esapi.reference.DefaultEncoder.<init>(DefaultEncoder.java:75)

        at org.owasp.esapi.reference.DefaultEncoder.getInstance(DefaultEncoder.java:59)

        ... 22 more

       

      I have a ear file that I deploy with several war modules. One of the class calls a getLogger which ends up getting the BridgeLogger returned to it.

      So far I've tried:

       

      1. Excluding logmanager module in jboss-deployment -structure.xml file at both deployment and sub-deployment level

      2. Add org.apache.log4j dependency in ear Manifest file

      3. Add jboss-log4j.xml config file to META-INF

       

      I have also payed around with log4j dependency in my main ear pom file to ensure that that is the module I want to access. But nothing has worked.

      Please can someone shed any light on this issue? I have read at places that jboss 7.2 version has this issue fixed. If so, when will that be out?

      I'm stuck with issue for long and need some urgent help !!!!!