dev@javaserverfaces.java.net

Re: java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Wed, 27 Aug 2008 08:27:34 -0700

JSF 1.2 requires Servlet 2.5/JSP 2.1 *if* you're using JSP.

If you have to use JSF 1.2 with an older container such as Tomcat, then
you'll need
to use a different view technology such as Facelets [1].

[1] https://facelets.dev.java.net

Oswald Soza wrote:
> Hi, i have a problem with my project.
>
>
> in my machine I'm using tomcat 6 and my web app runs without any
> problem, but one of the servers in which i need to put the project has
> the version of tomcat 5, and the project does not run and in the log
> files, there is a error with the description shown below:
>
> GRAVE: Excepción enviando evento inicializado de contexto a instancia
> de escuchador de clase com.sun.faces.config.ConfigureListener
> java.lang.NoSuchMethodError:
> javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
> at
> org.apache.jasper.runtime.JspApplicationContextImpl.getExpressionFactory(JspApplicationContextImpl.java:80)
> at
> com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1570)
> at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:403)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3637)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4073)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
> 22-ago-2008 10:55:39 org.apache.catalina.core.StandardContext start
> GRAVE: Error listenerStart
>
>
>
> How can i fix this ?, after adding other jar files to the classpath,
> this is the last error i have not been able to solve.
>
>
> Thank you in advance.
>
> ------------------------------------------------------------------------
> Express yourself instantly with MSN Messenger! MSN Messenger
> <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>