Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-532

DeltaSpikeFacesContextFactory construction issue in non EE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.6
    • JSF-Module
    • None
    • Tomcat

    Description

      In non-EE environments you may be using Weld Servlet to initialize CDI.
      However because of JSF zeroconfig you cannot guarantee that weld servlet will be started before JSF.
      During JSF startup DeltaSpikeFacesContextFactory is created and clientWindow is populated, but it throws an exception because the following will only work once the CDI container is started:
      this.clientWindow = BeanProvider.getContextualReference(ClientWindow.class, true);

      Recommend not caching the clientWindow.

      I can confirm that JSF seems to load OK after this is fixed.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            bryncooke Bryn Cooke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: