Return-Path: Delivered-To: apmail-portals-bridges-dev-archive@www.apache.org Received: (qmail 34018 invoked from network); 14 Aug 2009 16:27:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 16:27:31 -0000 Received: (qmail 90444 invoked by uid 500); 14 Aug 2009 16:27:37 -0000 Delivered-To: apmail-portals-bridges-dev-archive@portals.apache.org Received: (qmail 90385 invoked by uid 500); 14 Aug 2009 16:27:37 -0000 Mailing-List: contact bridges-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bridges-dev@portals.apache.org Delivered-To: mailing list bridges-dev@portals.apache.org Received: (qmail 90375 invoked by uid 99); 14 Aug 2009 16:27:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 16:27:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 16:27:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0C381234C1EF for ; Fri, 14 Aug 2009 09:27:15 -0700 (PDT) Message-ID: <219745159.1250267235049.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 09:27:15 -0700 (PDT) From: "Trevor Lohrbeer (JIRA)" To: bridges-dev@portals.apache.org Subject: [jira] Updated: (PB-92) JSF servlets don't work when used side-by-side with JSF portlets In-Reply-To: <1939885900.1250038815737.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PB-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trevor Lohrbeer updated PB-92: ------------------------------ Attachment: servlet-and-portlets-side-by-side-v2.patch Attached is an updated patch. My isPortlet() function in PortletViewHandlerImpl was not working correctly because PortletExternalContextImpl does not implement javax.portlet.PortletContext. Instead, now I'm testing to see if the facesContext is an instance of PortletFacesContextImpl, which should work as long as the FacesContextFactory remains the portals bridges FacesContextFactoryImpl. > JSF servlets don't work when used side-by-side with JSF portlets > ---------------------------------------------------------------- > > Key: PB-92 > URL: https://issues.apache.org/jira/browse/PB-92 > Project: Portals Bridges > Issue Type: Bug > Components: jsf > Affects Versions: 1.0.4 > Environment: JBoss 4.0.5 running Apache MyFaces 1.1.5, portlet-bridges 1.0.4 > Reporter: Trevor Lohrbeer > Attachments: servlet-and-portlets-side-by-side-v2.patch, servlet-and-portlets-side-by-side.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org For additional commands, e-mail: bridges-dev-help@portals.apache.org