users@glassfish.java.net

Re: GFv3 question -- redeploy?

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Tue, 11 Sep 2007 22:31:22 -0400

> I think she is confused... it should work.

Yep, my mistake. :-P I didn't see the redeploy command in the
available list of the asadmin commands,
http://wiki.glassfish.java.net/Wiki.jsp?page=V3AdminCommands
so I assumed it's not implemented yet.

> so it may only work with the exploded directory deployment. Have you
> tried that ?

I tried later today with Bobby with both archive and directory
deployment, seems the value of the --name option was not interpreted
properly for deploy and redeploy commands. But this was with the
technology preview bits (and on windows platform), I will check with the
latest v3 bits to see how it works there once I have hg set up on my box.

Thanks,

- Hong

> On Sep 11, 2007, at 8:46 AM, Bobby Bissett - Javasoft wrote:
>
>> Jerome Dochez wrote:
>>
>>> you should do
>>> asadmin redeploy --path jsphello.war ?
>>
>>
>> I didn't want to list out all my tries, but I can :) Talking with
>> Hong right now, she tells me redeploy isn't implemented yet in v3.
>> The command is there, but not implemented. So that answers my question.
>>
>> Cheers,
>> Bobby
>>
>> ------
>>
>> D:\examples>asadmin deploy --path jsphello\dist\jsphello.war
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar deploy --path jsphello\dist\jsphello.war
>> SUCCESS : Application jsphello deployed successfully
>>
>> D:\examples>asadmin redeploy --name jsphello
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --name jsphello
>> FAILURE : Application D:\examples\jsphello not registered
>>
>> D:\examples>asadmin redeploy --path jsphello
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --path jsphello
>> FAILURE : redeploy command requires the name parameter : No
>> description provided
>>
>> D:\examples>asadmin redeploy --path jsphello\dist\jsphello.war
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --path jsphello\dist\jsphello.war
>> FAILURE : redeploy command requires the name parameter : No
>> description provided
>>
>> D:\examples>asadmin redeploy --path jsphello\dist\jsphello.war --
>> name jsphello
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --path jsphello\dist\jsphello.war --name jsphello
>> FAILURE : Application D:\examples\jsphello not registered
>>
>> D:\examples>asadmin redeploy --name jsphello\dist\jsphello.war --
>> path jsphello
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --name jsphello\dist\jsphello.war --path jsphello
>> FAILURE : Application D:\examples\jsphello\dist\jsphello.war not
>> registered
>>
>> D:\examples>asadmin redeploy --name jsphello\dist\jsphello.war
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --name jsphello\dist\jsphello.war
>> FAILURE : Application D:\examples\jsphello\dist\jsphello.war not
>> registered
>>
>> D:\examples>asadmin redeploy --help
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar redeploy --help
>>
>> null
>>
>> Parameters :
>> name : No description provided
>>
>> D:\examples>asadmin list-applications
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar list-applications
>> SUCCESS : List of deployed applications per container
>> ContractProvider : web_ContractProvider
>> properties=(Connector
>> module=com.sun.enterprise.glassfish:gf-web-connector,Sniffer
>> module=class com.sun.enterprise.v3.web.WebSniffer
>> )
>> Application : jsphello
>> properties=
>> (Source=com.sun.enterprise.deployment.deploy.shared.FileArchive_at_6db724 )
>>
>> D:\examples>asadmin undeploy --name jsphello
>>
>> D:\examples>java -jar D:\glassfish\bin\\..\lib\admin-cli-10.0-
>> SNAPSHOT.jar undeploy --name jsphello
>> SUCCESS : jsphello undeployed successfully
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>