Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss Tools deploy error: This may be caused by your server's temporary deploy directory being on a different filesystem than the final destination

I have the following error when deploying an application with JBoss Tools in Eclipse:

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.

And here is a screenshot of the error:

JBoss Tools 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 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.

What does The temporary folder must be on the same file system as the final deploy location mean? How can I solve it?

I've realized that the error doesn't occur when the check box Deploy projects as compressed archives is checked.

like image 458
cassiomolin Avatar asked Oct 21 '14 13:10

cassiomolin


3 Answers

I solved this problem following the steps below:

  1. Restarted the computer
  2. Deleted the project files from the folder "standalone\deployments"
  3. Deleted all files in the folder "standalone\tmp"
  4. Clean project in Eclipse
  5. In Eclipse, removed project from Wildfly and then added again
  6. In Eclipse, right click on "Wildfly" and then "Clean..."
  7. In Eclipse, right click on the project module and then "Full publish"
like image 144
Daniel Barral Avatar answered Sep 23 '22 05:09

Daniel Barral


I get this error right after I updated a dependency in my pom.xml and tried to republish.

The thing that worked was to uncheck the setting in the server deployment for "Deploy projects as compressed archives"

enter image description here

like image 27
jeff Avatar answered Sep 26 '22 05:09

jeff


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.

like image 43
hermeslm Avatar answered Sep 26 '22 05:09

hermeslm