You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Maruf Aytekin <ma...@aspone.co.uk> on 2007/02/13 15:45:50 UTC

I need help with cargo-maven2-plugin.

Hi All,

I need help with cargo-maven2-plugin.
I have jboss-4.0.5.GA installed on  my testcip server. I am trying to 
deploy a war webapp to jboss with cargo-maven-plugin. Related part of 
the pom.xml is below:
 
<build>
....................
        <plugin>
          <groupId>org.codehaus.cargo</groupId>
          <artifactId>cargo-maven2-plugin</artifactId>
          <version>0.2</version>
          <configuration>
            <container>
              <containerId>jboss4x</containerId>
              <type>remote</type>
            </container>
            <configuration>
              <type>runtime</type>
              <properties>
                <cargo.hostname>testcip</cargo.hostname>
                <cargo.servlet.port>8080</cargo.servlet.port>
                <cargo.rmi.port>8009</cargo.rmi.port>
              </properties>
              </configuration>
            <deployer>
              <type>remote</type>
              <deployables>
                <deployable>
                    <groupId>com.aspone.baydonhill.customer</groupId>
                    <artifactId>baydonline</artifactId>
                    <type>war</type>
                  </deployable>
              </deployables>
              </deployer>
         </configuration>
        </plugin>
      </plugins>
    </build>

The produced artifact is located under c:/baydonhill/customer/target/ 
directory. It seems plugin cannot see 
file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-SNAPSHOT.war.
I am using windows XP and Maven version: 2.0.4.
I am not sure what I am doing wrong?
I am getting the following exception:

Many thanks in advance.

Maruf

