在 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.
这是错误的截图:
关于documentation ,我发现了这个:
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 directories and Temporary Deploy Directory fields. 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 archives check box. This avoids exploded deployments and reduces the amount of memory deployments occupy but may result in slower deployment.
The temporary folder must be on the same file system as the final deploy location 是什么意思?我该如何解决?
我已经意识到,当复选框部署项目为压缩文件时,没有发生错误。
最佳答案
我按照以下步骤解决了这个问题:
- 重启电脑
- 已从“standalone\deployments”文件夹中删除项目文件
- 删除文件夹“standalone\tmp”中的所有文件
- 在 Eclipse 中清理项目
- 在 Eclipse 中,从 Wildfly 中删除项目,然后重新添加
- 在 Eclipse 中,右键单击“Wildfly”,然后右键单击“Clean...”
- 在 Eclipse 中,右键单击项目模块,然后选择“完全发布”
关于java - JBoss 工具部署错误 : This may be caused by your server's temporary deploy directory being on a different filesystem than the final destination,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26487574/