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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34935 Thu May 09 12:32:46 MDT 2013 deryk.sinotte ICE-9178: add listeners to web.xml of portlet versions only
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/core/chat/src/main/webapp/WEB-INF/web.xml
        Commit graph ADD /icefaces3/trunk/icefaces/samples/core/chat-portlet/src/main/webapp/WEB-INF/web.xml

          People

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

            Dates

            • Created:
              Updated:
              Resolved: