cargo to setup JBoss EAP

View: New views
13 Messages — Rating Filter:   Alert me  

cargo to setup JBoss EAP

by nicolas de loof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

mi cargo configuration runs fine with Jboss 4.2.3,
I now would like to use the exact target platform : JBoss EAP 4.2.0.GA-CP04 (that's a funy name, isn't it ?)

All runs fine (container setup, app get deployed, test pass..) but cargo-stop fails because this EAP version *by default* has the admij user disabled in jmx-console-users.properties.

Is there any way to override such configuration from cargo-maven-plugin ?

Best regards,
Nicolas

Re: cargo to setup JBoss EAP

by Brian Cribbs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you have the ability to deploy that zip file on a server somewhere?  You could reference that zip file on your server with cargo and it would download and unzip your pre-configured version.

On Wed, May 13, 2009 at 9:48 AM, nicolas de loof <nicolas.deloof@...> wrote:
Hi guys,

mi cargo configuration runs fine with Jboss 4.2.3,
I now would like to use the exact target platform : JBoss EAP 4.2.0.GA-CP04 (that's a funy name, isn't it ?)

All runs fine (container setup, app get deployed, test pass..) but cargo-stop fails because this EAP version *by default* has the admij user disabled in jmx-console-users.properties.

Is there any way to override such configuration from cargo-maven-plugin ?

Best regards,
Nicolas


Re: cargo to setup JBoss EAP

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:

> Hi guys,
>
>
> mi cargo configuration runs fine with Jboss 4.2.3,
> I now would like to use the exact target platform : JBoss EAP
> 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>
>
> All runs fine (container setup, app get deployed, test pass..) but
> cargo-stop fails because this EAP version *by default* has the admij
> user disabled in jmx-console-users.properties.

Is this a standalone cargo configuration?
If its a standlone one, then you can overwrite the
jmx-console-users.properties file with the one that you want to use.

See http://cargo.codehaus.org/Custom+File+Configurations

>
> Is there any way to override such configuration
> from cargo-maven-plugin ?
>
>
> Best regards,
> Nicolas


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: cargo to setup JBoss EAP

by nicolas de loof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nice solution, I'll test this

Thanks a lot for quick reply :D


2009/5/13 Matt Wringe <mwringe@...>
On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
> Hi guys,
>
>
> mi cargo configuration runs fine with Jboss 4.2.3,
> I now would like to use the exact target platform : JBoss EAP
> 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>
>
> All runs fine (container setup, app get deployed, test pass..) but
> cargo-stop fails because this EAP version *by default* has the admij
> user disabled in jmx-console-users.properties.

Is this a standalone cargo configuration?
If its a standlone one, then you can overwrite the
jmx-console-users.properties file with the one that you want to use.

See http://cargo.codehaus.org/Custom+File+Configurations

>
> Is there any way to override such configuration
> from cargo-maven-plugin ?
>
>
> Best regards,
> Nicolas


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: cargo to setup JBoss EAP

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> Nice solution, I'll test this

FYI, there was a couple of issues with the custom files on the 1.0
release, so you might want to try with the 1.0.1-SNAPSHOT if you run
into issues.

>
> Thanks a lot for quick reply :D
>
>
> 2009/5/13 Matt Wringe <mwringe@...>
>         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
>         > Hi guys,
>         >
>         >
>         > mi cargo configuration runs fine with Jboss 4.2.3,
>         > I now would like to use the exact target platform : JBoss
>         EAP
>         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>         >
>         >
>         > All runs fine (container setup, app get deployed, test
>         pass..) but
>         > cargo-stop fails because this EAP version *by default* has
>         the admij
>         > user disabled in jmx-console-users.properties.
>        
>        
>         Is this a standalone cargo configuration?
>         If its a standlone one, then you can overwrite the
>         jmx-console-users.properties file with the one that you want
>         to use.
>        
>         See http://cargo.codehaus.org/Custom+File+Configurations
>        
>         >
>         > Is there any way to override such configuration
>         > from cargo-maven-plugin ?
>         >
>         >
>         > Best regards,
>         > Nicolas
>        
>        
>        
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>        
>            http://xircles.codehaus.org/manage_email
>        
>        
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: cargo to setup JBoss EAP

