Java Tomcat7服务器错误,目录中不存在文件或目录不可读
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19021637/
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
Tomcat7 server error, file not exist in directory or not a readable directory
提问by Himanshu Gupta
When I run the spring project in eclipse using TOMCAT 7.0.42 I get the HTTP 404 error. In the console one of the error is
当我使用 TOMCAT 7.0.42 在 Eclipse 中运行 spring 项目时,出现 HTTP 404 错误。在控制台中,错误之一是
workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\abcdLogin does not exist or is not a readable directory
when I was starting the server, the server start up get failed so I deleted the tmp0 tmp1 tmp2 folder from the above mentioned directory. I read somewhere that if the server doesn't start delete the folder from the directory. Now the server start ups but on console it is showing this error. How can I resolve this error?
当我启动服务器时,服务器启动失败,所以我从上述目录中删除了 tmp0 tmp1 tmp2 文件夹。我在某处读到,如果服务器没有启动,请从目录中删除该文件夹。现在服务器启动,但在控制台上显示此错误。我该如何解决这个错误?
回答by commit
Try this steps, it may be help you
试试这个步骤,可能对你有帮助
- Clean tomcat work directory
- Clean the server
- Build project again on server
- 清理tomcat工作目录
- 清理服务器
- 在服务器上再次构建项目
回答by agad
Finally I resolved the problem:
最后我解决了这个问题:
- go to Servers view (Window --> show View --> Other --> Server --> Servers)
- Right click on TOMCAT 7 Server
- Select
Clean ...
from context menu
- 转到服务器视图(窗口 --> 显示视图 --> 其他 --> 服务器 --> 服务器)
- 右键单击 TOMCAT 7 服务器
- 选择
Clean ...
从上下文菜单
回答by user3822523
This is simple:
这很简单:
- Delete the existing server
- Create a new server
- Delete the .snap file. Click to delete .snap file
- 删除现有服务器
- 创建一个新服务器
- 删除 .snap 文件。单击以删除 .snap 文件
Reference: Tomcat7 server error, file not exist in directory or not a readable directory
回答by Kapeel45
In case of Gradle,
在 Gradle 的情况下,
I searched it everywhere for the gradle project but could not find solution till i keenly observed the gradle file. In gradle file the above line was missing,
我到处搜索 gradle 项目,但直到我敏锐地观察到 gradle 文件才找到解决方案。在 gradle 文件中缺少上述行,
apply plugin: 'eclipse-wtp'
应用插件:'eclipse-wtp'
回答by Aditya Tomar
Try to remove that server from Eclipse and create a new server in Eclipse. Then add your projects in to the new server, start the server from Eclipse.
尝试从 Eclipse 中删除该服务器并在 Eclipse 中创建一个新服务器。然后将您的项目添加到新服务器中,从 Eclipse 启动服务器。