当前位置: 代码迷 >> J2EE >> 严重: Context startup failed due to previous errors
  详细解决方案

严重: Context startup failed due to previous errors

热度:958   发布时间:2016-04-22 03:22:42.0
我的tomcat出问题了,详细如下
2008-10-29 10:34:34 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /webdav from URL file:/usr/local/apache-tomcat-5.5.17/webapps/webdav
2008-10-29 10:34:34 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path from URL file:/usr/local/apache-tomcat-5.5.17/webapps/ROOT
2008-10-29 10:34:35 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /jsp-examples from URL file:/usr/local/apache-tomcat-5.5.17/webapps/jsp-examples
2008-10-29 10:34:35 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /balancer from URL file:/usr/local/apache-tomcat-5.5.17/webapps/balancer
2008-10-29 10:34:35 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2008-10-29 10:34:35 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2008-10-29 10:34:35 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /tomcat-docs from URL file:/usr/local/apache-tomcat-5.5.17/webapps/tomcat-docs
2008-10-29 10:34:35 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /servlets-examples from URL file:/usr/local/apache-tomcat-5.5.17/webapps/servlets-examples
java.lang.reflect.InvocationTargetException
  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:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.net.PoolTcpEndpoint.getStrategy()Ljava/lang/String;
  at org.apache.coyote.http11.Http11BaseProtocol.getStrategy(Http11BaseProtocol.java:265)
  at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:56)
  at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
  at org.apache.catalina.core.StandardService.start(StandardService.java:489)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 

------解决方案--------------------
这个是你的配置文件有问题

你去看下你的struts配置文件跟web.xml

估计是那两个地方有问题~
------解决方案--------------------
好像是工程中的错误导致的
------解决方案--------------------
能把代码贴出来看看么
------解决方案--------------------
一般是配置出错了,仔细看看xml
把xml还原看看能不能行了
------解决方案--------------------
配置出错了

------解决方案--------------------
有可能是你的工程还没有编译完成, 你重新编译一边, 另外要注意,如果工程还没有编译完成, 
要耐心一点,等编译完成后在运行程序
------解决方案--------------------
配置问题
------解决方案--------------------
楼主把web.xml中贴出来看下
  相关解决方案