Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 26321 invoked from network); 16 Mar 2011 02:26:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 02:26:51 -0000 Received: (qmail 83616 invoked by uid 500); 16 Mar 2011 02:26:51 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 83569 invoked by uid 500); 16 Mar 2011 02:26:51 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 83562 invoked by uid 99); 16 Mar 2011 02:26:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 02:26:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 02:26:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9D2993AB34B for ; Wed, 16 Mar 2011 02:26:29 +0000 (UTC) Date: Wed, 16 Mar 2011 02:26:29 +0000 (UTC) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Message-ID: <1342487073.5792.1300242389640.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <145663047.15863.1297719242898.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (MYFACES-3042) CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leonardo Uribe updated MYFACES-3042: ------------------------------------ Resolution: Fixed Fix Version/s: 2.0.5-SNAPSHOT Assignee: Leonardo Uribe Status: Resolved (was: Patch Available) Thanks to Michael Freedman for provide this patch > CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java > ------------------------------------------------------------------------------------------------ > > Key: MYFACES-3042 > URL: https://issues.apache.org/jira/browse/MYFACES-3042 > Project: MyFaces Core > Issue Type: Bug > Components: Portlet_Support > Affects Versions: 2.0.5-SNAPSHOT > Reporter: Michael Freedman > Assignee: Leonardo Uribe > Fix For: 2.0.5-SNAPSHOT > > Attachments: jira-myfaces-3042.patch > > > In FaceletViewDeclarationLanguage.java: createResponseWriter(), getResponseEncoding(), handleFaceletNotFound(), and sendSourceNotFound() each cast to Servlet object. This causes ClassCastExceptions when run in a portlet environment. Each of these calls/casts can be removed and ExternalContext APIs can be used instead to get/set the needed information from the request or response object. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira