Deploy/undeploy an application then deployed the same app with --contextroot temp --name qwerty1. But this deployment failed with the messages:
remote failure: Error occurred during deployment: Exception while deploying the app [qwerty1] : Invalid ejb jar qwerty1: it contains zero ejb. A valid ejb jar requires at least one session/entity/message driven bean.. Please see server.log for more details.
Command deploy failed.
This issue happened only on Windows with two similar apps. I believe that probably previous undeployment case this problem. I've attached one such app.