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:
https://doc.cuba-platform.com/manual-latest/tomcat_war_deployment.html

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

Untitled

Does anybody have an hint for me?

I had run my application of cuba.studio 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:

http://localhost:8080/app/#!

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(Deleter.java:109)
        at org.gradle.api.internal.file.delete.Deleter.doDeleteInternal(Deleter.java:86)
        at org.gradle.api.internal.file.delete.Deleter.delete(Deleter.java:66)
        at org.gradle.api.internal.file.delete.Deleter.delete(Deleter.java:47)
        at org.gradle.api.internal.file.DefaultFileOperations.delete(DefaultFileOperations.java:137)
        at org.gradle.api.internal.project.DefaultProject.delete(DefaultProject.java:790)
        at CubaWarBuilding.init(CubaWarBuilding.groovy:298)
        at CubaWarBuilding.build(CubaWarBuilding.groovy:172)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:632)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:615)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76)
        ... 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 ?