When a server side use of CDI is enabled, the ServletContainerInitializer in Weld (org.jboss.weld.environment.servlet.EnhancedListener) will be applied to all webapps equally.
This is to be expected, after all, that's what a ServletContainerInitializer is supposed to do.
However, if you have an environment with multiple webapps, such as ...
-
basic.war
-
cdi-enhanced.war
-
static.war
... and only 1 of the wars uses CDI, then this results in errors for the non-CDI wars.
|