jboss-cli.bat with Thunder: Duplicate argument '--command'/'--commands'.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

jboss-cli.bat with Thunder: Duplicate argument '--command'/'--commands'.

Panzer, Robert

Hi,

 

just tried the final version and wanted to execute a cli script using jboss-cli.bat.

But jboss-cli.bat my.cli fails with:

Duplicate argument '--command'/'--commands'.

 

Is there anyone else having the same problem?

 

The effective Java call in jboss-cli.bat is

"c:\Program Files\Java\jdk1.6.0_29\bin\java" -Dprogram.name=jboss-cli.bat      -jar "e:\git\jboss-as\build\target\jboss-as-7.1.0.Final\jboss-modules.jar"     -mp "e:\git\jboss-as\build

\target\jboss-as-7.1.0.Final\modules"      org.jboss.as.cli      -c --file deployDataSource.cli

Duplicate argument '--command'/'--commands'.type

 

My cli file currently contains only:

/subsystem=datasources/xa-data-source="MY_XA_DATASOURCE":disable       

 

This worked in any case with commit ID 945edc.

 

Kind regards,

Robert

WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193

Diese E-Mail enthält vertrauliche Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli.bat with Thunder: Duplicate argument '--command'/'--commands'.

Alexey Loubyansky
It doesn't work for me even for that commit (on linux though). There
should be '=' sign after file, i.e.

--file=file_name

Let me know if that doesn't work.

Thanks,
Alexey

On 02/16/2012 11:27 AM, Panzer, Robert wrote:

> Hi,
>
> just tried the final version and wanted to execute a cli script using
> jboss-cli.bat.
>
> But jboss-cli.bat my.cli fails with:
>
> Duplicate argument '--command'/'--commands'.
>
> Is there anyone else having the same problem?
>
> The effective Java call in jboss-cli.bat is
>
> "c:\Program Files\Java\jdk1.6.0_29\bin\java"
> -Dprogram.name=jboss-cli.bat -jar
> "e:\git\jboss-as\build\target\jboss-as-7.1.0.Final\jboss-modules.jar"
> -mp "e:\git\jboss-as\build
>
> \target\jboss-as-7.1.0.Final\modules" org.jboss.as.cli -c --file
> deployDataSource.cli
>
> Duplicate argument '--command'/'--commands'.type
>
> My cli file currently contains only:
>
> /subsystem=datasources/xa-data-source="MY_XA_DATASOURCE":disable
>
> This worked in any case with commit ID 945edc.
>
> Kind regards,
>
> Robert
>
>     *WINCOR NIXDORF International GmbH*
>     Sitz der Gesellschaft: Paderborn
>     Registergericht Paderborn HRB 3507
>     Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach,
>     Dr. Jürgen Wunram
>     Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
>     Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 -
>     WEEE-Reg.-Nr. DE44477193
>
>     Diese E-Mail enthält vertrauliche Informationen.
>     Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>     irrtümlich erhalten haben,
>     informieren Sie bitte sofort den Absender und vernichten Sie diese
>     E-Mail.
>     Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail
>     ist nicht gestattet.
>
>     This e-mail may contain confidential information.
>     If you are not the intended recipient (or have received this e-mail
>     in error)
>     please notify the sender immediately and destroy this e-mail.
>     Any unauthorised copying, disclosure or distribution of the material
>     in this e-mail is strictly forbidden.
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli.bat with Thunder: Duplicate argument '--command'/'--commands'.

Alexey Loubyansky
The error message is bizarre, though... Will look into it.

Alexey

On 02/16/2012 06:08 PM, Alexey Loubyansky wrote:

> It doesn't work for me even for that commit (on linux though). There
> should be '=' sign after file, i.e.
>
> --file=file_name
>
> Let me know if that doesn't work.
>
> Thanks,
> Alexey
>
> On 02/16/2012 11:27 AM, Panzer, Robert wrote:
>> Hi,
>>
>> just tried the final version and wanted to execute a cli script using
>> jboss-cli.bat.
>>
>> But jboss-cli.bat my.cli fails with:
>>
>> Duplicate argument '--command'/'--commands'.
>>
>> Is there anyone else having the same problem?
>>
>> The effective Java call in jboss-cli.bat is
>>
>> "c:\Program Files\Java\jdk1.6.0_29\bin\java"
>> -Dprogram.name=jboss-cli.bat -jar
>> "e:\git\jboss-as\build\target\jboss-as-7.1.0.Final\jboss-modules.jar"
>> -mp "e:\git\jboss-as\build
>>
>> \target\jboss-as-7.1.0.Final\modules" org.jboss.as.cli -c --file
>> deployDataSource.cli
>>
>> Duplicate argument '--command'/'--commands'.type
>>
>> My cli file currently contains only:
>>
>> /subsystem=datasources/xa-data-source="MY_XA_DATASOURCE":disable
>>
>> This worked in any case with commit ID 945edc.
>>
>> Kind regards,
>>
>> Robert
>>
>>      *WINCOR NIXDORF International GmbH*
>>      Sitz der Gesellschaft: Paderborn
>>      Registergericht Paderborn HRB 3507
>>      Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach,
>>      Dr. Jürgen Wunram
>>      Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
>>      Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 -
>>      WEEE-Reg.-Nr. DE44477193
>>
>>      Diese E-Mail enthält vertrauliche Informationen.
>>      Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>>      irrtümlich erhalten haben,
>>      informieren Sie bitte sofort den Absender und vernichten Sie diese
>>      E-Mail.
>>      Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail
>>      ist nicht gestattet.
>>
>>      This e-mail may contain confidential information.
>>      If you are not the intended recipient (or have received this e-mail
>>      in error)
>>      please notify the sender immediately and destroy this e-mail.
>>      Any unauthorised copying, disclosure or distribution of the material
>>      in this e-mail is strictly forbidden.
>>
>>
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli.bat with Thunder: Duplicate argument '--command'/'--commands'.

Wolf-Dieter Fink
In reply to this post by Panzer, Robert
Yes,

see also

bin/jboss-cli.sh --connect --command :read-resource\(recursive=true\)
Duplicate argument '--command'/'--commands'.

but
bin/jboss-cli.sh --connect --command=:read-resource\(recursive=true\)
bin/jboss-cli.sh --connect :read-resource\(recursive=true\)

works.

Maybe the last argument is interpreted as '--command=:read..' and therefore the message ;)

Wolf

On 02/16/2012 11:27 AM, Panzer, Robert wrote:

Hi,

 

just tried the final version and wanted to execute a cli script using jboss-cli.bat.

But jboss-cli.bat my.cli fails with:

Duplicate argument '--command'/'--commands'.

 

Is there anyone else having the same problem?

 

The effective Java call in jboss-cli.bat is

"c:\Program Files\Java\jdk1.6.0_29\bin\java" -Dprogram.name=jboss-cli.bat      -jar "e:\git\jboss-as\build\target\jboss-as-7.1.0.Final\jboss-modules.jar"     -mp "e:\git\jboss-as\build

\target\jboss-as-7.1.0.Final\modules"      org.jboss.as.cli      -c --file deployDataSource.cli

Duplicate argument '--command'/'--commands'.type

 

My cli file currently contains only:

/subsystem=datasources/xa-data-source="MY_XA_DATASOURCE":disable       

 

This worked in any case with commit ID 945edc.

 

Kind regards,

Robert

WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193

Diese E-Mail enthält vertrauliche Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli.bat with Thunder: Duplicate argument '--command'/'--commands'.

Alexey Loubyansky
Yes, exactly.

Alexey

On 02/16/2012 06:37 PM, Wolf-Dieter Fink wrote:

> Yes,
>
> see also
>
> bin/jboss-cli.sh --connect --command :read-resource\(recursive=true\)
> Duplicate argument '--command'/'--commands'.
>
> but
> bin/jboss-cli.sh --connect --command=:read-resource\(recursive=true\)
> bin/jboss-cli.sh --connect :read-resource\(recursive=true\)
>
> works.
>
> Maybe the last argument is interpreted as '--command=:read..' and
> therefore the message ;)
>
> Wolf
>
> On 02/16/2012 11:27 AM, Panzer, Robert wrote:
>>
>> Hi,
>>
>> just tried the final version and wanted to execute a cli script using
>> jboss-cli.bat.
>>
>> But jboss-cli.bat my.cli fails with:
>>
>> Duplicate argument '--command'/'--commands'.
>>
>> Is there anyone else having the same problem?
>>
>> The effective Java call in jboss-cli.bat is
>>
>> "c:\Program Files\Java\jdk1.6.0_29\bin\java"
>> -Dprogram.name=jboss-cli.bat -jar
>> "e:\git\jboss-as\build\target\jboss-as-7.1.0.Final\jboss-modules.jar"
>> -mp "e:\git\jboss-as\build
>>
>> \target\jboss-as-7.1.0.Final\modules" org.jboss.as.cli -c --file
>> deployDataSource.cli
>>
>> Duplicate argument '--command'/'--commands'.type
>>
>> My cli file currently contains only:
>>
>> /subsystem=datasources/xa-data-source="MY_XA_DATASOURCE":disable
>>
>> This worked in any case with commit ID 945edc.
>>
>> Kind regards,
>>
>> Robert
>>
>>     *WINCOR NIXDORF International GmbH*
>>     Sitz der Gesellschaft: Paderborn
>>     Registergericht Paderborn HRB 3507
>>     Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach,
>>     Dr. Jürgen Wunram
>>     Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
>>     Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 -
>>     WEEE-Reg.-Nr. DE44477193
>>
>>     Diese E-Mail enthält vertrauliche Informationen.
>>     Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>>     irrtümlich erhalten haben,
>>     informieren Sie bitte sofort den Absender und vernichten Sie diese
>>     E-Mail.
>>     Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
>>     E-Mail ist nicht gestattet.
>>
>>     This e-mail may contain confidential information.
>>     If you are not the intended recipient (or have received this
>>     e-mail in error)
>>     please notify the sender immediately and destroy this e-mail.
>>     Any unauthorised copying, disclosure or distribution of the
>>     material in this e-mail is strictly forbidden.
>>
>>
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev