Buildwar Fail :(

Hey everybody,

I did the bike-tutorial of Cuba.
I used Eclipse for Development, now I start to learn how to deploy this project.

For this, I use this link:

But when I tip: gradlew buildWar, I get this exception below


Does anybody have an hint for me?

I had run my application of and use the cmd command, when I stop my application and use the command again, my .war files where created successfully. But it was created only succesfully, when I really try about 2-3 times…

I did all the instructions, when I try to open:


I get this problem:

Unexpected error
Please contact system administrator

I just copy the war files into:

C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps

or should it be a specific folder there?
because there are other folders too like app, app-core and so on…

This is the error:

Caused by: org.gradle.api.file.UnableToDeleteFileException: Unable to delete directory: C:\Users\xxxx\Desktop\ersterTest\build\distributions\war
        at org.gradle.api.internal.file.delete.Deleter.handleFailedDelete(
        at org.gradle.api.internal.file.delete.Deleter.doDeleteInternal(
        at org.gradle.api.internal.file.delete.Deleter.delete(
        at org.gradle.api.internal.file.delete.Deleter.delete(
        at org.gradle.api.internal.file.DefaultFileOperations.delete(
        at org.gradle.api.internal.project.DefaultProject.delete(
        at CubaWarBuilding.init(CubaWarBuilding.groovy:298)
        at org.gradle.internal.reflect.JavaMethod.invoke(
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(
        ... 70 more

It seems that you have opened this directory. On windows it will be blocked by Explorer until you close it. Could you try to remove build\distributions\war manually and try again ?