开发者

GlassFish: Deploy w/ --force

When I attempt to deploy a war usig the --force option, it works, but I get this response:

Deprecated syntax, instead use:
asadmin --passwordfile password --host localhost --user admin deploy [options] ...

When using the newer syntax, how do I still specify the --force option? Adding anything other than the .war file after "deploy" results in this message:

Command d开发者_JAVA百科eploy only accepts one operand

Any ideas?


Quick answer: Move the --force after the "deploy" command:

asadmin --passwordfile password --host localhost --user admin deploy --force myapp.war

Here's a step-by-step explanation. First, the asadmin command line format:

asadmin [asadmin options] command [command options].

First, specify the asadmin options:

asadmin --passwordfile password --user admin --host localhost command [command options]

Next, specify the command you are interested in:

asadmin --passwordfile password --user admin --host localhost deploy [command options]

Next, specify command options.

asadmin --passwordfile password --host localhost --user admin deploy --force myapp.war

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