本地部署到tomcat报错
wsj0051 发布于58月前 1答/3215阅

我想实现的功能:
tomca启动不起来

过程中遇到的问题:

严重: Error starting static Resources

java.lang.IllegalArgumentException: Document base C:\apache-tomcat-7.0.73\webapps\oss 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:5247)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5436)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)

at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

九月 01, 2017 3:37:33 下午 org.apache.catalina.core.ContainerBase addChildInternal

严重: ContainerBase.addChild: start: 

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oss]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)

at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.catalina.LifecycleException: Error in resourceStart()

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5437)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

... 10 more

九月 01, 2017 3:37:33 下午 org.apache.catalina.startup.HostConfig deployDescriptor

严重: Error deploying configuration descriptor C:\apache-tomcat-7.0.73\conf\Catalina\localhost\oss.xml

java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oss]]

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)

at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

我的分析过程如下:

难道说tomcat部署之后要把文件夹名称修改成oss?改了之后仍然报错。。


[沙发] Jieven
C:\apache-tomcat-7.0.73\webapps\oss->ROOT
用tomcat 部署 必须放在ROOT目录
亮点
提交评论
嘿,我来帮你!