by nicolas de loof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Right,

The maven sample is missing the closing </file> "/"



2009/5/13 Matt Wringe <mwringe@...>
On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> Nice solution, I'll test this

FYI, there was a couple of issues with the custom files on the 1.0
release, so you might want to try with the 1.0.1-SNAPSHOT if you run
into issues.

>
> Thanks a lot for quick reply :D
>
>
> 2009/5/13 Matt Wringe <mwringe@...>
>         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
>         > Hi guys,
>         >
>         >
>         > mi cargo configuration runs fine with Jboss 4.2.3,
>         > I now would like to use the exact target platform : JBoss
>         EAP
>         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>         >
>         >
>         > All runs fine (container setup, app get deployed, test
>         pass..) but
>         > cargo-stop fails because this EAP version *by default* has
>         the admij
>         > user disabled in jmx-console-users.properties.
>
>
>         Is this a standalone cargo configuration?
>         If its a standlone one, then you can overwrite the
>         jmx-console-users.properties file with the one that you want
>         to use.
>
>         See http://cargo.codehaus.org/Custom+File+Configurations
>
>         >
>         > Is there any way to override such configuration
>         > from cargo-maven-plugin ?
>         >
>         >
>         > Best regards,
>         > Nicolas
>
>
>
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>
>            http://xircles.codehaus.org/manage_email
>
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: cargo to setup JBoss EAP

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-05-13 at 16:11 +0200, nicolas de loof wrote:
> Right,
>
>
> I just notice a typo on http://cargo.codehaus.org/Custom+File
> +Configurations
> The maven sample is missing the closing </file> "/"
It should be fixed now

>
>
> 2009/5/13 Matt Wringe <mwringe@...>
>         On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
>         > Nice solution, I'll test this
>        
>        
>         FYI, there was a couple of issues with the custom files on the
>         1.0
>         release, so you might want to try with the 1.0.1-SNAPSHOT if
>         you run
>         into issues.
>        
>        
>         >
>         > Thanks a lot for quick reply :D
>         >
>         >
>         > 2009/5/13 Matt Wringe <mwringe@...>
>         >         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof
>         wrote:
>         >         > Hi guys,
>         >         >
>         >         >
>         >         > mi cargo configuration runs fine with Jboss 4.2.3,
>         >         > I now would like to use the exact target
>         platform : JBoss
>         >         EAP
>         >         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>         >         >
>         >         >
>         >         > All runs fine (container setup, app get deployed,
>         test
>         >         pass..) but
>         >         > cargo-stop fails because this EAP version *by
>         default* has
>         >         the admij
>         >         > user disabled in jmx-console-users.properties.
>         >
>         >
>         >         Is this a standalone cargo configuration?
>         >         If its a standlone one, then you can overwrite the
>         >         jmx-console-users.properties file with the one that
>         you want
>         >         to use.
>         >
>         >         See http://cargo.codehaus.org/Custom+File
>         +Configurations
>         >
>         >         >
>         >         > Is there any way to override such configuration
>         >         > from cargo-maven-plugin ?
>         >         >
>         >         >
>         >         > Best regards,
>         >         > Nicolas
>         >
>         >
>         >
>         >
>         ---------------------------------------------------------------------
>         >         To unsubscribe from this list, please visit:
>         >
>         >            http://xircles.codehaus.org/manage_email
>         >
>         >
>         >
>         >
>        
>        
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>        
>            http://xircles.codehaus.org/manage_email
>        
>        
>        
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: cargo to setup JBoss EAP

by nicolas de loof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The conf override works fine, bu this doesn't fix my issue :

I can connect to jboss admin console but a login/password is expected. The plugin doesn't seem to set it, and the org.jboss.Shutdow command fails.
(java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console)

I'll patch the AS zip, seems simplier :)

Cheers,
Nicolas

2009/5/13 nicolas de loof <nicolas.deloof@...>
Right,

The maven sample is missing the closing </file> "/"



2009/5/13 Matt Wringe <mwringe@...>
On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> Nice solution, I'll test this

FYI, there was a couple of issues with the custom files on the 1.0
release, so you might want to try with the 1.0.1-SNAPSHOT if you run
into issues.

>
> Thanks a lot for quick reply :D
>
>
> 2009/5/13 Matt Wringe <mwringe@...>
>         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
>         > Hi guys,
>         >
>         >
>         > mi cargo configuration runs fine with Jboss 4.2.3,
>         > I now would like to use the exact target platform : JBoss
>         EAP
>         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>         >
>         >
>         > All runs fine (container setup, app get deployed, test
>         pass..) but
>         > cargo-stop fails because this EAP version *by default* has
>         the admij
>         > user disabled in jmx-console-users.properties.
>
>
>         Is this a standalone cargo configuration?
>         If its a standlone one, then you can overwrite the
>         jmx-console-users.properties file with the one that you want
>         to use.
>
>         See http://cargo.codehaus.org/Custom+File+Configurations
>
>         >
>         > Is there any way to override such configuration
>         > from cargo-maven-plugin ?
>         >
>         >
>         > Best regards,
>         > Nicolas
>
>
>
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>
>            http://xircles.codehaus.org/manage_email
>
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





RE: cargo to setup JBoss EAP

by Ken Young :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am new to cargo, but I think this is stopping my progress as well.  I have tried the 1.0.1 snapshot as well, with no difference.  In addition, the port for communication seems to be hardcoded for 1299, and doesn't respect having a different admin port passed to it:

<target name="stopJboss">
<echo message="JBoss is located at ${JBOSS_HOME}" />
<cargo  containerId="jboss42x" home="${JBOSS_HOME}" output="./output.log"
      log="./cargo.log" action="stop">
        <configuration type="existing" home="${JBOSS_HOME}/server/default">
      <property name="cargo.remote.username" value="xxxx"/>
      <property name="cargo.remote.password" value="xxxx"/>
      <property name="cargo.rmi.port" value="1099"/>
        </configuration>
</cargo>
</target>

Exception is:

Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
        at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
...

________________________________________
From: nicolas de loof [mailto:nicolas.deloof@...]
Sent: Wednesday, May 13, 2009 9:26 AM
To: user@...
Subject: Re: [cargo-user] cargo to setup JBoss EAP

The conf override works fine, bu this doesn't fix my issue :

I can connect to jboss admin console but a login/password is expected. The plugin doesn't seem to set it, and the org.jboss.Shutdow command fails.
(java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console)

I'll patch the AS zip, seems simplier :)

Cheers,
Nicolas
2009/5/13 nicolas de loof <nicolas.deloof@...>
Right,

I just notice a typo on http://cargo.codehaus.org/Custom+File+Configurations
The maven sample is missing the closing </file> "/"




2009/5/13 Matt Wringe <mwringe@...>
On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> Nice solution, I'll test this
FYI, there was a couple of issues with the custom files on the 1.0
release, so you might want to try with the 1.0.1-SNAPSHOT if you run
into issues.

>
> Thanks a lot for quick reply :D
>
>
> 2009/5/13 Matt Wringe <mwringe@...>
>         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
>         > Hi guys,
>         >
>         >
>         > mi cargo configuration runs fine with Jboss 4.2.3,
>         > I now would like to use the exact target platform : JBoss
>         EAP
>         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>         >
>         >
>         > All runs fine (container setup, app get deployed, test
>         pass..) but
>         > cargo-stop fails because this EAP version *by default* has
>         the admij
>         > user disabled in jmx-console-users.properties.
>
>
>         Is this a standalone cargo configuration?
>         If its a standlone one, then you can overwrite the
>         jmx-console-users.properties file with the one that you want
>         to use.
>
>         See http://cargo.codehaus.org/Custom+File+Configurations
>
>         >
>         > Is there any way to override such configuration
>         > from cargo-maven-plugin ?
>         >
>         >
>         > Best regards,
>         > Nicolas
>
>
>
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>
>            http://xircles.codehaus.org/manage_email
>
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: cargo to setup JBoss EAP

by Ken Young :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually, the rmi port value is working, but the user principal items do not work on the local machine.

Ken

-----Original Message-----
From: Ken Young [mailto:KenYoung@...]
Sent: Friday, May 15, 2009 3:44 PM
To: user@...
Subject: RE: [cargo-user] cargo to setup JBoss EAP

I am new to cargo, but I think this is stopping my progress as well.  I have tried the 1.0.1 snapshot as well, with no difference.  In addition, the port for communication seems to be hardcoded for 1299, and doesn't respect having a different admin port passed to it:

<target name="stopJboss">
<echo message="JBoss is located at ${JBOSS_HOME}" />
<cargo  containerId="jboss42x" home="${JBOSS_HOME}" output="./output.log"
      log="./cargo.log" action="stop">
        <configuration type="existing" home="${JBOSS_HOME}/server/default">
      <property name="cargo.remote.username" value="xxxx"/>
      <property name="cargo.remote.password" value="xxxx"/>
      <property name="cargo.rmi.port" value="1099"/>
        </configuration>
</cargo>
</target>

Exception is:

Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
        at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
...

________________________________________
From: nicolas de loof [mailto:nicolas.deloof@...]
Sent: Wednesday, May 13, 2009 9:26 AM
To: user@...
Subject: Re: [cargo-user] cargo to setup JBoss EAP

The conf override works fine, bu this doesn't fix my issue :

I can connect to jboss admin console but a login/password is expected. The plugin doesn't seem to set it, and the org.jboss.Shutdow command fails.
(java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console)

I'll patch the AS zip, seems simplier :)

Cheers,
Nicolas
2009/5/13 nicolas de loof <nicolas.deloof@...>
Right,

I just notice a typo on http://cargo.codehaus.org/Custom+File+Configurations
The maven sample is missing the closing </file> "/"




2009/5/13 Matt Wringe <mwringe@...>
On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> Nice solution, I'll test this
FYI, there was a couple of issues with the custom files on the 1.0
release, so you might want to try with the 1.0.1-SNAPSHOT if you run
into issues.

>
> Thanks a lot for quick reply :D
>
>
> 2009/5/13 Matt Wringe <mwringe@...>
>         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
>         > Hi guys,
>         >
>         >
>         > mi cargo configuration runs fine with Jboss 4.2.3,
>         > I now would like to use the exact target platform : JBoss
>         EAP
>         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
>         >
>         >
>         > All runs fine (container setup, app get deployed, test
>         pass..) but
>         > cargo-stop fails because this EAP version *by default* has
>         the admij
>         > user disabled in jmx-console-users.properties.
>
>
>         Is this a standalone cargo configuration?
>         If its a standlone one, then you can overwrite the
>         jmx-console-users.properties file with the one that you want
>         to use.
>
>         See http://cargo.codehaus.org/Custom+File+Configurations
>
>         >
>         > Is there any way to override such configuration
>         > from cargo-maven-plugin ?
>         >
>         >
>         > Best regards,
>         > Nicolas
>
>
>
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>
>            http://xircles.codehaus.org/manage_email
>
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: cargo to setup JBoss EAP

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-05-18 at 10:56 -0500, Ken Young wrote:
> Actually, the rmi port value is working, but the user principal items do not work on the local machine.

yes, that is something I am working on. By default it hasn't needed authentication until now with EAP.

> Ken
>
> -----Original Message-----
> From: Ken Young [mailto:KenYoung@...]
> Sent: Friday, May 15, 2009 3:44 PM
> To: user@...
> Subject: RE: [cargo-user] cargo to setup JBoss EAP
>
> I am new to cargo, but I think this is stopping my progress as well.  I have tried the 1.0.1 snapshot as well, with no difference.  In addition, the port for communication seems to be hardcoded for 1299, and doesn't respect having a different admin port passed to it:
>
> <target name="stopJboss">
> <echo message="JBoss is located at ${JBOSS_HOME}" />
> <cargo  containerId="jboss42x" home="${JBOSS_HOME}" output="./output.log"
>       log="./cargo.log" action="stop">
> <configuration type="existing" home="${JBOSS_HOME}/server/default">
>       <property name="cargo.remote.username" value="xxxx"/>
>       <property name="cargo.remote.password" value="xxxx"/>
>       <property name="cargo.rmi.port" value="1099"/>
> </configuration>
> </cargo>
> </target>
>
> Exception is:
>
> Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
> at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> ...
>
> ________________________________________
> From: nicolas de loof [mailto:nicolas.deloof@...]
> Sent: Wednesday, May 13, 2009 9:26 AM
> To: user@...
> Subject: Re: [cargo-user] cargo to setup JBoss EAP
>
> The conf override works fine, bu this doesn't fix my issue :
>
> I can connect to jboss admin console but a login/password is expected. The plugin doesn't seem to set it, and the org.jboss.Shutdow command fails.
> (java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console)
>
> I'll patch the AS zip, seems simplier :)
>
> Cheers,
> Nicolas
> 2009/5/13 nicolas de loof <nicolas.deloof@...>
> Right,
>
> I just notice a typo on http://cargo.codehaus.org/Custom+File+Configurations
> The maven sample is missing the closing </file> "/"
>
>
>
>
> 2009/5/13 Matt Wringe <mwringe@...>
> On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> > Nice solution, I'll test this
> FYI, there was a couple of issues with the custom files on the 1.0
> release, so you might want to try with the 1.0.1-SNAPSHOT if you run
> into issues.
>
> >
> > Thanks a lot for quick reply :D
> >
> >
> > 2009/5/13 Matt Wringe <mwringe@...>
> >         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
> >         > Hi guys,
> >         >
> >         >
> >         > mi cargo configuration runs fine with Jboss 4.2.3,
> >         > I now would like to use the exact target platform : JBoss
> >         EAP
> >         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
> >         >
> >         >
> >         > All runs fine (container setup, app get deployed, test
> >         pass..) but
> >         > cargo-stop fails because this EAP version *by default* has
> >         the admij
> >         > user disabled in jmx-console-users.properties.
> >
> >
> >         Is this a standalone cargo configuration?
> >         If its a standlone one, then you can overwrite the
> >         jmx-console-users.properties file with the one that you want
> >         to use.
> >
> >         See http://cargo.codehaus.org/Custom+File+Configurations
> >
> >         >
> >         > Is there any way to override such configuration
> >         > from cargo-maven-plugin ?
> >         >
> >         >
> >         > Best regards,
> >         > Nicolas
> >
> >
> >
> >         ---------------------------------------------------------------------
> >         To unsubscribe from this list, please visit:
> >
> >            http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: cargo to setup JBoss EAP

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-05-19 at 09:51 -0400, Matt Wringe wrote:
> On Mon, 2009-05-18 at 10:56 -0500, Ken Young wrote:
> > Actually, the rmi port value is working, but the user principal items do not work on the local machine.
>
> yes, that is something I am working on. By default it hasn't needed authentication until now with EAP.

An update:

There has been a bug report open about this last week:
http://jira.codehaus.org/browse/CARGO-703

With the runtime options patch that went into Cargo today (CARGO-553) it
is now possible to set the options using the cargo.runtime.args
parameter:

    <configuration>
      <properties>
        <cargo.rmi.port>1099</cargo.rmi.port>
        <cargo.runtime.args>-u admin -p admin</cargo.runtime.args>
      </properties>
    </configuration>

There should also be jboss specific options added to make this even
easier to use.

