使用RAD清理工作空间环境的方法(基于Eclipse)

发布于 2024-07-08 17:37:51 字数 178 浏览 10 评论 0原文

启动 RAD7 时出现很多错误。 服务器不响应类更改。 有时服务器无法启动。 有时 RAD 不会确认我添加到服务器的模块。 这是一种越野车。

我知道工作区中有元数据,是否有安全的方法来清理元数据或 RAD?

其中 RAD = Rational Application Developer

I am getting a lot of errors when starting RAD7. The server doesn't respond to class changes. Sometimes the server won't start. Sometimes RAD will not acknowledge modules that I added to the server. It is kind of buggy.

I know there is metadata in the workspace, are there safe ways to clean the metadata or RAD in general?

Where RAD = Rational Application Developer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

云朵有点甜 2024-07-15 17:37:51

另一个技巧是删除 Eclipse 中“服务器”视图中的所有项目,停止服务器,启动服务器,打开服务器的管理控制台,然后查看所有内容都已消失。 如果您仍然看到已配置的应用程序,请在管理控制台中将其删除。 关闭服务器,重新启动并检查是否干净启动。 这可确保您的 Eclipse 服务器插件和服务器同步。 现在您可以再次将您的项目添加到服务器; 也许这会提高稳定性。

如果没有,更彻底的措施是删除 Eclipse 中的服务器配置(不要删除服务器本身),然后在“服务器”视图中再次添加它。

您也可以尝试禁用自动发布。 您可以转到“首选项”->“服务器”并取消选中“自动发布...”。如果您使用的是 WAS,您还可以在“服务器”视图中双击您的服务器,然后转到“自动发布”部分并选中“永远不要自动发布”。 这可能会让您更好地控制何时将内容发布到您的服务器,尽管它有时有自己的想法并在某些情况下自动发布。

Another tip is to remove all projects in your Servers view in Eclipse, stop your server, start your server, open the admin console of your server and see that everything is gone in there as well. If you still see configured apps, remove them in the admin console. Shutdown server, start again and check for a clean startup. This ensures that your Eclipse server plugin and the server are in sync. Now you can add your projects to the server again; maybe this will improve the stability.

If not, a more drastic measure is to remove your server config in Eclipse (don't remove the server itself) and add it again in the Servers view.

You can also try to disable automatic publishing. You can go to Preferences->Server and uncheck the "Automatically publish..." If you are using WAS you additionally can double-click on your server in the Servers view, and go to the "Automatic Publishing" section and check "Never publish automatically". This might give you more control over when stuff gets published to your server, although it sometimes has a mind of its own and keeps publishing automatically in some cases.

樱娆 2024-07-15 17:37:51

eljenso 已经发布了一半的答案。 对于未获取资源的服务器,请验证您是否正在发布。 右键单击服务器并点击发布(我个人关闭自动发布)管理控制台/卸载ear/然后重新添加ear是另一种方法,但是在RAD中我从来不需要这样做。 在 WID 中,您需要执行此操作,因为发布在这个被上帝遗弃的工具中被彻底破坏。

RAD 修复:
您尚未触及的难题的另一半是确保您的项目工作区都是最新的。 有时你会流血(构建错误),即使你知道它没什么意义。 发生这种情况时,关闭所有项目,可选步骤:关闭 rad 并重新打开 rad,重新打开项目,刷新所有项目,然后进行另一次构建/清理。

ClearCase 修复:
如果你碰巧使用的是clearcase,当事情无缘无故流血时,你真的会陷入受伤的世界。 在执行上面列出的操作之前,您需要执行更新、恢复(是的,我知道更新应该执行恢复的操作以及更多操作 - 但它不会,因为它使用缓存数据进行操作,因此它只更新它认为需要更新的内容,不幸的是缓存算法有缺陷),然后刷新。 这将保证所有文件都已正确推送到您的文件系统,现在您需要执行上述步骤以使 RAD 拾取刚刚推送到文件系统的[可能是新的]文件更改。

如果您正在处理一个大型项目并且拥有 RAD + Clearcase,请坐下来放松一下,需要一段时间才能完成恢复。 最好尝试更新、刷新 + RAD 修复,然后看看是否可以先解决问题。 恢复应该是您在大型项目中的最后努力。 (如果你有一个小项目,每次都做所有事情)。

eljenso has posted a good half of the answer. For the server not picking up resources, verify you are publishing. Right click the server and hit publish (I personally leave auto-pub off) The admin console / uninstall ear / then re-adding the ear is another way to go, however in RAD I've never needed to do this. In WID you need to do this as the publish is hopelessly broken in that God-forsaken tool.

RAD fixes:
Another half of the puzzle that you haven't touched on is making sure your project workspace is all up to date. Sometimes you will get bleeding (build errors) even though you know it's crabbing about nothing. When this occurs, close all the projects, optional step: shut down rad and re-open rad, re-open projects, refresh all projects, then do another build/clean.

ClearCase fixes:
If you happen to be using clearcase you're really in a world of hurt when things bleed for no reason. Before you do what I listed above, you'll need to do an update, restore (yes I'm aware update is supposed to do what a restore does and more - but it doesn't because it operates off of cached data, so it only updates what it thinks it needs to update. Unfortunately the caching algorithm is flawed), then refresh. This will guarantee all the files have been pushed to your file system properly, now you need to do the aforementioned step to make RAD pick up the [possibly new] file changes that just got pushed to your file system.

If you're working with a large project and you have RAD + clearcase, sit back and relax, it's going to be a while to let that restore finish. It's best to try just update, refresh + RAD fixes and see if that fixes the problem first. Restore should be your last ditch effort on a large project. (If you have a small project just do everything every time).

給妳壹絲溫柔 2024-07-15 17:37:51

Eclipse 在启动时可以采用 -clean 参数。 也许这就是您正在寻找的?

Eclipse can take a -clean parameter on startup. Perhaps this is what you are looking for?

冷弦 2024-07-15 17:37:51

如果您确实需要擦除所有工作区元数据,删除工作区中的 .metadata 目录应该可以解决问题。 请注意,这会清除设置、工作区布局,甚至哪些项目可用(您将需要重新导入所有旧项目,尽管它们仍然位于工作区目录中)。

If you really need to wipe all of the workspace meta, deleting the .metadata directory within the workspace should do the trick. Note that this wipes out settings, workspace layout, and even which projects are available (you will need to re-import all of your old projects, despite the fact that they are still in the workspace dir).

醉南桥 2024-07-15 17:37:51

如果您需要清除元数据设置,请先尝试删除 .metadata/.plugins/org.eclipse.core.resources! 这给我省了不少麻烦...

If you need to purge your metadata settings, try just deleting .metadata/.plugins/org.eclipse.core.resources first! That saved me quite a bit of trouble...

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