If the application does not have any application-ref, then redeploy with force=true failed, saying it
is already deployed.
Here is the CLI command and output:
~/DeployApp/EAR 96) asadmin deploy --target domain i18n-simple.ear
Application deployed with name i18n-simple.
Command deploy executed successfully.
~/DeployApp/EAR 97) asadmin list-applications domain
i18n-simple <ear, web>
Command list-applications executed successfully.
~/DeployApp/EAR 98) asadmin deploy --force=true --target=domain i18n-simple.ear
org.glassfish.api.admin.CommandException: remote failure: Error occurred during deployment:
Application i18n-simple is already deployed in this domain. Please use create-application-ref
command to create application reference on target domain. Please see server.log for more details.
Command deploy failed.