>
> > Ken
> >
> > -----Original Message-----
> > From: Ken Young [mailto:KenYoung@...]
> > Sent: Friday, May 15, 2009 3:44 PM
> > To: user@...
> > Subject: RE: [cargo-user] cargo to setup JBoss EAP
> >
> > I am new to cargo, but I think this is stopping my progress as well.  I have tried the 1.0.1 snapshot as well, with no difference.  In addition, the port for communication seems to be hardcoded for 1299, and doesn't respect having a different admin port passed to it:
> >
> > <target name="stopJboss">
> > <echo message="JBoss is located at ${JBOSS_HOME}" />
> > <cargo  containerId="jboss42x" home="${JBOSS_HOME}" output="./output.log"
> >       log="./cargo.log" action="stop">
> > <configuration type="existing" home="${JBOSS_HOME}/server/default">
> >       <property name="cargo.remote.username" value="xxxx"/>
> >       <property name="cargo.remote.password" value="xxxx"/>
> >       <property name="cargo.rmi.port" value="1099"/>
> > </configuration>
> > </cargo>
> > </target>
> >
> > Exception is:
> >
> > Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
> > at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
> > at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> > ...
> >
> > ________________________________________
> > From: nicolas de loof [mailto:nicolas.deloof@...]
> > Sent: Wednesday, May 13, 2009 9:26 AM
> > To: user@...
> > Subject: Re: [cargo-user] cargo to setup JBoss EAP
> >
> > The conf override works fine, bu this doesn't fix my issue :
> >
> > I can connect to jboss admin console but a login/password is expected. The plugin doesn't seem to set it, and the org.jboss.Shutdow command fails.
> > (java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console)
> >
> > I'll patch the AS zip, seems simplier :)
> >
> > Cheers,
> > Nicolas
> > 2009/5/13 nicolas de loof <nicolas.deloof@...>
> > Right,
> >
> > I just notice a typo on http://cargo.codehaus.org/Custom+File+Configurations
> > The maven sample is missing the closing </file> "/"
> >
> >
> >
> >
> > 2009/5/13 Matt Wringe <mwringe@...>
> > On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> > > Nice solution, I'll test this
> > FYI, there was a couple of issues with the custom files on the 1.0
> > release, so you might want to try with the 1.0.1-SNAPSHOT if you run
> > into issues.
> >
> > >
> > > Thanks a lot for quick reply :D
> > >
> > >
> > > 2009/5/13 Matt Wringe <mwringe@...>
> > >         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
> > >         > Hi guys,
> > >         >
> > >         >
> > >         > mi cargo configuration runs fine with Jboss 4.2.3,
> > >         > I now would like to use the exact target platform : JBoss
> > >         EAP
> > >         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
> > >         >
> > >         >
> > >         > All runs fine (container setup, app get deployed, test
> > >         pass..) but
> > >         > cargo-stop fails because this EAP version *by default* has
> > >         the admij
> > >         > user disabled in jmx-console-users.properties.
> > >
> > >
> > >         Is this a standalone cargo configuration?
> > >         If its a standlone one, then you can overwrite the
> > >         jmx-console-users.properties file with the one that you want
> > >         to use.
> > >
> > >         See http://cargo.codehaus.org/Custom+File+Configurations
> > >
> > >         >
> > >         > Is there any way to override such configuration
> > >         > from cargo-maven-plugin ?
> > >         >
> > >         >
> > >         > Best regards,
> > >         > Nicolas
> > >
> > >
> > >
> > >         ---------------------------------------------------------------------
> > >         To unsubscribe from this list, please visit:
> > >
> > >            http://xircles.codehaus.org/manage_email
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: cargo to setup JBoss EAP

by Ken Young :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Matt.  I confirm that it work in my 4.3 environment.

Ken

-----Original Message-----
From: Matt Wringe [mailto:mwringe@...]
Sent: Tuesday, May 19, 2009 2:25 PM
To: user@...
Subject: RE: [cargo-user] cargo to setup JBoss EAP

On Tue, 2009-05-19 at 09:51 -0400, Matt Wringe wrote:
> On Mon, 2009-05-18 at 10:56 -0500, Ken Young wrote:
> > Actually, the rmi port value is working, but the user principal
items do not work on the local machine.
>
> yes, that is something I am working on. By default it hasn't needed
authentication until now with EAP.

An update:

There has been a bug report open about this last week:
http://jira.codehaus.org/browse/CARGO-703

With the runtime options patch that went into Cargo today (CARGO-553) it
is now possible to set the options using the cargo.runtime.args
parameter:

    <configuration>
      <properties>
        <cargo.rmi.port>1099</cargo.rmi.port>
        <cargo.runtime.args>-u admin -p admin</cargo.runtime.args>
      </properties>
    </configuration>

There should also be jboss specific options added to make this even
easier to use.

