Sounds like it.

I think I had MyFaces (probably 1.0.9) working under Tomcat 4.1.27.
It was just a matter of providing that jsp jar file explicitly as part
of my project.

jsp-2.0.jar, jstl.jar

While it'd be possible to provide patches to get around this, I think
it's probably not worthwhile.

On 4/25/07, Frank Russo <[EMAIL PROTECTED]> wrote:
So, because of this, there is a dependency on JSP 2.0, even though I'm running 
in a 1.2 container (but I won't be using JSP's for this.)



-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 1:31 PM
To: MyFaces Discussion
Subject: Re: Running MyFaces 1.1.3 on Tomcat 4.1.18

I show line 149 as:

    private void feedStandardConfig() throws IOException, SAXException
    {
        InputStream stream =
ClassUtils.getResourceAsStream(STANDARD_FACES_CONFIG_RESOURCE);

I'm not sure what version of ClassUtils is in there as it's in Shared, and 
shared isn't using the same version numbers.

However, the 1.1.5 version of ClassUtils contains an import of

import javax.servlet.jsp.el.ELException;

And that's probably why you need the jar..


    public static Object convertToType(Object value, Class desiredClass)
    {
        if (value == null) return null;

        try
        {
            // Use coersion implemented by JSP EL for consistency with EL
            // expressions. Additionally, it caches some of the coersions.
            return Coercions.coerce(value, desiredClass, COERCION_LOGGER);
        }
        catch (ELException e)


On 4/25/07, Frank Russo <[EMAIL PROTECTED]> wrote:
>
>
> I'm getting the following exception:
>
> 2007-04-25 13:04:04 StandardContext[/HMDA]: Exception sending context
> initialized event to listener instance of class
> org.apache.myfaces.webapp.StartupServletContextListener
> java.lang.NoClassDefFoundError:
> javax/servlet/jsp/el/ELException
>  at
> org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesCo
> nfigurator.java:149)
>  at
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurato
> r.java:126)
>  at
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(Star
> tupServletContextListener.java:66)
>  at
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitial
> ized(StartupServletContextListener.java:49)
>
> All I've done is add the myfaces jars to my web-inf/lib. I have not
> configured anything. My plan is to use facelets, not jsp because of
> the version of the servlet spec supported by Tomcat 4.
>
> Why do I still need to include the jar that contains the ELException
> class (I believe it's jsp-api.jar)?
>
> Thanks...

Reply via email to