Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1771

The ServletContainerInitializer will apply to all deployed webapps, even ones not using CDI

XMLWordPrintable

      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.

              mkouba@redhat.com Martin Kouba
              joakim.erdfelt@gmail.com Joakim Erdfelt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: