Build 39. Windows machines.
Installed a glassfish on one machine, created a cluster with two instances. Executed such commands:
1) asadmin deploy --name temp:1 --contextroot helloworld --target c1 C:/hudson/workspace/deployment/appserver-sqe/pe/deployment_v3/version/stateless-simple.ear
Application deployed with name temp:1.
Command deploy executed successfully.
2) asadmin undeploy --target c1 temp:*
Command undeploy executed successfully.
3) asadmin deploy --name temp:1 --contextroot helloworld --target c1 C:/hudson/workspace/deployment/appserver-sqe/pe/deployment_v3/version/webapps-caching.war
remote failure: Error occurred during deployment: Exception while deploying the app [temp:1] : Application [temp:1] contains no valid components. Please see server.log for more details.
Command deploy failed.
remote failure: Application temp has no version registered
If to deploy/undeploy webapps-caching first and stateless-simple after that, everything will be OK.
This is a regression bug. I did not see this issue before. I saw this issue only on Windows machines.
To reproduce the issue can be executed a hudson job: