RAD 项目构建问题:由于“无法删除”而未构建该项目
我在 Windows XP m/c 上使用 RAD 7.5。每当我尝试清理/构建项目时,我都会收到一条消息,提示
由于“无法删除 'D:\Documents and Settings\User\My Documents\project\exe\EXE”,该项目未构建\WebContent\WEB-INF\classes\BusinessRules.properties'。”。修复问题,然后尝试刷新此项目并构建它,因为它可能不一致
要解决此问题,我需要停止服务器,手动删除此文件并删除它。然后构建&重新启动服务器。知道为什么我会遇到这个问题吗?
I am using RAD 7.5 on a Windows XP m/c. Whenever I try to do a clean up/build the project, I get a message saying
The project was not built due to "Could not delete 'D:\Documents and Settings\User\My Documents\project\exe\EXE\WebContent\WEB-INF\classes\BusinessRules.properties'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent
To overcome this problem, I need to stop the server, manually delete this file & then build & restart the server. Any idea why I am facing this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 RAD 8.0 中遇到过这个问题,但不像你那么一致。第二次构建尝试几乎总能解决我的问题。
尽管 Eclipse bug 跟踪站点上有很多关于此问题的参考资料,但我读过的所有 bug 都没有明确的原因答案。有人猜测这可能是由于文件句柄泄漏造成的。该问题似乎是从 Eclipse 版本 3.6.1 开始出现的。我不确定 RAD 7.5 到底基于哪个 Eclipse 版本,但我相信它是 3.6.1 或更高版本。
该问题是否仅在部署应用程序且服务器正在运行时出现?我想知道在服务器关闭的情况下您是否会得到相同的结果。
不幸的是,我能提供的唯一具体建议是尝试经常刷新项目,也许创建一个新的工作区——这有点像黑客,但创建一个新的工作区解决了我遇到的一些非常奇怪的 RAD 问题。
以下是来自 Eclipse 错误跟踪站点的一些错误报告:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309235
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332607
I've experienced the issue in RAD 8.0, but not nearly as consistently as you. A second build attempt nearly always resolves the problem for me.
Although there are a number of references to this issue on the Eclipse bug tracking site, none of the bugs I've read have a definitive answer on the cause. There is some speculation that it may be due to a file handle leak. The problem appears to have begun around Eclipse version 3.6.1. I'm not sure exactly which Eclipse version RAD 7.5 is based on, but I believe it is 3.6.1 or later.
Does the issue only occur when the application is deployed and the server is running? I was wondering if you'd gotten the same results with the server shut down.
Unfortunately, the only concrete suggestions I can offer are to try refreshing the project frequently, and perhaps creating a new workspace -- its a bit of a hack, but a creating a fresh workspace has fixed a few really odd RAD issues I've encountered.
Here are a couple of the bug reports from the Eclipse bug tracking site:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309235
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332607