Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1826

broken BeanManager/JSF boot or propagation for EAR deployments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      After deploying my app to TomEE I get the following Exception:

      Caused by: java.lang.IllegalStateException: Unable to find BeanManager. Please ensure that you configured the CDI implementation of your choice properly.
      at org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider.getBeanManager(BeanManagerProvider.java:136)
      at org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getContextualReferenceByClass(CodiUtils.java:124)
      at org.apache.myfaces.extensions.cdi.jsf2.impl.navigation.CodiNavigationHandler.isAddViewConfigsAsNavigationCaseActivated(CodiNavigationHandler.java:200)
      at org.apache.myfaces.extensions.cdi.jsf2.impl.navigation.CodiNavigationHandler.<init>(CodiNavigationHandler.java:65)

      There are 2 possible reasons:
      a.) either JSF gets booted before CDI is available
      b.) The BeanManager is not available for the WebApp yet.

      Our Application expects a sane ClassLoader isolation between webapps as recommended by the EE6 specification.

      Attachments

        Activity

          People

            Unassigned Unassigned
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: