My Java EE 6 application consists of a war and an ejb module packaged in ear file. I\'m using CDI for DI (i.e. I have a beans.xml file in both modules). I want to use a logging
I had exactly the same problem with my logging interceptor on JBoss 7 and fixed it by overlaying the complete interceptor's jar into the application.
org.apache.maven.plugins
maven-war-plugin
2.4
com.github.t1
logging-interceptor
jar
WEB-INF/classes
com.github.t1
logging-interceptor
1.1
true
You'll still have to activate the interceptor in the application's breans.xml.
Not nice, but it works. In Java EE 7, it works without the activation by annotating the interceptor as @Priority.