Problem undeploying

3 replies [Last post]
zerazerg
Offline
Joined: 2012-11-30
Points: 0

Hello, fellow programmers. I'm new to this forum and my English isn't brilliant, but I expect that won't be any problem with it :) I had a hard time deploying, but I cannot do the reverse...

I will split the question in several ones, for better mutual understanding:

1)I used the option "--contextroot". Is the undeploy is made in a different way than the normal deploy?

2)For what is used the "register" of glassfish? The error message is "Application not registered".

I also attached the cmd of the crime scene. I'm using windows7 and the glassfish_v3. Tell me if need any more information.

AttachmentSize
CannotUndeploy.png88.99 KB

zerazerg
Offline
Joined: 2012-11-30
Points: 0

Thanks for your help people. Now I can undeploy and thus I could start well the ear file.

mmuller
Offline
Joined: 2005-09-06
Points: 0

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,

hzhang_jn
Offline
Joined: 2005-07-22
Points: 0

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@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
>
>