ICEfaces
  1. ICEfaces
  2. ICE-9178

LiferayFaces Bridge listeners cause problems when deployed in other environments

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      Portal portlet LiferayFaces Bridge
    • Workaround Exists:
      Yes
    • Workaround Description:
      Manually remove the listeners if you are deploying the example in an environment that does not include the LiferayFaces Bridge.

      Description

      As part of a fix for ICE-9156, we modified the chat and showcase portlet examples to include listeners in the web.xml. This was done as per the recommendations outlined in http://issues.liferay.com/browse/FACES-1511:

      {code}<!-- Specifying these listeners in this order as per http://issues.liferay.com/browse/FACES-1511 -->
      <listener>
          <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
      </listener>

      <listener>
          <listener-class>com.liferay.faces.bridge.servlet.BridgeSessionListener</listener-class>
      </listener>{code}

      The problem is that if a web.xml contains these listener declarations and the LiferayFaces Bridge is not present, the deployment will fail with errors about not being able to find the class. This can happen if the chat application is deployed directly to Tomcat or the Showcase Portlet application is deployed to Liferay but using the older PortletFaces Bridge.

      We should create separate web.xml files for the chat and chat-portlet examples to help isolate the issue to portlet deployments only.

        Activity

        Deryk Sinotte created issue -
        Deryk Sinotte made changes -
        Field Original Value New Value
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Deryk Sinotte made changes -
        Fix Version/s 3.4 [ 10770 ]
        Deryk Sinotte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: