6 Replies Latest reply: Apr 25, 2011 1:08 AM by Todd Morrison RSS

Remote deploy on Jboss 6

Rafael Carvalho Newbie

My question is: Is it possible to remotely deploy on a cluster in Jboss 6?

 

I have tried without success with jboss-maven-plugin now i'm trying to acomplish this with cargo. I am using Jboss 6 Final and the version of cargo plugin is 1.0.5.

 

As said here I defined the 3 dependencies with the following changes: jboss-profileservice-spi version 6.0.0.Alpha9 and jboss-as-client version 6.0.0.Final and got the following error:

 

java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

(the entire stacktrace is at the end of the post)

 

I checked out the source code for JbossAS from http://anonsvn.jboss.org/repos/jbossas and notice that there is also a 6.0.0.CR1 for the integration project (http://anonsvn.jboss.org/repos/jbossas/projects/integration) where lies the code for jboss-profileservice-spi.

But unfortunately threre is no  jboss-profileservice-spi subproject in that version.

Does anybody knows if the structure has changed or it still in development?

 

And the most important question is: Is it possible to remotely deploy an application in a cluster of Jboss 6 Final?

 

Thanks,

 

Rafael.

 

 

[INFO] [cargo:deploy {execution: default-cli}]

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Cannot deploy deployable org.codehaus.cargo.container.jboss.JBossWAR@cfa5c1

org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.codehaus.cargo.util.CargoException: Cannot deploy deployable org.codehaus.cargo.container.jboss.JBossWAR@cfa5c1

        at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:116)

        at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:115)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: java.lang.RuntimeException: java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

        at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:314)

        at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:118)

        at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

        at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:125)

        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)

        at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

Caused by: java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

        at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)

        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)

        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

        at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)

        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

        at java.rmi.MarshalledObject.get(MarshalledObject.java:142)

        at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:309)

        at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:118)

        at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

        at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:125)

        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)

        at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

        at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:216)

        at org.jboss.remoting.Client.invoke(Client.java:1961)

        at org.jboss.remoting.Client.invoke(Client.java:804)

        at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aop.generatedproxies.AOPProxy$1.loadProfile(AOPProxy$1.java)

        at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:64)

        at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

        at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:115)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

        at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aop.generatedproxies.AOPProxy$1.loadProfile(AOPProxy$1.java)

        at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:64)

        at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

        at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:115)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

java.lang.RuntimeException: java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

        at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:314)

        at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:118)

        at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

        at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:125)

        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)

        at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

