您的位置:首页 > 运维架构 > Apache

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start com

2016-03-21 12:00 645 查看
一、问题

MyEclipse运行出错:

控制台显示:java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PartTime]] 后面还有一大串错误提示。

或者弹出对话框:Server MyEclipse Tomcat v7.0 was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.

二、解决 (建议浏览完之后再进行修改吧。)

开始我找到的方法各有不同。

方法1————我已经导入

(1)需要添加 commons-logging-1.1.1.jar 包到 WebRoot/WEB-INF/lib 文件夹下面

(2)右击jar包--> build path 即可

方法2————试了试,没用

(1)首先启动MyEclipse Derby

(2)然后再启动MyEclipse Tomcat v7.0

方法3————试了试,没用

(1)双击MyEclipse Tomcat v7.0——>修改右上角TimeOuts中的start 的数值改大一点

(2)还是不行的话,就clean一下(就是将工程中.class文件全部删除,然后重新编译)

方法4————我天,总起作用了。

(1)找到servlet中的注解:@WebServlet(name="user",urlPatterns="user/UserServlet")

(2)少了一个斜杠urlPatterns=" / user/UserServlet"。

我的错误最终解决方案————方法4。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: