quality@glassfish.java.net

Re: excellent news + 1 bug

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Sat, 10 Oct 2009 16:14:09 -0400

The asadmin deploy --force=true should have worked too. It just has
slightly different syntax than the asadmin redeploy command.

Felipe: can you tell me what was the original deploy command you used to
do the initial deployment?

Thanks,

- Hong

kedar wrote:

> 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.
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>