0 Replies Latest reply on May 2, 2016 2:35 PM by Wenderson Souza

    Error when i try run remote deploy with cargo and Jboss EAP 6.4

    Wenderson Souza Newbie

      Meu pom. xml

      <dependency>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-core-uberjar</artifactId>

              <version>1.4.18</version>

      </dependency>
      <dependency>
      <groupId>org.jboss.as</groupId>
      <artifactId>jboss-as-controller-client</artifactId>
      <version>7.5.0.Final-redhat-21</version>

      </dependency>

      <dependency>

      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-core-container-jboss</artifactId>
      <version>1.4.18</version>
      <exclusions>
      <exclusion>
      <artifactId>commons-logging</artifactId>
      <groupId>commons-logging</groupId>
      </exclusion>
      </exclusions>
      </dependency>

        </dependencies>

        <build>

          <finalName>RestEasyRestfull</finalName>

        <plugins>
               <plugin>
                      <groupId>org.codehaus.cargo</groupId>
                      <artifactId>cargo-maven2-plugin</artifactId>
                      <version>1.4.18</version>
                      <configuration>
                          <container>
                              <containerId>jboss75x</containerId>
                              <type>remote</type>
                          </container>
                          <configuration>
      <type>runtime</type>
      <properties>
      <cargo.hostname>${jboss.url}</cargo.hostname>
      <cargo.remote.username>${jboss.user}</cargo.remote.username>
      <cargo.remote.password>${jboss.password}</cargo.remote.password>
      <cargo.jboss.management-native.port>19999</cargo.jboss.management-native.port>
      </properties>
      </configuration>
                  <deployables>
                      <deployable>
                            <groupId>br.com.webService.rest.RestEasyRestfull</groupId>
        <artifactId>RestEasyRestfull</artifactId>
                          <type>war</type>
                      </deployable>
                  </deployables>
                      </configuration>
                  </plugin>
          </plugins>
      </build> 

       

      Message Error:

       

      [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.18:deploy (default-cli) on project RestEasyRestfull: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.18:deploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer for the parameters (container [id = [jboss75x]], deployer type [remote]). InvocationTargetException: Cannot locate the JBoss connector classes! Make sure the required JBoss JARs (or Maven dependencies) are in CARGO's classpath.

      [ERROR] More information on: https://codehaus-cargo.github.io/cargo/JBoss+Remote+Deployer.html: org.jboss.as.controller.client.ModelControllerClient

      [ERROR] -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.18:deploy (default-cli) on project RestEasyRestfull: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.18:deploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer for the parameters (container [id = [jboss75x]], deployer type [remote]).

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

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

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

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

              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

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

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

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

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

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

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.18:deploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer for the parameters (container [id = [jboss75x]], deployer type [remote]).

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

              ... 20 more

      Caused by: org.codehaus.cargo.container.ContainerException: Failed to create deployer with implementation class org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer for the parameters (container [id = [jboss75x]], deployer type [remote]).

              at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:155)

              at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:92)

              at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:139)

              at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:159)

              at org.codehaus.cargo.maven2.AbstractDeployerMojo.createDeployer(AbstractDeployerMojo.java:114)

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

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

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

              ... 21 more

      Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

              at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:243)

              at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:41)

              at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:149)

              ... 28 more

      Caused by: org.codehaus.cargo.util.CargoException: Cannot locate the JBoss connector classes! Make sure the required JBoss JARs (or Maven dependencies) are in CARGO's classpath.

      More information on: https://codehaus-cargo.github.io/cargo/JBoss+Remote+Deployer.html

              at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.<init>(JBoss5xRemoteDeployer.java:160)

              at org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer.<init>(JBoss7xRemoteDeployer.java:40)

              ... 35 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.as.controller.client.ModelControllerClient

              at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

              at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

              at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.<init>(JBoss5xRemoteDeployer.java:155)

              ... 36 more

      [ERROR]

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException