Logback and Jboss 7 – don’t work together?

You need to exclude the servers version of slf4j from your deployment. Create a jboss-deployment-structure.xml file and place it in either your WARS META-INF or WEB-INF directory.

The contents of the file should look like this:

        <!-- Exclusions allow you to prevent the server from automatically adding some dependencies     -->
            <module name="org.slf4j" />
            <module name="org.slf4j.impl" />

Leave a Comment