Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 89649 invoked from network); 15 Feb 2007 21:30:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 21:30:26 -0000 Received: (qmail 5245 invoked by uid 500); 15 Feb 2007 21:30:28 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 5211 invoked by uid 500); 15 Feb 2007 21:30:28 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 5200 invoked by uid 99); 15 Feb 2007 21:30:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 13:30:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of paulmcmahan@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 13:30:18 -0800 Received: by nf-out-0910.google.com with SMTP id d4so1307492nfe for ; Thu, 15 Feb 2007 13:29:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FQBfmLYoIAk+vAmYsMzyVOA1Fc/JADDxc6MyA3d4VeXsPr//c55YD0oUyGP1+CmyiNQNMnEdOru/LXyIhRE1lpIIjzvJYzLx4CnikTbHZ5KObcbTYso5AdPTNUbfW4xnlFWSEZreJ9Z1ZZvrxrFRGYE+iAwtU5fpTwdzRtBw6L0= Received: by 10.82.172.15 with SMTP id u15mr3663273bue.1171574995552; Thu, 15 Feb 2007 13:29:55 -0800 (PST) Received: by 10.82.190.10 with HTTP; Thu, 15 Feb 2007 13:29:55 -0800 (PST) Message-ID: <21df75940702151329h282529efke167f61cc2e4f38c@mail.gmail.com> Date: Thu, 15 Feb 2007 16:29:55 -0500 From: "Paul McMahan" To: users@myfaces.apache.org Subject: jsf 1.2 and jstl 1.2 RI MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hello, I'm using rev 504193 of the current12 branch and tomcat 6.0.8. My JSF webapp seems to work OK when I include the core-impl and core-api jars (along with their deps) in my WEB-INF/lib. However, a JSP in my web app that uses JSTL but does *not* use JSF produces an error. The JSP looks like this: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <% java.util.ArrayList mylist = new java.util.ArrayList(); mylist.add("one"); mylist.add("two"); mylist.add("three"); pageContext.setAttribute("mylist", mylist); %>

${x}

And the stacktrace is: java.lang.NullPointerException org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.externalContext(ManagedBeanResolver.java:217) org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:146) javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45) org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101) org.apache.jsp.index_jsp._jspx_meth_c_005fforEach_005f0(index_jsp.java:95) org.apache.jsp.index_jsp._jspService(index_jsp.java:68) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) This looks like there's a problem in the resolvers where the ELContext is expected to always have a FacesContext. Should I open a JIRA for this? Best wishes, Paul