Tomcat does not automatically unzip the war project file under WebApp problem

Source: Internet
Author: User
Tags addchild

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
  1. Java.io.IOException:Unable to create the directory [C:\Program files\apache software foundation\tomcat8. 0.1\webapps\truck_sim]
  2. At Org.apache.catalina.startup.ExpandWar.expand (Expandwar.java: +)
  3. At Org.apache.catalina.startup.ContextConfig.fixDocBase (Contextconfig.java:619)
  4. At Org.apache.catalina.startup.ContextConfig.beforeStart (Contextconfig.java:752)
  5. At Org.apache.catalina.startup.ContextConfig.lifecycleEvent (Contextconfig.java:308)
  6. At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecyclesupport.java:)
  7. At Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (Lifecyclebase.java:)
  8. At Org.apache.catalina.util.LifecycleBase.setStateInternal (Lifecyclebase.java:394)
  9. At Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:144)
  10. At Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:725)
  11. At Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:701)
  12. At Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:717)
  13. At Org.apache.catalina.startup.HostConfig.deployWAR (Hostconfig.java:940)
  14. At Org.apache.catalina.startup.hostconfig$deploywar.run (Hostconfig.java:1816)
  15. At Java.util.concurrent.executors$runnableadapter.call (Executors.java:511)
  16. At Java.util.concurrent.FutureTask.run (Futuretask.java:266)
  17. At Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1142)
  18. At Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:617)
  19. At Java.lang.Thread.run (Thread.java:745)
  20. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.