|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
Does MyFaces 1.2 require JSP 2.1?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/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; at org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(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 |
|
|
Re: Does MyFaces 1.2 require JSP 2.1?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
|
|
|
Re: Does MyFaces 1.2 require JSP 2.1?Hello Matt,
Yes, you need JSP 2.1. JSP 2.1 and JSF 1.2 use the new Unified EL that allow better integration of both technologies such as using foreach with JSF. Regards, ~ Simon
On 7/19/07, mraible <matt@...> wrote:
|
|
|
Re: Does MyFaces 1.2 require JSP 2.1?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 <matt@...> 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/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; > > at > > org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102) > > at > > org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(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#a11693503 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > |
|
|
Re: Does MyFaces 1.2 require JSP 2.1?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
|
|
|
Re: Does MyFaces 1.2 require JSP 2.1?I've had the same problem using Facelets on Weblogic 9.2, which does not support JSP 2.1.
Simon, the fact that both JSP 2.1 and JSF 1.2 use the unified EL does not mean that JSP 2.1 and JSF 1.2 must always come together. What it means is that the pairs JSP 2.1/unified EL and JSF 1.2/unified EL must come together by themselves. There might be some dependency there though, which is bad news for those who are limited to a non-JSP 2.1 compliant application server and would like to use JSF 1.2. On 7/19/07, Andrew Robinson <andrew.rw.robinson@...> wrote: JSF 1.2 requires JSP 2.1 unless you use facelets. |
|
|
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 <matt@...> 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 <matt@...> 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/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; > >> > at > >> > > >> org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102) > >> > at > >> > > >> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(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#a11693503 > >> 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#a11693795 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > |
|
|
RE: Does MyFaces 1.2 require JSP 2.1?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@...] 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 <matt@...> 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 <matt@...> wrote: > >> > >> I should mention: I get the error below on startup when deploying > >> 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. > > |
|
|
Re: Does MyFaces 1.2 require JSP 2.1?nice!
that's a cool feature. -M On 7/19/07, Jesse Alexander (KSFD 121) <alexander.jesse@...> 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@...] > 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 <matt@...> 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 <matt@...> 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 |
|
|
Re: Does MyFaces 1.2 require JSP 2.1?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 <matzew@...> wrote: nice! |
|
|
Re: Does MyFaces 1.2 require JSP 2.1?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.
|
|
|
Re: Does MyFaces 1.2 require JSP 2.1?Pior,
Both facelets and Tomcat itself come with an implementation of EL. Remove the el-api and el-impl jars from your web-app. Regards, Jeroen On Tue, 2007-09-18 at 01:02 -0700, Piotr wrote: > 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 <matzew@...> wrote: > >> > >> nice! > >> > >> that's a cool feature. > >> > >> -M > >> > >> On 7/19/07, Jesse Alexander (KSFD 121) > >> <alexander.jesse@...> 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@...] > >> > 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 <matt@...> 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 <matt@...> 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 > >> > > > > > ÿþD i t b e r i c h t i s v e r t r o u w e l i j k e n k a n g e h e i m e i n f o r m a t i e b e v a t t e n e n k e l |