Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROOT\WEB-INF\classes\com] could not be completely deleted. #36

Closed
cfmDeveloper opened this issue Aug 24, 2017 · 4 comments
Closed

ROOT\WEB-INF\classes\com] could not be completely deleted. #36

cfmDeveloper opened this issue Aug 24, 2017 · 4 comments
Assignees

Comments

@cfmDeveloper
Copy link

Plugin name and version

azure-webapp-maven-plugin 1.0.3

Plugin configuration in your pom.xml

FTP -> azure webapp

Expected behavior

Undeploy the existing ROOT dir on server
Deploy WAR file
Be happy

Actual behavior

Server is not completing undeploy of ROOT due to locked class files:
D:\home\site\wwwroot\webapps\ROOT] could not be completely deleted. The presence of the remaining files may cause problems

Steps to reproduce the problem

This does not happen every time the project is deployed. Generally, rebuilding the project will get it to deploy correctly and complete the undeploy of ROOT from server before deploying the new ROOT.war

@xscript
Copy link
Contributor

xscript commented Aug 25, 2017

@cfmDeveloper I tried to reproduce from my side, but unfortunately couldn't. I will give another try.
Two questions to confirm:

  • The WAR file is successfully uploaded to web app via FTP, right?
  • by rebuilding the project, do you mean repackage the Maven project? Or something else?

@cfmDeveloper
Copy link
Author

the problem lies in the webapp deploying the war file after it is uploaded. is there a method to send out a stop call before pushing the war file? Because the webapp isn't stopping it occasionally will have a few class files locked during "undeployment" if Tomcat isn't shutdown first.

@xscript
Copy link
Contributor

xscript commented Aug 27, 2017

@cfmDeveloper Thanks for the follow-up explanation! That's what I suspected. Right now in web app Maven plugin, it is not supported to stop the target web app before deployment. I've added #37 to add this functionality. Feel free to comment under #37 if you have any suggestions.
Thanks very much!

@xscript
Copy link
Contributor

xscript commented Oct 16, 2017

@cfmDeveloper Now you can use configuration element <stopAppDuringDeployment> like here with latest version 0.1.5. Thanks!

@xscript xscript closed this as completed Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants