One additional note, when the deploy command returns, you will see a
message like this for a successful deployment:
Application deployed successfully with name "xxx".
That name is what you will use to undeploy. You can also use command
"asadmin list-applications" to see a list of application (names) that
are currently deployed/registered with the server.
- Hong
On 11/30/2012 4:59 AM, forums_at_java.net wrote:
> Hello, I think you must specify the application *name* in the undeploy
> command. When you deploy with : asadmin deploy --contextroot aaa
> C:\path\to\coeaccEARe.ear Glassfish tells you the application is deployed
> with name "coeaccEARe" (by default, the ear filename). So you should
> undeploy
> with : asadmin undeploy coeaccEARe If you wish, you can also specify the
> application name at deployment time with option --name : asadmin deploy
> --contextroot aaa *--name myApplication* C:\path\to\coeaccEARe.ear
> Hope this
> helps. Regards,
>
> --
>
> [Message sent by forum member 'mmuller']
>
> View Post: http://forums.java.net/node/892824
>
>