问题描述
严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenerjava.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1610) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:453) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) 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.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) 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:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)2011-2-22 20:38:34 org.apache.catalina.core.StandardContext start严重: Error listenerStart2011-2-22 20:38:34 org.apache.catalina.core.StandardContext start严重: Context [/news] startup failed due to previous errorsContextListener: attributeAdded('com.sun.faces.config.WebConfiguration', 'com.sun.faces.config.WebConfiguration@17c50b9')2011-2-22 20:38:36 org.apache.catalina.core.ApplicationContext log 问题补充:<div class="quote_title">jiminsc 写道</div><div class="quote_div">参考http://www.iteye.com/problems/8427试试</div><br />我看了这个博客里的解决方法,把包commons-pool.jar 1.3 加了进去,可还是解决不了问题。我刚才又换了个Tomcat试验了一下,还是不行!<br /><br />
解决方案
重新把tomcat下的三个jar包(jasper.jar, jsp-api.jar, servlet-api.jar)导入把你的classpath贴出来看下
解决方案二:
好久没有做过web项目了,都有点忘了!
解决方案三:
你是怎么启动项目的?打war包了吗还是通过eclipse启动?
解决方案四:
新建一个项目重新试一下,如果可以,那就是你里面可能差什么包
解决方案五:
参考http://www.iteye.com/problems/8427试试