java Tomcat 7 无法创建工作目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10872473/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat 7 Failed to create work directory
提问by intA
I am trying to deploy a WAR generated with Eclipse in my Tomcat 7 webapps directory. There are several Exceptions like this:
我正在尝试在我的 Tomcat 7 webapps 目录中部署使用 Eclipse 生成的 WAR。有几个这样的例外:
Warnung: Failed to create work directory [C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\work\Catalina\localhost\QAServlet] for context [/QAServlet]
警告:无法为上下文 [/QAServlet] 创建工作目录 [C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\work\Catalina\localhost\QAServlet]
When I start the tomcat in Eclipse, it works fine.
当我在 Eclipse 中启动 tomcat 时,它工作正常。
Can someone help?
有人可以帮忙吗?
回答by yatul
It's because Program files
is protected system folder. The easiest solution is install tomcat in some unsecured folder (E.g. C:\tomcat
).
这是因为Program files
受保护的系统文件夹。最简单的解决方案是在一些不安全的文件夹(例如C:\tomcat
)中安装 tomcat 。
回答by franco_valente
May be your war doesn't contain the MANIFEST file. From Eclipse, be sure to check the option that the manifest is present in the war.
可能是您的War不包含清单文件。在 Eclipse 中,一定要检查清单是否存在于War中的选项。