大神帮忙看看,tomcat一运行就报错,大半天没找到原因。。 求帮忙!蟹蟹

嗯哼嗯哼蹦叉叉 发布于 2017/09/07 19:09
阅读 671
收藏 0

严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base F:\tts9\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\cloudnote does not exist or is not a readable directory
 at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
 at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5206)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5393)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)

九月 07, 2017 7:00:19 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cloudnote]]
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:192)
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cloudnote]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 ... 6 more
Caused by: org.apache.catalina.LifecycleException: Error in resourceStart()
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5394)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 6 more

九月 07, 2017 7:00:19 下午 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base F:\tts9\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myhtml does not exist or is not a readable directory
 at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
 at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5206)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5393)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)

九月 07, 2017 7:00:19 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myhtml]]
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:192)
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myhtml]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 ... 6 more
Caused by: org.apache.catalina.LifecycleException: Error in resourceStart()
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5394)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 6 more

九月 07, 2017 7:00:19 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:192)
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130)
 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 6 more

九月 07, 2017 7:00:19 下午 org.apache.catalina.startup.Catalina start
严重: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130)
 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 11 more

加载中
0
wier
wier

你是在eclipse里面启动的吧,把项目打个war包,扔到tomcatwebapps里面,启动看下,是否报错,如果报错,说明eclipse容器配置的问题。eclipse server容器删除重新创建添加一下

嗯哼嗯哼蹦叉叉
嗯哼嗯哼蹦叉叉
Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/cloudnote". 这个是什么意思呢?多个上下文一条路劲?
嗯哼嗯哼蹦叉叉
嗯哼嗯哼蹦叉叉
恩,好的,我试试,蟹蟹
0
OSC_ohvLPQ
OSC_ohvLPQ
tomcat启动失败,检查数据库是否连接,检查端口是否占用或关闭,检查项目是否有错误
嗯哼嗯哼蹦叉叉
嗯哼嗯哼蹦叉叉
严重: Exception starting filter login java.lang.ClassCastException: web.LoginFilter cannot be cast to javax.servlet.Filter 嗯呐,目前就剩最后一个啦,百度说的看不大懂,帮忙看下,这个怎么处理
0
依然菜刀
依然菜刀

你用的是Eclipse自带的Tomcat进行项目发布的,估计是发布的项目不同步了,右击那个Tomcat,clean一下吧,有好几个clean,每个都要来一下。

再不行,在Servers视图里面把Tomcat删除掉,重新new一个然后发布就行了

0
JuJu_sh
JuJu_sh
一楼正解
0
嗯哼嗯哼蹦叉叉
嗯哼嗯哼蹦叉叉

已解决,谢谢!! 按照一楼办法解决了一大半,剩下一个路劲引用的报错,百度找了办法已解决,原来是之前弄过一个tomcat,后来重新添加了一个之后,和前面的文件冲突啦。已解决!谢谢

返回顶部
顶部