Caused by: java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

        at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)

        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)

        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

        at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)

        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)

        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

        at java.rmi.MarshalledObject.get(MarshalledObject.java:142)

        at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:309)

        at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:118)

        at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

        at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:125)

        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)

        at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

        at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:216)

        at org.jboss.remoting.Client.invoke(Client.java:1961)

        at org.jboss.remoting.Client.invoke(Client.java:804)

        at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aop.generatedproxies.AOPProxy$1.loadProfile(AOPProxy$1.java)

        at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:64)

        at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

        at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:115)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

        at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

        at org.jboss.aop.generatedproxies.AOPProxy$1.loadProfile(AOPProxy$1.java)

        at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:64)

        at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

        at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:115)

        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

  • 1. Remote deploy on Jboss 6
    Ales Justin Master

    Current AS6 ProfileService code comes from this source tree:

    * http://anonsvn.jboss.org/repos/jbossas/projects/profileservice/trunk/

     

    But I'll leave it to Emanuel to provide you with more details.

  • 2. Remote deploy on Jboss 6
    Emanuel Muckenhuber Master

    The maven dependency of the profileservice-spi changed to:

     

    <dependency>

                        <groupId>org.jboss.profileservice</groupId>

                        <artifactId>jboss-profileservice-spi</artifactId>

                        <version>0.2.2</version>

    </dependency>

     

    Additionally we added a profileservice-client pom, as part of AS, which contains the remote dependencies to talk to profileservice:

     

    <dependency>

        <groupId>org.jboss.jbossas</groupId>

        <artifactId>jboss-as-profileservice-client</artifactId>

        <version>6.0.0.Final</version>

        <type>pom</type>

    </dependency>

  • 3. Re: Remote deploy on Jboss 6
    Rafael Carvalho Newbie

    Thank you for the answers. I'm almost there =)

     

    Now I've got the following message and nothing happens/logs at the server side.

     

    [INFO] [cargo:deploy {execution: default-cli}]

    log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

    log4j:WARN Please initialize the log4j system properly.

     

    The execution of "maven cargo:deploy" stay frozen and I have do CRTL+c to stop.

     

    What I'm doing wrong and how can I properly initialize log4j for cargo?

     

    Here's my cargo configuration:

                                         <plugin>

                                            <groupId>org.codehaus.cargo</groupId>

                                            <artifactId>cargo-maven2-plugin</artifactId>

                                            <version>${cargo.plugin.version}</version>

                                            <configuration>

                                                      <container>

                                                                <containerId>jboss6x</containerId>

                                                                <type>remote</type>

                                                      </container>

                                                      <configuration>

                                                                <type>runtime</type>

                                                                <properties>

                                                                          <cargo.rmi.port>1090</cargo.rmi.port>

                                                                </properties>

                                                      </configuration>

                                                      <deployer>

                                                                <type>remote</type>

                                                                <deployables>

                                                                          <deployable>

                                                                                    <groupId>br.com.cvc</groupId>

                                                                                    <artifactId>deploy-test</artifactId>

                                                                                    <type>war</type>

                                                                          </deployable>

                                                                </deployables>

                                                      </deployer>

                                            </configuration>

                                            <dependencies>

                                                      <dependency>

                                                                <groupId>org.codehaus.cargo</groupId>

                                                                <artifactId>cargo-core-tools-jboss-deployer-5.1-and-onwards</artifactId>

                                                                <version>${cargo.plugin.version}</version>

                                                      </dependency>

     

     

                                                      <dependency>

                                                                <groupId>org.jboss.jbossas</groupId>

                                                                <artifactId>jboss-as-profileservice-client</artifactId>

                                                                <version>6.0.0.Final</version>

                                                                <type>pom</type>

                                                      </dependency>

     

     

                                                      <dependency>

                                                                <groupId>org.jboss.jbossas</groupId>

                                                                <artifactId>jboss-as-client</artifactId>

                                                                <version>6.0.0.Final</version>

                                                                <type>pom</type>

                                                      </dependency>

                                            </dependencies>

                                  </plugin>

  • 4. Re: Remote deploy on Jboss 6
    Rafael Carvalho Newbie

    Hello!

     

    As I posted here the remote deploy using cargo plugin worked, but I would like to deploy my application in the "farm" directory to run it in the cluster.

    Cargo uses "ProfileService DeploymentManager" to do the job.

    Does anyone knows if ProfileService DeploymentManager has such an option?

     

    The readme file (http://anonsvn.jboss.org/repos/jbossas/tags/6.0.0.Final/build/docs/readme.html) says that "Farm service is removed" but it seems to be outdated as it describes Jboss 5.0.0.CR2.

     

    Thanks again,

     

    Rafael ...

  • 5. Re: Remote deploy on Jboss 6
    Rafael Carvalho Newbie

    To whom it may concern, here is the issue that provide remote deploy in a Jboss cluster.

  • 6. Remote deploy on Jboss 6
    Todd Morrison Newbie

    I still get this exact error with the latest jboss-as-profileservice-client and jboss 6 final *when* I load against any non-standard port profile.

    the Default set, 8080 etc., does not reproduce this issue.

     

    This fixed the standard port error:

    http://community.jboss.org/en/arquillian/blog/2011/04/05/trim-your-dependencies-when-using-jboss-as-6-remote#comments

     

    Advice?