我的日食+ apache tomcat/6.0.30 停止提供文件
我在 eclipse 中使用内置的 tomcat 服务器进行调试,但由于某种原因它停止工作。
我不知道如何开始调试这个。
apache正在运行(当我转到我的服务器地址(在本地主机上)端口8080时,我收到一个明显来自apachee服务器的错误(它是404)。
但它的行为就像我没有编译任何东西一样......
关于我应该如何逐步调试这种情况的任何想法
我想这是因为
? C:\Users\myuser\Workspaces\projectName\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\projectName
是空的。
但是C:\Users \myuser\Workspaces\projectName\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
似乎包含我的编译版本 ,
当我右键单击服务器窗格上的服务器图标并转到属性 - 常规时 有一个“位置”值和一个更改位置按钮。 单击按钮可在 [工作空间元数据]
和 “/Servers/Tomcat v6.0 Server at localhost.server”
之间来回切换 - 这两个是什么意思?适合我吗?
当我选择构建全部时(清除“自动构建”后,控制台上没有显示任何内容。
我刚刚注意到的另一件事是,在启动服务器时,我收到以下警告: 警告:[SetPropertiesRule]{Server/Service/Engine/Host/Context} 将属性“source”设置为“org.eclipse.jst.jee.server:projectName”未找到匹配的属性。
更新: 从服务器中删除项目后(右键单击服务器窗格中的项目), 它又开始工作了。
但一两次构建后我收到以下消息:发布失败,出现多个错误 无法删除 C:/Users/epeleg/Workspaces/projectName/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/projectName/WEB-INF/lib。可能被另一个进程锁定。 无法删除 C:/Users/epeleg/Workspaces/projectName/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/projectName/WEB-INF。可能被另一个进程锁定。
并且它会在任何请求时返回到 404 的相同情况。 删除并重新添加项目再次成功,但我想知道为什么会发生这种情况。
I am using the built in tomcat server in eclipse for my debugging and for some reason it stopped working.
I don't know how to start debugging this.
The apache is running (when I go to my servers address (on local host) port 8080 I get an error that is clearly from the apachie server (its a 404).
but it just behaves as if I did not compile anything ...
any ideas on what I should to to step by step debug this situation?
I guess this is because
C:\Users\myuser\Workspaces\projectName\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\projectName
is empty.
however C:\Users\myuser\Workspaces\projectName\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
does seem to hold a complied version of my web app.
when I right click the server icon on the servers pane and go to properties - general,
there is a "location" value and a change location button.
clicking the button switches the location back and forth between [workspace metadata]
and "/Servers/Tomcat v6.0 Server at localhost.server"
- what doesthose two mean and which is the right one for me?
when I choose build all (after clearing "build automatically" nothing shows up on the console.
another thing I just noticed is that when starting the server I get the following warning:WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:projectName' did not find a matching property.
UPDATE:
after removing the project from the server (right click on project in the servers pane),
it started working again.
but one or two builds after it I got the following message:Publishing failed with multiple errors
Could not delete C:/Users/epeleg/Workspaces/projectName/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/projectName/WEB-INF/lib. May be locked by another process.
Could not delete C:/Users/epeleg/Workspaces/projectName/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/projectName/WEB-INF. May be locked by another process.
and it went back into the same situation with 404's on any request.
remove and re-add of the project did the trick again but I wander why could this be happening.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这应该可以。
This should do.
我尝试了上面列出的很多方法,但没有成功。
最后,它工作了:
- 就我而言,这是关于将项目部署到服务器的旧错误,它不想在重建后消失,只需将其从“问题视图”中删除即可。
- 删除 Eclipse 项目中目标文件夹的内容
-让处理所有“重建步骤”作为清理和刷新,重建 Eclipse 项目,从服务器视图中的 Tomcat 中删除项目并再次添加,右键单击并发布它。
I tried a lot of things listed above, but without success.
Finally, it worked after:
- In my case it was old error regarding deploying project to server, which didn't want to disappear after rebuilding, just remove it from "problem view".
- remove content of target folder in you eclipse project
-lets process all "rebuild steps" as cleaning and refresh, rebuild eclipse project, remove your project from Tomcat in Server view and add it again, right click and publish it.