C:\baydonhill\customer>mvn -e cargo:deploy
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO] 
-------------------------------------------------------------------------
---
[INFO] Building Baydonline webapp
[INFO]    task-segment: [cargo:deploy]
[INFO] 
-------------------------------------------------------------------------
---
[INFO] [cargo:deploy]
[INFO] 
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to deploy to 
[http://testcip:8080/jmx-console/HtmlAdaptor?action=i
nvokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType
=java.net.URL&arg0=file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-S
NAPSHOT.war]
Server returned HTTP response code: 500 for URL: 
http://testcip:8080/jmx-console
/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&meth
odName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarg
et%5Cbaydonline-1.0-SNAPSHOT.war
[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Failed to deploy to 
[http://tes
tcip:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:servic
e%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cbaydonh
ill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-SNAPSHOT.war]
        at 
org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.conn
ect(JdkHttpURLConnection.java:57)
        at 
org.codehaus.cargo.container.jboss.JBossJMXDeployer.invokeURL(JBossJM
XDeployer.java:154)
        at 
org.codehaus.cargo.container.jboss.JBossJMXDeployer.deploy(JBossJMXDe




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: I need help with cargo-maven2-plugin.

Posted by Wayne Fay <wa...@gmail.com>.
Perhaps you should take this email to the Cargo Users mailing list?

Wayne

On 2/14/07, Maruf Aytekin <aa...@gmail.com> wrote:
> Can someone point me to an example of cargo-maven2-plugin use case?
>
> Many Thanks
> Maruf
>
>
> Maruf Aytekin wrote:
> > Hi All,
> >
> > I need help with cargo-maven2-plugin.
> > I have jboss-4.0.5.GA installed on  my testcip server. I am trying to
> > deploy a war webapp to jboss with cargo-maven-plugin. Related part of
> > the pom.xml is below:
> >
> > <build>
> > ....................
> >        <plugin>
> >          <groupId>org.codehaus.cargo</groupId>
> >          <artifactId>cargo-maven2-plugin</artifactId>
> >          <version>0.2</version>
> >          <configuration>
> >            <container>
> >              <containerId>jboss4x</containerId>
> >              <type>remote</type>
> >            </container>
> >            <configuration>
> >              <type>runtime</type>
> >              <properties>
> >                <cargo.hostname>testcip</cargo.hostname>
> >                <cargo.servlet.port>8080</cargo.servlet.port>
> >                <cargo.rmi.port>8009</cargo.rmi.port>
> >              </properties>
> >              </configuration>
> >            <deployer>
> >              <type>remote</type>
> >              <deployables>
> >                <deployable>
> >                    <groupId>com.aspone.baydonhill.customer</groupId>
> >                    <artifactId>baydonline</artifactId>
> >                    <type>war</type>
> >                  </deployable>
> >              </deployables>
> >              </deployer>
> >         </configuration>
> >        </plugin>
> >      </plugins>
> >    </build>
> >
> > The produced artifact is located under c:/baydonhill/customer/target/
> > directory. It seems plugin cannot see
> > file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-SNAPSHOT.war.
> > I am using windows XP and Maven version: 2.0.4.
> > I am not sure what I am doing wrong?
> > I am getting the following exception:
> >
> > Many thanks in advance.
> >
> > Maruf
> >
> > C:\baydonhill\customer>mvn -e cargo:deploy
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'cargo'.
> > [INFO]
> > -------------------------------------------------------------------------
> > ---
> > [INFO] Building Baydonline webapp
> > [INFO]    task-segment: [cargo:deploy]
> > [INFO]
> > -------------------------------------------------------------------------
> > ---
> > [INFO] [cargo:deploy]
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to deploy to
> > [http://testcip:8080/jmx-console/HtmlAdaptor?action=i
> > nvokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType
> >
> > =java.net.URL&arg0=file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-S
> >
> > NAPSHOT.war]
> > Server returned HTTP response code: 500 for URL:
> > http://testcip:8080/jmx-console
> > /HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&meth
> >
> > odName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarg
> >
> > et%5Cbaydonline-1.0-SNAPSHOT.war
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.codehaus.cargo.container.ContainerException: Failed to deploy to
> > [http://tes
> > tcip:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:servic
> >
> > e%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cbaydonh
> >
> > ill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-SNAPSHOT.war]
> >        at
> > org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.conn
> > ect(JdkHttpURLConnection.java:57)
> >        at
> > org.codehaus.cargo.container.jboss.JBossJMXDeployer.invokeURL(JBossJM
> > XDeployer.java:154)
> >        at
> > org.codehaus.cargo.container.jboss.JBossJMXDeployer.deploy(JBossJMXDe
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: I need help with cargo-maven2-plugin.

Posted by Maruf Aytekin <aa...@gmail.com>.
Can someone point me to an example of cargo-maven2-plugin use case?

Many Thanks
Maruf


Maruf Aytekin wrote:
> Hi All,
>
> I need help with cargo-maven2-plugin.
> I have jboss-4.0.5.GA installed on  my testcip server. I am trying to 
> deploy a war webapp to jboss with cargo-maven-plugin. Related part of 
> the pom.xml is below:
>
> <build>
> ....................
>        <plugin>
>          <groupId>org.codehaus.cargo</groupId>
>          <artifactId>cargo-maven2-plugin</artifactId>
>          <version>0.2</version>
>          <configuration>
>            <container>
>              <containerId>jboss4x</containerId>
>              <type>remote</type>
>            </container>
>            <configuration>
>              <type>runtime</type>
>              <properties>
>                <cargo.hostname>testcip</cargo.hostname>
>                <cargo.servlet.port>8080</cargo.servlet.port>
>                <cargo.rmi.port>8009</cargo.rmi.port>
>              </properties>
>              </configuration>
>            <deployer>
>              <type>remote</type>
>              <deployables>
>                <deployable>
>                    <groupId>com.aspone.baydonhill.customer</groupId>
>                    <artifactId>baydonline</artifactId>
>                    <type>war</type>
>                  </deployable>
>              </deployables>
>              </deployer>
>         </configuration>
>        </plugin>
>      </plugins>
>    </build>
>
> The produced artifact is located under c:/baydonhill/customer/target/ 
> directory. It seems plugin cannot see 
> file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-SNAPSHOT.war.
> I am using windows XP and Maven version: 2.0.4.
> I am not sure what I am doing wrong?
> I am getting the following exception:
>
> Many thanks in advance.
>
> Maruf
>
> C:\baydonhill\customer>mvn -e cargo:deploy
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [INFO] 
> -------------------------------------------------------------------------
> ---
> [INFO] Building Baydonline webapp
> [INFO]    task-segment: [cargo:deploy]
> [INFO] 
> -------------------------------------------------------------------------
> ---
> [INFO] [cargo:deploy]
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to deploy to 
> [http://testcip:8080/jmx-console/HtmlAdaptor?action=i
> nvokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType 
>
> =java.net.URL&arg0=file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-S 
>
> NAPSHOT.war]
> Server returned HTTP response code: 500 for URL: 
> http://testcip:8080/jmx-console
> /HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&meth 
>
> odName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cbaydonhill%5Ccustomer%5Ctarg 
>
> et%5Cbaydonline-1.0-SNAPSHOT.war
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.codehaus.cargo.container.ContainerException: Failed to deploy to 
> [http://tes
> tcip:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:servic 
>
> e%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cbaydonh 
>
> ill%5Ccustomer%5Ctarget%5Cbaydonline-1.0-SNAPSHOT.war]
>        at 
> org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.conn
> ect(JdkHttpURLConnection.java:57)
>        at 
> org.codehaus.cargo.container.jboss.JBossJMXDeployer.invokeURL(JBossJM
> XDeployer.java:154)
>        at 
> org.codehaus.cargo.container.jboss.JBossJMXDeployer.deploy(JBossJMXDe
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org