quality@glassfish.java.net

Re: excellent news + 1 bug

From: kedar <Kedar.Mhaswade_at_Sun.COM>
Date: Sat, 10 Oct 2009 04:22:58 -0700

See: https://glassfish.dev.java.net/issues/show_bug.cgi?id=9393

So, for asadmin to behave, you need to do:
asadmin redeploy --name arena-puj target/arena-puj.ear assuming your
initial deploy did not override the application name using --name.

I know it's rather weird, i.e. the point of 9393.

-Kedar

Felipe Gaścho wrote:
> great news, my old Java EE 5 application is running fast and furious
> on the GFv3b66 ...
>
> I was forced to deploy using the Administration Console on the browser.. :(
>
> but: I was unable to deploy it using the asadmin command.. something
> is broken with the redeploy option:
>
> asadmin --user admin deploy target/arena-puj.ear
>
> * and I tried with --force=true, with --target, etc.. nothing works..
> if it is a bug, I will be happy to submit one, but first I would like
> to hear if it is really a bug...
>
> [exec] Command deploy failed.
> [exec] com.sun.enterprise.admin.cli.CommandException: remote
> failure: Error during deployment : Application arena-puj already
> registered; either specify that redeployment must be forced, or
> redeploy the application. : java.lang.Exception: Application arena-puj
> already registered; either specify that redeployment must be forced,
> or redeploy the application.
>
>
> [exec] Deprecated syntax, instead use:
> [exec] asadmin --user admin deploy [options] ...
> [exec] com.sun.enterprise.admin.cli.CommandException: remote
> failure: Error during deployment : Application arena-puj already
> registered; either specify that redeployment must be forced, or
> redeploy the application. : java.lang.Exception: Application arena-puj
> already registered; either specify that redeployment must be forced,
> or redeploy the application.
>
>
>
>
>