eclipse JBoss Tools 部署错误:这可能是由于您服务器的临时部署目录与最终目的地位于不同的文件系统上
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26487574/
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
JBoss Tools deploy error: This may be caused by your server's temporary deploy directory being on a different filesystem than the final destination
提问by cassiomolin
I have the following error when deploying an application with JBoss Tools in Eclipse:
在 Eclipse 中使用 JBoss 工具部署应用程序时出现以下错误:
Error renaming C:\wildfly-8.1.0.Final\standalone\tmp\tmp7858611943756287857.xhtml to C:\wildfly-8.1.0.Final\standalone\deployments\.war\403.xhtml.
This may be caused by your server's temporary deploy directory being on a different filesystem than the final destination.
You may adjust these settings in the server editor.
将 C:\wildfly-8.1.0.Final\standalone\tmp\tmp7858611943756287857.xhtml 重命名为 C:\wildfly-8.1.0.Final\standalone\deployments\.war\403.xhtml 时出错。
这可能是由于您的服务器的临时部署目录与最终目标所在的文件系统不同。
您可以在服务器编辑器中调整这些设置。
And here is a screenshot of the error:
这是错误的屏幕截图:


On the documentation, I found this:
在文档上,我发现了这一点:
You can customize the deployment location and packaging type:
- To select the workspace deployment folder for the server, click Use workspace metadata.
- To select the deployment folder of the application server, click Use the JBoss deploy folder.
- To select a folder of your choice, click Use a custom deploy folder. With this option, complete the Deploy directoriesand Temporary Deploy Directoryfields. The temporary folder must be on the same file system as the final deploy location otherwise publishing often fails.
- For all modules to be archived for deployment, select the Deploy projects as compressed archivescheck box. This avoids exploded deployments and reduces the amount of memory deployments occupy but may result in slower deployment.
您可以自定义部署位置和打包类型:
- 要为服务器选择工作区部署文件夹,请单击使用工作区元数据。
- 要选择应用程序服务器的部署文件夹,请单击使用 JBoss 部署文件夹。
- 要选择您选择的文件夹,请单击使用自定义部署文件夹。使用此选项,完成部署目录和临时部署目录字段。临时文件夹必须与最终部署位置位于同一文件系统上,否则发布经常会失败。
- 对于要存档以进行部署的所有模块,请选中将项目部署为压缩存档复选框。这避免了爆炸式部署并减少了部署占用的内存量,但可能会导致部署速度变慢。
What does The temporary folder must be on the same file system as the final deploy locationmean? How can I solve it?
什么是临时文件夹必须是相同的文件系统作为最终部署位置上是什么意思?我该如何解决?
I've realized that the error doesn't occur when the check box Deploy projects as compressedarchives is checked.
I've realized that the error doesn't occur when the check box Deploy projects as compressedarchives is checked.
回答by Daniel
I solved this problem following the steps below:
我按照以下步骤解决了这个问题:
- Restarted the computer
- Deleted the project files from the folder "standalone\deployments"
- Deleted all files in the folder "standalone\tmp"
- Clean project in Eclipse
- In Eclipse, removed project from Wildfly and then added again
- In Eclipse, right click on "Wildfly" and then "Clean..."
- In Eclipse, right click on the project module and then "Full publish"
- 重新启动了计算机
- 从文件夹“standalone\deployments”中删除了项目文件
- 删除文件夹“standalone\tmp”中的所有文件
- 在 Eclipse 中清理项目
- 在 Eclipse 中,从 Wildfly 中删除项目,然后再次添加
- 在 Eclipse 中,右键单击“Wildfly”,然后单击“Clean...”
- 在 Eclipse 中,右键单击项目模块,然后“完全发布”
回答by jeff
回答by hermeslm
I had the same problem and the only solution after hours looking for in google, I solved closing eclipse, deleting the folder ".metadata" of the workspace restarting eclipse and creating the server of JBoss AS 6.x again and deploying again and everything worked for me correctly. I hope this help.
我遇到了同样的问题,也是在谷歌寻找数小时后唯一的解决方案,我解决了关闭 eclipse,删除工作区的文件夹“.metadata”重新启动 eclipse 并再次创建 JBoss AS 6.x 的服务器并再次部署,一切正常对我来说是正确的。我希望这有帮助。
回答by Boles?aw Denk
The hermeslm solution fixes most (if not all) problems with workspace, but it is final and robust weapon of choice. Be advised that if you have highly configured eclipse (custom code assist, formatting definitions, plugins config, UI look) you'll lose it all. You'll have to import all projects and configure it all over again.
hermeslm 解决方案修复了工作区的大多数(如果不是全部)问题,但它是最终的、强大的选择武器。请注意,如果您有高度配置的 eclipse(自定义代码辅助、格式定义、插件配置、UI 外观),您将失去所有。您必须导入所有项目并重新配置它。
I had the same problem but from time to time I do full workspace file-system backup and restore from it when such crap happens.
我遇到了同样的问题,但有时我会进行完整的工作区文件系统备份,并在发生此类问题时从中恢复。
From what I have observed on backup restore so far, this particular problem may be in configuration jboss server in eclipse and files/plugins related to it. In other words if you don't have backups, try deleting and rebuilding your servers definition in eclipsebefore you'll delete .metadata dir.
从我到目前为止对备份恢复的观察来看,这个特殊的问题可能出在 eclipse 中的配置 jboss 服务器和与之相关的文件/插件中。换句话说,如果您没有备份,请在删除 .metadata 目录之前尝试在 eclipse 中删除并重建您的服务器定义。
回答by mari
If you go to file --> C:\Users\yourusername\wildfly-10.0.0.CR4\standalone\deployments and delete your projectname.war file, server should be able to restart.
如果您转到文件 --> C:\Users\yourusername\wildfly-10.0.0.CR4\standalone\deployments 并删除您的 projectname.war 文件,服务器应该能够重新启动。
回答by Юрий K
I've had the same problem. Files of the .metadataand .recommendersworkspace folders were corrupted. I took those folders from a colleague and replaced mine. It worked!
我遇到了同样的问题。该文件的.metadata和.recommenders工作区文件夹被损坏。我从一位同事那里拿走了这些文件夹并替换了我的。有效!
回答by tk_
I had the same problem several times in my windows 10 machine. Since I did not have admin rights it was a hectic process to troubleshoot this issue. Simple fix would be moving JBOSS_HOME closer to root. However, you need to do a proper restart of your eclipse. I rather recommend a complete restart of your computer because after all you are going to change JBOSS_HOME in windows environmental variables.
我在 Windows 10 机器上多次遇到同样的问题。由于我没有管理员权限,因此解决此问题是一个忙碌的过程。简单的解决方法是将 JBOSS_HOME 移近根目录。但是,您需要正确重启您的日食。我宁愿建议您完全重新启动计算机,因为毕竟您将要更改 Windows 环境变量中的 JBOSS_HOME。
回答by hephestos
rather old...but still takes place in NEON version of eclipse and Wildfly. and the problem is that Eclipse didn't stop normally the webserver. (Something very usual for Tomcat at least I do most of the work) Solution: I opened the "Debug" presentation. I killed the process. ( and cleaned-cleared the Server - just in case).
相当旧......但仍然发生在 Eclipse 和 Wildfly 的 NEON 版本中。问题是 Eclipse 没有正常停止网络服务器。(对于 Tomcat 来说,这很常见,至少我做了大部分工作) 解决方案:我打开了“调试”演示文稿。我杀了这个过程。(并清理清除服务器 - 以防万一)。
回答by Chandan
I was getting the same error message, turns out it was because something went wrong in the deployments folder of JBoss, it wasn't even allowing me to delete my project ear folder from deployments.
我收到了同样的错误消息,原来是因为 JBoss 的部署文件夹出现问题,它甚至不允许我从部署中删除我的项目 ear 文件夹。
My solution was, unzipped another instance of JBoss and pointed my Eclipse to this JBoss and then it worked fine.
我的解决方案是,解压缩另一个 JBoss 实例并将我的 Eclipse 指向这个 JBoss,然后它工作正常。

