我的日食+ apache tomcat/6.0.30 停止提供文件

发布于 2024-12-18 11:15:05 字数 1365 浏览 3 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黒涩兲箜 2024-12-25 11:15:05
  • 删除服务器,
  • 同时添加新服务器 - 单击“配置运行时环境”
  • 编辑服务器规范:
    • 指向服务器在磁盘上的位置。
    • JRE 指向已安装的 JRE(而不是工作台默认 JRE)。
  • 完成,好,完成。
  • 取消菜单中的勾选:项目 ->自动构建(不应选择此项)
  • 右键单击项目并构建它,然后在服务器上运行。

这应该可以。

  • delete the server,
  • while adding new server - click on "configure runtime environments"
  • edit the server specification:
    • point to the location of the server on the disk.
    • JRE to point to the Installed JRE (not to the Workbench default JRE).
  • Finish, OK, Finish.
  • Untick in menu : Project -> Build Automatically (this should not be selected)
  • Right click on project and build it, then run on server.

This should do.

尽揽少女心 2024-12-25 11:15:05

我尝试了上面列出的很多方法,但没有成功。
最后,它工作了:

- 就我而言,这是关于将项目部署到服务器的旧错误,它不想在重建后消失,只需将其从“问题视图”中删除即可。

- 删除 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文