严重: Exception sending context initialized event to listener instance of
class
com.sun.faces.config.ConfigureListener
java.lang.LinkageError: loader constraint violation: when resolving interface method " javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; " the class loader (instance of org / apache / catalina / loader / WebappClassLoader) of the current class , com / sun / faces / config / ConfigureListener, 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 / ExpressionFactory used in the signature
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java: 1892 )
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java: 546 )
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 3830 )
at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4337 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1045 )
at org.apache.catalina.core.StandardHost.start(StandardHost.java: 719 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1045 )
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 443 )
at org.apache.catalina.core.StandardService.start(StandardService.java: 516 )
at org.apache.catalina.core.StandardServer.start(StandardServer.java: 710 )
at org.apache.catalina.startup.Catalina.start(Catalina.java: 566 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 597 )
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 288 )
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 413 )
2008 - 3 - 19 10 : 05 : 17 com.sun.faces.config.ConfigureListener contextInitialized
java.lang.LinkageError: loader constraint violation: when resolving interface method " javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; " the class loader (instance of org / apache / catalina / loader / WebappClassLoader) of the current class , com / sun / faces / config / ConfigureListener, 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 / ExpressionFactory used in the signature
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java: 1892 )
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java: 546 )
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 3830 )
at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4337 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1045 )
at org.apache.catalina.core.StandardHost.start(StandardHost.java: 719 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1045 )
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 443 )
at org.apache.catalina.core.StandardService.start(StandardService.java: 516 )
at org.apache.catalina.core.StandardServer.start(StandardServer.java: 710 )
at org.apache.catalina.startup.Catalina.start(Catalina.java: 566 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 597 )
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 288 )
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 413 )
2008 - 3 - 19 10 : 05 : 17 com.sun.faces.config.ConfigureListener contextInitialized
运行环境:Tomcat6.0.14+JDK6.0
解决方法:移除lib中的el-api.jar,tomcat6默认支持el api, 移除xerces.jar
注:若删除以上jar包仍出现该问题,请检查tomcat发布目录,使用WTP的话发布目录在“工作空间/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/”