Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-92

JSF servlets don't work when used side-by-side with JSF portlets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.4
    • None
    • jsf
    • None
    • JBoss 4.0.5 running Apache MyFaces 1.1.5, portlet-bridges 1.0.4

    Description

      When the portlet bridges library is included in a WAR file, JSP pages can only be accessed through portlets, not directly from the FacesServlet. Attempting to access a JSP page through the FacesServlet results in an IllegalArgumentException with the message "Only PortletContext supported". The stack trace shows that this occurs when attempting to access the session map.

      Upon further investigation, the problem stems from the fact that the portlet-bridges-jsf library includes a META-INF/faces-config.xml file which installs a custom FacesContextFactory and ViewHandler. These are installed for the entire web application, yet are designed only to work with portlets. Thus, running JSF portlets and servlets side-by-side results in errors.

      Attachments

        1. servlet-and-portlets-side-by-side.patch
          29 kB
          Trevor Lohrbeer
        2. servlet-and-portlets-side-by-side-v2.patch
          29 kB
          Trevor Lohrbeer

        Activity

          People

            Unassigned Unassigned
            tlohrbeer Trevor Lohrbeer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: