Does MyFaces 1.2 require JSP 2.1?

View: New views
15 Messages — Rating Filter:   Alert me  

Does MyFaces 1.2 require JSP 2.1?

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Does MyFaces 1.2 require JSP 2.1?

by Simon Lessard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

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#a11693501
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Does MyFaces 1.2 require JSP 2.1?

by Andrew Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@raibledesigns.com> 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?

by Francisco Passos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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?

by Andrew Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

by Jesse Alexander (KSFH 323) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
>
>

Re: Does MyFaces 1.2 require JSP 2.1?

by Matthias Wessendorf-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

by Francisco Passos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Does MyFaces 1.2 require JSP 2.1?

by Piotr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@apache.org> wrote:
>
> nice!
>
> that's a cool feature.
>
> -M
>
> On 7/19/07, Jesse Alexander (KSFD 121)
> <alexander.jesse@credit-suisse.com> 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 <matt@raibledesigns.com> 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@raibledesigns.com> 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?

by Jeroen Benckhuijsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
> >>
> >
> >
>

ÿþDit bericht is vertrouwelijk en kan geheime informatie bevatten enkel
bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd,
verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te
vernietigen.
Aangezien de integriteit van het bericht niet veilig gesteld is middels
verzending via internet, kan Atos Origin niet aansprakelijk worden gehouden
voor de inhoud daarvan.
Hoewel wij ons inspannen een virusvrij netwerk te hanteren, geven
wij geen enkele garantie dat dit bericht virusvrij is, noch aanvaarden wij
enige aansprakelijkheid voor de mogelijke aanwezigheid van een virus in dit
bericht.
 
Op al onze rechtsverhoudingen, aanbiedingen en overeenkomsten waaronder
Atos Origin goederen en/of diensten levert zijn met uitsluiting van alle
andere voorwaarden de Leveringsvoorwaarden van Atos Origin van toepassing.
Deze worden u op aanvraag direct kosteloos toegezonden.
 
This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail
in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the sender
does not warrant that this transmission is virus-free and will not be
liable for any damages resulting from any virus transmitted.
 
On all offers and agreements under which Atos Origin supplies goods and/or
services of whatever nature, the Terms of Delivery from Atos Origin
exclusively apply.
The Terms of Delivery shall be promptly submitted to you on your request.
 
Atos Origin Nederland B.V. / Utrecht
KvK Utrecht 30132762

Re: Does MyFaces 1.2 require JSP 2.1?

by Piotr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sory everyone for spam.
I had to many jars in libs and didn't noticed that...


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@apache.org> wrote:
>
> nice!
>
> that's a cool feature.
>
> -M
>
> On 7/19/07, Jesse Alexander (KSFD 121)
> <alexander.jesse@credit-suisse.com> 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 <matt@raibledesigns.com> 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@raibledesigns.com> 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?

by Matthias Wessendorf-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just committed Bernhard's patch for

https://issues.apache.org/jira/browse/MYFACES-1693

-Matthias

On Jul 19, 2007 6:54 PM, 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
>



--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: Does MyFaces 1.2 require JSP 2.1?

by Francisco Passos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Excellent news!

Thank you Bernhard and Matthias.

Francisco

On Nov 23, 2007 6:17 PM, Matthias Wessendorf <matzew@...> wrote:
I just committed Bernhard's patch for

https://issues.apache.org/jira/browse/MYFACES-1693

-Matthias

On Jul 19, 2007 6:54 PM, 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
>



--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org