Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 88856 invoked from network); 18 Sep 2007 08:03:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 08:03:11 -0000 Received: (qmail 79261 invoked by uid 500); 18 Sep 2007 08:02:58 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 79232 invoked by uid 500); 18 Sep 2007 08:02:58 -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 79221 invoked by uid 99); 18 Sep 2007 08:02:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 01:02:58 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 08:02:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IXY2V-0006bT-Bt for users@myfaces.apache.org; Tue, 18 Sep 2007 01:02:35 -0700 Message-ID: <12751998.post@talk.nabble.com> Date: Tue, 18 Sep 2007 01:02:35 -0700 (PDT) From: Piotr To: users@myfaces.apache.org Subject: Re: Does MyFaces 1.2 require JSP 2.1? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: krzepczak@gmail.com References: <11693501.post@talk.nabble.com> <11693503.post@talk.nabble.com> <11693795.post@talk.nabble.com> <71235db40707191054m7509a15t5cbbe04b905de90a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I've upgraded MyFaces to 1.2 version, facelets to 1.1.12 ver and try to run my app on the Tomcat 6.0.14. During startup I receive following error msg: SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/apache/myfaces/webapp/DefaultFacesInitializer, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ELResolver used in the signature Any idea? P. Francisco Passos wrote: > > Will the Myfaces team consider the possibility of providing similar > support > for non-JSP 2.1 containers using facelets? > > That would be very welcome :) > > On 7/19/07, Matthias Wessendorf wrote: >> >> nice! >> >> that's a cool feature. >> >> -M >> >> On 7/19/07, Jesse Alexander (KSFD 121) >> wrote: >> > No.. >> > RI just makes a test on the JSP-version and disables certain stuff, >> when >> > it detects >> > a J2EE 1.4 environment (as in TC 5 and WLS 9.2). It then relies on >> > facelets >> > to provide certain functionality... >> > >> > Sounds like MyFaces is a bit harsher on the user here than the RI. >> > >> > OK... JSF 1.2 officially needs JEE 5. >> > BUT... 1:0 for RI to allow for the gracefull degradation. >> > >> > Just set up a 1.2 RI-app in TC 5.x and watch the log when starting up. >> > You will notice some entries like >> > INFO: JSF1027: [null] The ELResolvers for JSF were not registered with >> > the JSP container. >> > >> > See what I mean? >> > >> > regards >> > Alexander >> > >> > >> > -----Original Message----- >> > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] >> > Sent: Thursday, July 19, 2007 7:24 PM >> > To: MyFaces Discussion >> > Subject: Re: Does MyFaces 1.2 require JSP 2.1? >> > >> > I would ask the facelets list then. According to the JSF >> > specification, JSP 2.1 and Servlet 2.5 support is required for JSF >> > 1.2. >> > >> > On 7/19/07, mraible wrote: >> > > >> > > I am using Facelets - that's why I find it strange. I'm able to use >> > Sun's RI >> > > (the latest version) in place of MyFaces in the same application and >> > > everything works fine. >> > > >> > > Matt >> > > >> > > >> > > Andrew Robinson-5 wrote: >> > > > >> > > > JSF 1.2 requires JSP 2.1 unless you use facelets. >> > > > >> > > > I believe you have to run Tomcat 6 as a minimum version (servlet >> 2.5 >> > > > support is required) >> > > > >> > > > On 7/19/07, mraible wrote: >> > > >> >> > > >> I should mention: I get the error below on startup when deploying >> > on >> > > >> Tomcat >> > > >> 5.0.25. If I change from MyFaces to Sun's RI and deploy on Tomcat >> > 5.0.25 >> > > >> again, no error. >> > > >> >> > > >> Matt >> > > >> >> > > >> >> > > >> mraible wrote: >> > > >> > >> > > >> > From what I can tell, MyFaces 1.2 requires JSP 2.1. I developed >> a >> > quick >> > > >> > prototype using MyFaces 1.2 + Facelets 1.1.13 and I get the >> > following >> > > >> > error on startup: >> > > >> > >> > > >> > Exception sending context initialized event to listener instance >> > of >> > > >> class >> > > >> > org.apache.myfaces.webapp.StartupServletContextListener >> > > >> > java.lang.NoSuchMethodError: >> > > >> > >> > > >> >> > >> javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/Ser >> > vletContext;)Ljavax/servlet/jsp/JspApplicationContext; >> > > >> > at >> > > >> > >> > > >> >> > >> org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFaces >> > Initializer.java:102) >> > > >> > at >> > > >> > >> > > >> >> > >> org.apache.myfaces.webapp.StartupServletContextListener.contextInitializ >> > ed(StartupServletContextListener.java:57) >> > > >> > >> > > >> > If I deploy my app to Tomcat 6, this problem doesn't exist. If I >> > change >> > > >> > from MyFaces 1.2 to Sun's RI 1.2_04, this problem doesn't exist >> > either. >> > > >> > For this reason, it appears to me that MyFaces 1.2 requires JSP >> > 2.1. >> > > >> > >> > > >> > Cheers, >> > > >> > >> > > >> > Matt >> > > >> > >> > > >> >> > > >> -- >> > > >> View this message in context: >> > > >> >> > >> http://www.nabble.com/Does-MyFaces-1.2-require-JSP-2.1--tf4112432.html#a >> > 11693503 >> > > >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> > > >> >> > > >> >> > > > >> > > > >> > > >> > > -- >> > > View this message in context: >> > >> http://www.nabble.com/Does-MyFaces-1.2-require-JSP-2.1--tf4112432.html#a >> > 11693795 >> > > Sent from the MyFaces - Users mailing list archive at Nabble.com. >> > > >> > > >> > >> >> >> -- >> Matthias Wessendorf >> >> further stuff: >> blog: http://matthiaswessendorf.wordpress.com/ >> mail: matzew-at-apache-dot-org >> > > -- View this message in context: http://www.nabble.com/Does-MyFaces-1.2-require-JSP-2.1--tf4112432.html#a12751998 Sent from the MyFaces - Users mailing list archive at Nabble.com.