The default selection of Tomcat is installed under the C drive under the C:\Program files, so the WebApp file is also selected under C drive Tomcat when I select the bin under the Tomcat.exe display successfully started open Project site display 404 To WebApp file issued now uncompressed War file selection bin under the Startup.bat open Tomcat display error
[Java]View PlainCopy
- Java.io.IOException:Unable to create the directory [C:\Program files\apache software foundation\tomcat8. 0.1\webapps\truck_sim]
- At Org.apache.catalina.startup.ExpandWar.expand (Expandwar.java: +)
- At Org.apache.catalina.startup.ContextConfig.fixDocBase (Contextconfig.java:619)
- At Org.apache.catalina.startup.ContextConfig.beforeStart (Contextconfig.java:752)
- At Org.apache.catalina.startup.ContextConfig.lifecycleEvent (Contextconfig.java:308)
- At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecyclesupport.java:)
- At Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (Lifecyclebase.java:)
- At Org.apache.catalina.util.LifecycleBase.setStateInternal (Lifecyclebase.java:394)
- At Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:144)
- At Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:725)
- At Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:701)
- At Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:717)
- At Org.apache.catalina.startup.HostConfig.deployWAR (Hostconfig.java:940)
- At Org.apache.catalina.startup.hostconfig$deploywar.run (Hostconfig.java:1816)
- At Java.util.concurrent.executors$runnableadapter.call (Executors.java:511)
- 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)
- 13-feb- :13.926 WARNING [localhost-startstop-1] Org.apache.catalina.core.StandardContext.postWorkDirectory Failed to create work directory [C:\Program Files\apache Software foundation\tomcat8. 0.1\work\catalina\localhost\truck_sim] For context [/truck_sim]
C Disk Not enough permissions can not be unpacked and put to other places or modify permissions to successfully extract and load the project in addition to the Conf folder server.xml Unpackwars= "true" autodeploy= "true" >unpackwars= "True" setting automatically unzip the warFinally, if you still can't automatically unzip the war suffix to zip and then manually unzip it and then start Tomcat. Another follow-up discovery if there are spaces in the war file name, the decompression fails
Tomcat does not automatically unzip the war project file under WebApp problem