>
> > Ken
> >
> > -----Original Message-----
> > From: Ken Young [mailto:KenYoung@...]
> > Sent: Friday, May 15, 2009 3:44 PM
> > To: user@...
> > Subject: RE: [cargo-user] cargo to setup JBoss EAP
> >
> > I am new to cargo, but I think this is stopping my progress as well.
I have tried the 1.0.1 snapshot as well, with no difference.  In
addition, the port for communication seems to be hardcoded for 1299, and
doesn't respect having a different admin port passed to it:
> >
> > <target name="stopJboss">
> > <echo message="JBoss is located at ${JBOSS_HOME}" />
> > <cargo  containerId="jboss42x" home="${JBOSS_HOME}"
output="./output.log"
> >       log="./cargo.log" action="stop">
> > <configuration type="existing"
home="${JBOSS_HOME}/server/default">

> >       <property name="cargo.remote.username" value="xxxx"/>
> >       <property name="cargo.remote.password" value="xxxx"/>
> >       <property name="cargo.rmi.port" value="1099"/>
> > </configuration>
> > </cargo>
> > </target>
> >
> > Exception is:
> >
> > Exception in thread "main" java.lang.SecurityException: Failed to
authenticate principal=null, securityDomain=jmx-console
> > at
org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(Authent
icationInterceptor.java:97)

> > at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> > ...
> >
> > ________________________________________
> > From: nicolas de loof [mailto:nicolas.deloof@...]
> > Sent: Wednesday, May 13, 2009 9:26 AM
> > To: user@...
> > Subject: Re: [cargo-user] cargo to setup JBoss EAP
> >
> > The conf override works fine, bu this doesn't fix my issue :
> >
> > I can connect to jboss admin console but a login/password is
expected. The plugin doesn't seem to set it, and the org.jboss.Shutdow
command fails.
> > (java.lang.SecurityException: Failed to authenticate principal=null,
securityDomain=jmx-console)
> >
> > I'll patch the AS zip, seems simplier :)
> >
> > Cheers,
> > Nicolas
> > 2009/5/13 nicolas de loof <nicolas.deloof@...>
> > Right,
> >
> > I just notice a typo on
http://cargo.codehaus.org/Custom+File+Configurations

> > The maven sample is missing the closing </file> "/"
> >
> >
> >
> >
> > 2009/5/13 Matt Wringe <mwringe@...>
> > On Wed, 2009-05-13 at 16:04 +0200, nicolas de loof wrote:
> > > Nice solution, I'll test this
> > FYI, there was a couple of issues with the custom files on the 1.0
> > release, so you might want to try with the 1.0.1-SNAPSHOT if you run
> > into issues.
> >
> > >
> > > Thanks a lot for quick reply :D
> > >
> > >
> > > 2009/5/13 Matt Wringe <mwringe@...>
> > >         On Wed, 2009-05-13 at 15:48 +0200, nicolas de loof wrote:
> > >         > Hi guys,
> > >         >
> > >         >
> > >         > mi cargo configuration runs fine with Jboss 4.2.3,
> > >         > I now would like to use the exact target platform :
JBoss
> > >         EAP
> > >         > 4.2.0.GA-CP04 (that's a funy name, isn't it ?)
> > >         >
> > >         >
> > >         > All runs fine (container setup, app get deployed, test
> > >         pass..) but
> > >         > cargo-stop fails because this EAP version *by default*
has
> > >         the admij
> > >         > user disabled in jmx-console-users.properties.
> > >
> > >
> > >         Is this a standalone cargo configuration?
> > >         If its a standlone one, then you can overwrite the
> > >         jmx-console-users.properties file with the one that you
want

> > >         to use.
> > >
> > >         See http://cargo.codehaus.org/Custom+File+Configurations
> > >
> > >         >
> > >         > Is there any way to override such configuration
> > >         > from cargo-maven-plugin ?
> > >         >
> > >         >
> > >         > Best regards,
> > >         > Nicolas
> > >
> > >
> > >
> > >
---------------------------------------------------------------------

> > >         To unsubscribe from this list, please visit:
> > >
> > >            http://xircles.codehaus.org/manage_email
> > >
> > >
> > >
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
---------------------------------------------------------------------

> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email