Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1511

Warning in console log during JSF portlet deployment: Unable to determine Mojarra InjectionProvider

    Details

      Description

      If the warning "Unable to determine Mojarra InjectionProvider" appears in the in console log during portlet deployment, then the following should be added to the portlet's WEB-INF/web.xml deployment descriptor:

      <!-- Guarantee order of startup listeners (JSF implementation must be specified before the bridge). -->
      <listener>
      	<listener-class&gt;com.sun.faces.config.ConfigureListener</listener-class&gt;
      </listener>
      <listener>
      	<listener-class&gt;com.liferay.faces.bridge.servlet.BridgeSessionListener</listener-class&gt;
      </listener>
      

      In order to make sure that Liferay Faces Bridge is able to determine/discover the Mojarra InjectionProvider, the Mojarra ConfigureListener must be explicitly specified in the WEB-INF/web.xml descriptor before the BridgeSessionListener.

      If deploying portlets with JBoss AS, it is an absolute necessity to explicitly specify listener order (as well as upgrading to Mojarra 2.1.20+) in order to fix memory leaks described in FACES-1470.

      If using a different application server or servlet container, then it is still recommended to explicitly specify listener order in order.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  liferay-faces-2.1.2-ga3
                  liferay-faces-3.0.2-legacy-ga3
                  liferay-faces-3.0.2-ga3
                  liferay-faces-3.1.2-ga3