Sorry to comment outside of jira to this... I had similar issues with jsf-spring in the past and the order of the filters in the web.xml did the trick for me in that particular case.
You might have a similar issue (I do not know the spring internal jsf binding variable resolvers too much since I have been using jsf-spring with good results, which is way better anyway because it allows calling of jsf backend beans from a Spring Context and vice versa) Werner Thomas Timbul (JIRA) wrote: > [ > http://issues.apache.org/jira/browse/MYFACES-665?page=comments#action_12331364 > ] > > Thomas Timbul commented on MYFACES-665: > --------------------------------------- > > Removing Springs variableresolver OR placing spring.jar in the webapp instead > of the container fixes the problem. > I will post this to Spring framework, maybe you can coordinate with them to > fix this? > > >>StartupServletContextListener crashes if all jars placed in webapp >>------------------------------------------------------------------ >> >> Key: MYFACES-665 >> URL: http://issues.apache.org/jira/browse/MYFACES-665 >> Project: MyFaces >> Type: Bug >> Components: Implementation >> Environment: at least resin 3.0.14 (maybe other containers) >> Reporter: Thomas Timbul >> Priority: Critical > > >>This problem seems to be related to >>http://issues.apache.org/jira/browse/MYFACES-630 >>This also happens in the StartupServletContextListener. >>This problem occurs when BOTH jars are placed in the webapp classpath ONLY. >>(myfaces-api is NOT in the container classpath) >>The only working configuration seems to be >>myfaces-api in container classpath. >>myfaces-impl in webapp classpath. >>I previously posted this as an error in the wiki (#631), which of course >>shouldn't be posted here as was pointed out to me, but it seems to be an >>implementation problem(?) >>Alternatively I could suggest that this is a problem with Spring. The spring >>jar happens to be in the container classpath, but I am using spring's >>DelegatingVariableResolver in the application. >>So the issue could result from Spring (in container) to load faces (in >>webapp) ?? I do not know. >>Trace from resin 3.0.14: >>[09:29:29.453] Loading Spring root WebApplicationContext >>[09:29:36.171] java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver >>[09:29:36.171] at java.lang.ClassLoader.defineClass1(Native Method) >>[09:29:36.171] at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>[09:29:36.171] at >>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>[09:29:36.171] at >>java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >>[09:29:36.171] at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >>[09:29:36.171] at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >>[09:29:36.171] at java.security.AccessController.doPrivileged(Native Method) >>[09:29:36.171] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >>[09:29:36.171] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >>[09:29:36.171] at >>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) >>[09:29:36.171] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>[09:29:36.171] at >>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>[09:29:36.171] at java.lang.Class.forName0(Native Method) >>[09:29:36.171] at java.lang.Class.forName(Class.java:242) >>[09:29:36.171] at >>com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1014) >>[09:29:36.171] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>[09:29:36.171] at >>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>[09:29:36.171] at java.lang.Class.forName0(Native Method) >>[09:29:36.171] at java.lang.Class.forName(Class.java:242) >>[09:29:36.171] at >>com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1014) >>[09:29:36.171] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>[09:29:36.171] at >>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>[09:29:36.171] at java.lang.Class.forName0(Native Method) >>[09:29:36.171] at java.lang.Class.forName(Class.java:242) >>[09:29:36.171] at >>com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1014) >>[09:29:36.171] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>[09:29:36.171] at >>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>[09:29:36.171] at java.lang.Class.forName0(Native Method) >>[09:29:36.171] at java.lang.Class.forName(Class.java:242) >>[09:29:36.171] at >>org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:131) >>[09:29:36.171] at >>org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157) >>[09:29:36.171] at >>org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:506) >>[09:29:36.171] at >>org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:446) >>[09:29:36.171] at >>org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:130) >>[09:29:36.171] at >>org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63) >>[09:29:36.171] at >>org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46) >>[09:29:36.171] at >>com.caucho.server.webapp.Application.start(Application.java:1539) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563) >>[09:29:36.171] at >>com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157) >>[09:29:36.171] at >>com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:610) >>[09:29:36.171] at com.caucho.server.host.Host.start(Host.java:385) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563) >>[09:29:36.171] at >>com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157) >>[09:29:36.171] at >>com.caucho.server.host.HostContainer.start(HostContainer.java:468) >>[09:29:36.171] at >>com.caucho.server.resin.ServletServer.start(ServletServer.java:934) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563) >>[09:29:36.171] at >>com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56) >>[09:29:36.171] at >>com.caucho.server.deploy.DeployController.start(DeployController.java:459) >>[09:29:36.171] at >>com.caucho.server.resin.ResinServer.start(ResinServer.java:465) >>[09:29:36.171] at com.caucho.server.resin.Resin.init(Resin.java) >>[09:29:36.171] at com.caucho.server.resin.Resin.main(Resin.java:612) > >
