关于Tomcat的问题 用JSTL时会出现3个JAR包,然后项目就成这了
严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclasscom.sun.faces.conf...
严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:221)
at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:82)
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:152)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:279)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1244)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
2011-6-6 23:55:30 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-6-6 23:55:30 org.apache.catalina.core.StandardContext start
严重: Context [/opo] startup failed due to previous errors
2011-6-6 23:55:30 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost' 展开
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at com.sun.faces.config.WebConfiguration.getServletContextName(WebConfiguration.java:221)
at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:82)
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:152)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:279)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1244)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
2011-6-6 23:55:30 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-6-6 23:55:30 org.apache.catalina.core.StandardContext start
严重: Context [/opo] startup failed due to previous errors
2011-6-6 23:55:30 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost' 展开
3个回答
展开全部
网上查看你这个错误的话说
页面的action和serlevt里面的path(即是路径)没对应上,你检查下你页面有没写错什么
这个是在项目发布就报错的么...把你jsp贴上来看看
页面的action和serlevt里面的path(即是路径)没对应上,你检查下你页面有没写错什么
这个是在项目发布就报错的么...把你jsp贴上来看看
追问
项目发布是没问题,主要是只要有这3个JAR包项目就无法启动,删除这3个就没问题,我没有Servlet就用了JSP action 没问题
追答
检查下几个包的版本是不有什么问题阿..还没遇到这种问题..
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
jar名称和配置发上来看看,肯定是空格或者路径的问题
追问
不是那 问题,我把我同学的配置文件复制了一份还不行,没有那3个包 JSTL没办法用,有那个3个包项目就无法启动,真纠结!!!!!!!!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询