Maven/Cargo/Tomcat

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

Maven/Cargo/Tomcat

by Tom Purcell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello
    I want to deploy a war built by Maven to a tomcat server. I'm trying to use cargo but I get the following:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building wile-www
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create configuration for the parameters (container [id = [tomcat5x], type = [remote]], configuration type [runtime]).
The configuration home parameter should not be specified for runtime configurations
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Failed to create configuration for the parameters (container [id = [tomcat5x], type = [remote]], configuration type [runtime]).
    at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
    at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)....


    This is, of course, not what I hoped for. What follows is the <build> from my pom. It says "<version>1.0-alpha-3</version>" but I tried with 0.3.1 and got the same thing. Any thoughts?

Thanks
Tom

  <build>
    <finalName>wile</finalName>
    <filters>
      <filter>src/main/filters/${wile.filter.properties}</filter>
    </filters>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <filters>
            <filter>src/main/filters/${wile.filter.properties}</filter>
          </filters>
          <webResources>
            <webResource>
              <directory>${basedir}/src/main/webapp/WEB-INF</directory>
              <includes>
                <include>beans.xml</include>
                <include>web.xml</include>
              </includes><version>1.0-alpha-3</version>
              <targetPath>WEB-INF</targetPath>
              <filtering>true</filtering>
            </webResource>
          </webResources>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.0-alpha-3</version>
        <executions>
          <execution>
            <id>verify-deploy</id>
            <phase>install</phase>
            <goals>
              <goal>deployer-deploy</goal>
            </goals>
          </execution>
          <execution>
            <id>clean-undeploy</id>
            <phase>pre-clean</phase>
            <goals>
              <goal>deployer-undeploy</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <!-- Container Configuration -->
          <container>
            <containerId>tomcat5x</containerId>
            <type>remote</type>
          </container>
          <!-- Configuration to use with the container -->
          <configuration>
            <type>runtime</type>
            <properties>
              <cargo.tomcat.manager.url>http://localhost:8080/manager</cargo.tomcat.manager.url>
              <cargo.remote.username>tomcat</cargo.remote.username>
              <cargo.remote.password>tomcat</cargo.remote.password>
            </properties>
          </configuration>
          <!-- Deployer and Deployables configuration -->
          <deployer>
            <type>remote</type>
            <deployables>
              <deployable>
                <groupId>com.sungard.wile</groupId>
                <artifactId>wile-www</artifactId>
                <type>war</type>
                <pingURL>http://localhost:8080/wile</pingURL>
              </deployable>
            </deployables>
          </deployer>
        </configuration>
      </plugin>
    </plugins>
  </build

Re: Maven/Cargo/Tomcat

by Tom Purcell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay
So I turned on debug and this is what I got:

[DEBUG] Configuring mojo 'org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-3:deployer-undeploy' -->
[DEBUG]   (s) home = /data/sungard/trunk/wile-www/target/tomcat
[DEBUG]   (s) properties = {cargo.logging=low, cargo.remote.password=admin, cargo.remote.username=admin, cargo.servlet.port=8080, cargo.tomcat.manager.url=http://localhost:8080/manager}
[DEBUG]   (f) configuration = org.codehaus.cargo.maven2.configuration.Configuration@1ff5c98
[DEBUG]   (s) home = /usr/local/tomcat
[DEBUG]   (s) containerId = tomcat5x
[DEBUG]   (f) type = remote
[DEBUG]   (f) container = org.codehaus.cargo.maven2.configuration.Container@7ec028
[DEBUG]   (s) type = remote
[DEBUG]   (s) groupId = com.sungard.wile
[DEBUG]   (s) artifactId = wile-www
[DEBUG]   (s) type = war
[DEBUG]   (f) pingURL = http://localhost:8080/wile
[DEBUG]   (f) deployables = [Lorg.codehaus.cargo.maven2.configuration.Deployable;@13c33b7
[DEBUG]   (f) deployer = org.codehaus.cargo.maven2.configuration.Deployer@16752c9
[DEBUG]   (f) localRepository = [local] -> file:///home/tpurcell/.m2/repository
[DEBUG]   (f) project = MavenProject: com.sungard.wile:wile-www:0.0.3 @ /data/sungard/trunk/wile-www/pom.xml
[DEBUG]   (f) repositories = [[apache-snapshots] -> http://people.apache.org/repo/m2-snapshot-repository/, [bigdevsun] -> http://216.203.1.133/maven2/repository/, [java.net] -> http://download.java.net/maven/1, [ibiblio] -> http://mirrors.ibiblio.org/pub/mirrors/maven2, [maven2-repository.dev.java.net] -> http://download.java.net/maven/2/, [jboss-repo] -> http://repository.jboss.com/maven2/, [apache-incubating] -> http://people.apache.org/repo/m2-incubating-repository, [central] -> http://repo1.maven.org/maven2]
[DEBUG] -- end configuration --
[INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat5x], type = [remote]], configuration type [standalone]). Valid types for this configuration are:
  - runtime
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.codehaus.cargo.container.ContainerException: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat5x], type = [remote]], configuration type [standalone]). Valid types for this configuration are:
  - runtime
        at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:143)
        at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)
        at org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.createConfiguration(DefaultConfigurationFactory.java:231)
        at org.codehaus.cargo.maven2.configuration.Configuration.createConfiguration(Configuration.java:145)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.createConfiguration(AbstractCargoMojo.java:292)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:399)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:339)
        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:44)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:585)
        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 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:585)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

Note that "home" gets set twice (home = /data/sungard/trunk/wile-www/target/tomcat and home = /usr/local/tomcat). Neither of these are correct locations for tomcat home and there is nowhere in the pom where I set them. So I tried adding <home></home> on the <configuration> and <container> tags to try and override what is being set erroneously but I get the same debug output and error.

Any thoughts?

Thanks
Tom




Tom Purcell wrote:
Hello
    I want to deploy a war built by Maven to a tomcat server. I'm trying to use cargo but I get the following:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building wile-www
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create configuration for the parameters (container [id = [tomcat5x], type = [remote]], configuration type [runtime]).
The configuration home parameter should not be specified for runtime configurations
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Failed to create configuration for the parameters (container [id = [tomcat5x], type = [remote]], configuration type [runtime]).
    at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
    at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)....


    This is, of course, not what I hoped for. What follows is the <build> from my pom. It says "<version>1.0-alpha-3</version>" but I tried with 0.3.1 and got the same thing. Any thoughts?

Thanks
Tom

  <build>
    <finalName>wile</finalName>
    <filters>
      <filter>src/main/filters/${wile.filter.properties}</filter>
    </filters>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <filters>
            <filter>src/main/filters/${wile.filter.properties}</filter>
          </filters>
          <webResources>
            <webResource>
              <directory>${basedir}/src/main/webapp/WEB-INF</directory>
              <includes>
                <include>beans.xml</include>
                <include>web.xml</include>
              </includes><version>1.0-alpha-3</version>
              <targetPath>WEB-INF</targetPath>
              <filtering>true</filtering>
            </webResource>
          </webResources>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.0-alpha-3</version>
        <executions>
          <execution>
            <id>verify-deploy</id>
            <phase>install</phase>
            <goals>
              <goal>deployer-deploy</goal>
            </goals>
          </execution>
          <execution>
            <id>clean-undeploy</id>
            <phase>pre-clean</phase>
            <goals>
              <goal>deployer-undeploy</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <!-- Container Configuration -->
          <container>
            <containerId>tomcat5x</containerId>
            <type>remote</type>
          </container>
          <!-- Configuration to use with the container -->
          <configuration>
            <type>runtime</type>
            <properties>
              <cargo.tomcat.manager.url>http://localhost:8080/manager</cargo.tomcat.manager.url>
              <cargo.remote.username>tomcat</cargo.remote.username>
              <cargo.remote.password>tomcat</cargo.remote.password>
            </properties>
          </configuration>
          <!-- Deployer and Deployables configuration -->
          <deployer>
            <type>remote</type>
            <deployables>
              <deployable>
                <groupId>com.sungard.wile</groupId>
                <artifactId>wile-www</artifactId>
                <type>war</type>
                <pingURL>http://localhost:8080/wile</pingURL>
              </deployable>
            </deployables>
          </deployer>
        </configuration>
      </plugin>
    </plugins>
  </build

Re: Maven/Cargo/Tomcat

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2008-06-18 at 12:40 -0700, Tom Purcell wrote:

> Okay
> So I turned on debug and this is what I got:
>
> [DEBUG] Configuring mojo
> 'org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-3:deployer-undeploy' -->
> [DEBUG]   (s) home = /data/sungard/trunk/wile-www/target/tomcat
> [DEBUG]   (s) properties = {cargo.logging=low, cargo.remote.password=admin,
> cargo.remote.username=admin, cargo.servlet.port=8080,
> cargo.tomcat.manager.url=http://localhost:8080/manager}
> [DEBUG]   (f) configuration =
> org.codehaus.cargo.maven2.configuration.Configuration@1ff5c98
> [DEBUG]   (s) home = /usr/local/tomcat
> [DEBUG]   (s) containerId = tomcat5x
> [DEBUG]   (f) type = remote
> [DEBUG]   (f) container =
> org.codehaus.cargo.maven2.configuration.Container@7ec028
> [DEBUG]   (s) type = remote
> [DEBUG]   (s) groupId = com.sungard.wile
> [DEBUG]   (s) artifactId = wile-www
> [DEBUG]   (s) type = war
> [DEBUG]   (f) pingURL = http://localhost:8080/wile
> [DEBUG]   (f) deployables =
> [Lorg.codehaus.cargo.maven2.configuration.Deployable;@13c33b7
> [DEBUG]   (f) deployer =
> org.codehaus.cargo.maven2.configuration.Deployer@16752c9
> [DEBUG]   (f) localRepository = [local] ->
> file:///home/tpurcell/.m2/repository
> [DEBUG]   (f) project = MavenProject: com.sungard.wile:wile-www:0.0.3 @
> /data/sungard/trunk/wile-www/pom.xml
> [DEBUG]   (f) repositories = [[apache-snapshots] ->
> http://people.apache.org/repo/m2-snapshot-repository/, [bigdevsun] ->
> http://216.203.1.133/maven2/repository/, [java.net] ->
> http://download.java.net/maven/1, [ibiblio] ->
> http://mirrors.ibiblio.org/pub/mirrors/maven2,
> [maven2-repository.dev.java.net] -> http://download.java.net/maven/2/,
> [jboss-repo] -> http://repository.jboss.com/maven2/, [apache-incubating] ->
> http://people.apache.org/repo/m2-incubating-repository, [central] ->
> http://repo1.maven.org/maven2]
> [DEBUG] -- end configuration --
> [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot create configuration. There's no registered configuration for
> the parameters (container [id = [tomcat5x], type = [remote]], configuration
> type [standalone]). Valid types for this configuration are:
>   - runtime
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.codehaus.cargo.container.ContainerException: Cannot create
> configuration. There's no registered configuration for the parameters
> (container [id = [tomcat5x], type = [remote]], configuration type
> [standalone]). Valid types for this configuration are:
>   - runtime
> at
> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:143)
> at
> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)
> at
> org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.createConfiguration(DefaultConfigurationFactory.java:231)
> at
> org.codehaus.cargo.maven2.configuration.Configuration.createConfiguration(Configuration.java:145)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createConfiguration(AbstractCargoMojo.java:292)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:399)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:339)
> at
> org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:44)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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:585)
> 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 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:585)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>
> Note that "home" gets set twice (home =
> /data/sungard/trunk/wile-www/target/tomcat and home = /usr/local/tomcat).
> Neither of these are correct locations for tomcat home and there is nowhere
> in the pom where I set them. So I tried adding <home></home> on the
> <configuration> and <container> tags to try and override what is being set
> erroneously but I get the same debug output and error.
>
> Any thoughts?

I have looked over your pom.xml file and it seems fine. I don't know
exactly why this is happening.

I will look into it and let you know.

>
> Thanks
> Tom
>
>
>
>
>
> Tom Purcell wrote:
> >
> > Hello
> >     I want to deploy a war built by Maven to a tomcat server. I'm trying
> > to use cargo but I get the following:
> >
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building wile-www
> > [INFO]    task-segment: [clean, install]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to create configuration for the parameters (container [id =
> > [tomcat5x], type = [remote]], configuration type [runtime]).
> > The configuration home parameter should not be specified for runtime
> > configurations
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.codehaus.cargo.container.ContainerException: Failed to create
> > configuration for the parameters (container [id = [tomcat5x], type =
> > [remote]], configuration type [runtime]).
> >     at
> > org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
> >     at
> > org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)....
> >
> >
> >     This is, of course, not what I hoped for. What follows is the <build>
> > from my pom. It says "<version>1.0-alpha-3</version>" but I tried with
> > 0.3.1 and got the same thing. Any thoughts?
> >
> > Thanks
> > Tom
> >
> >   <build>
> >     <finalName>wile</finalName>
> >     <filters>
> >       <filter>src/main/filters/${wile.filter.properties}</filter>
> >     </filters>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-war-plugin</artifactId>
> >         <configuration>
> >           <filters>
> >             <filter>src/main/filters/${wile.filter.properties}</filter>
> >           </filters>
> >           <webResources>
> >             <webResource>
> >               <directory>${basedir}/src/main/webapp/WEB-INF</directory>
> >               <includes>
> >                 <include>beans.xml</include>
> >                 <include>web.xml</include>
> >               </includes><version>1.0-alpha-3</version>
> >               <targetPath>WEB-INF</targetPath>
> >               <filtering>true</filtering>
> >             </webResource>
> >           </webResources>
> >         </configuration>
> >       </plugin>
> >       <plugin>
> >         <groupId>org.codehaus.cargo</groupId>
> >         <artifactId>cargo-maven2-plugin</artifactId>
> >         <version>1.0-alpha-3</version>
> >         <executions>
> >           <execution>
> >             <id>verify-deploy</id>
> >             <phase>install</phase>
> >             <goals>
> >               <goal>deployer-deploy</goal>
> >             </goals>
> >           </execution>
> >           <execution>
> >             <id>clean-undeploy</id>
> >             <phase>pre-clean</phase>
> >             <goals>
> >               <goal>deployer-undeploy</goal>
> >             </goals>
> >           </execution>
> >         </executions>
> >         <configuration>
> >           <!-- Container Configuration -->
> >           <container>
> >             <containerId>tomcat5x</containerId>
> >             <type>remote</type>
> >           </container>
> >           <!-- Configuration to use with the container -->
> >           <configuration>
> >             <type>runtime</type>
> >             <properties>
> >              
> > <cargo.tomcat.manager.url>http://localhost:8080/manager</cargo.tomcat.manager.url>
> >               <cargo.remote.username>tomcat</cargo.remote.username>
> >               <cargo.remote.password>tomcat</cargo.remote.password>
> >             </properties>
> >           </configuration>
> >           <!-- Deployer and Deployables configuration -->
> >           <deployer>
> >             <type>remote</type>
> >             <deployables>
> >               <deployable>
> >                 <groupId>com.sungard.wile</groupId>
> >                 <artifactId>wile-www</artifactId>
> >                 <type>war</type>
> >                 <pingURL>http://localhost:8080/wile</pingURL>
> >               </deployable>
> >             </deployables>
> >           </deployer>
> >         </configuration>
> >       </plugin>
> >     </plugins>
> >   </build
> >
> >
>


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

    http://xircles.codehaus.org/manage_email



Re: Maven/Cargo/Tomcat

by Tom Purcell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Matt

Matt Wringe wrote:
On Wed, 2008-06-18 at 12:40 -0700, Tom Purcell wrote:
> Okay
> So I turned on debug and this is what I got:
>
> [DEBUG] Configuring mojo
> 'org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-3:deployer-undeploy' -->
> [DEBUG]   (s) home = /data/sungard/trunk/wile-www/target/tomcat
> [DEBUG]   (s) properties = {cargo.logging=low, cargo.remote.password=admin,
> cargo.remote.username=admin, cargo.servlet.port=8080,
> cargo.tomcat.manager.url=http://localhost:8080/manager}
> [DEBUG]   (f) configuration =
> org.codehaus.cargo.maven2.configuration.Configuration@1ff5c98
> [DEBUG]   (s) home = /usr/local/tomcat
> [DEBUG]   (s) containerId = tomcat5x
> [DEBUG]   (f) type = remote
> [DEBUG]   (f) container =
> org.codehaus.cargo.maven2.configuration.Container@7ec028
> [DEBUG]   (s) type = remote
> [DEBUG]   (s) groupId = com.sungard.wile
> [DEBUG]   (s) artifactId = wile-www
> [DEBUG]   (s) type = war
> [DEBUG]   (f) pingURL = http://localhost:8080/wile
> [DEBUG]   (f) deployables =
> [Lorg.codehaus.cargo.maven2.configuration.Deployable;@13c33b7
> [DEBUG]   (f) deployer =
> org.codehaus.cargo.maven2.configuration.Deployer@16752c9
> [DEBUG]   (f) localRepository = [local] ->
> file:///home/tpurcell/.m2/repository
> [DEBUG]   (f) project = MavenProject: com.sungard.wile:wile-www:0.0.3 @
> /data/sungard/trunk/wile-www/pom.xml
> [DEBUG]   (f) repositories = [[apache-snapshots] ->
> http://people.apache.org/repo/m2-snapshot-repository/, [bigdevsun] ->
> http://216.203.1.133/maven2/repository/, [java.net] ->
> http://download.java.net/maven/1, [ibiblio] ->
> http://mirrors.ibiblio.org/pub/mirrors/maven2,
> [maven2-repository.dev.java.net] -> http://download.java.net/maven/2/,
> [jboss-repo] -> http://repository.jboss.com/maven2/, [apache-incubating] ->
> http://people.apache.org/repo/m2-incubating-repository, [central] ->
> http://repo1.maven.org/maven2]
> [DEBUG] -- end configuration --
> [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot create configuration. There's no registered configuration for
> the parameters (container [id = [tomcat5x], type = [remote]], configuration
> type [standalone]). Valid types for this configuration are:
>   - runtime
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.codehaus.cargo.container.ContainerException: Cannot create
> configuration. There's no registered configuration for the parameters
> (container [id = [tomcat5x], type = [remote]], configuration type
> [standalone]). Valid types for this configuration are:
>   - runtime
> at
> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:143)
> at
> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)
> at
> org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.createConfiguration(DefaultConfigurationFactory.java:231)
> at
> org.codehaus.cargo.maven2.configuration.Configuration.createConfiguration(Configuration.java:145)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createConfiguration(AbstractCargoMojo.java:292)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:399)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:339)
> at
> org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:44)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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:585)
> 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 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:585)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>
> Note that "home" gets set twice (home =
> /data/sungard/trunk/wile-www/target/tomcat and home = /usr/local/tomcat).
> Neither of these are correct locations for tomcat home and there is nowhere
> in the pom where I set them. So I tried adding <home></home> on the
> <configuration> and <container> tags to try and override what is being set
> erroneously but I get the same debug output and error.
>
> Any thoughts?

I have looked over your pom.xml file and it seems fine. I don't know
exactly why this is happening.

I will look into it and let you know.

>
> Thanks
> Tom
>
>
>
>
>
> Tom Purcell wrote:
> >
> > Hello
> >     I want to deploy a war built by Maven to a tomcat server. I'm trying
> > to use cargo but I get the following:
> >
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building wile-www
> > [INFO]    task-segment: [clean, install]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to create configuration for the parameters (container [id =
> > [tomcat5x], type = [remote]], configuration type [runtime]).
> > The configuration home parameter should not be specified for runtime
> > configurations
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.codehaus.cargo.container.ContainerException: Failed to create
> > configuration for the parameters (container [id = [tomcat5x], type =
> > [remote]], configuration type [runtime]).
> >     at
> > org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
> >     at
> > org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)....
> >
> >
> >     This is, of course, not what I hoped for. What follows is the <build>
> > from my pom. It says "<version>1.0-alpha-3</version>" but I tried with
> > 0.3.1 and got the same thing. Any thoughts?
> >
> > Thanks
> > Tom
> >
> >   <build>
> >     <finalName>wile</finalName>
> >     <filters>
> >       <filter>src/main/filters/${wile.filter.properties}</filter>
> >     </filters>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-war-plugin</artifactId>
> >         <configuration>
> >           <filters>
> >             <filter>src/main/filters/${wile.filter.properties}</filter>
> >           </filters>
> >           <webResources>
> >             <webResource>
> >               <directory>${basedir}/src/main/webapp/WEB-INF</directory>
> >               <includes>
> >                 <include>beans.xml</include>
> >                 <include>web.xml</include>
> >               </includes><version>1.0-alpha-3</version>
> >               <targetPath>WEB-INF</targetPath>
> >               <filtering>true</filtering>
> >             </webResource>
> >           </webResources>
> >         </configuration>
> >       </plugin>
> >       <plugin>
> >         <groupId>org.codehaus.cargo</groupId>
> >         <artifactId>cargo-maven2-plugin</artifactId>
> >         <version>1.0-alpha-3</version>
> >         <executions>
> >           <execution>
> >             <id>verify-deploy</id>
> >             <phase>install</phase>
> >             <goals>
> >               <goal>deployer-deploy</goal>
> >             </goals>
> >           </execution>
> >           <execution>
> >             <id>clean-undeploy</id>
> >             <phase>pre-clean</phase>
> >             <goals>
> >               <goal>deployer-undeploy</goal>
> >             </goals>
> >           </execution>
> >         </executions>
> >         <configuration>
> >           <!-- Container Configuration -->
> >           <container>
> >             <containerId>tomcat5x</containerId>
> >             <type>remote</type>
> >           </container>
> >           <!-- Configuration to use with the container -->
> >           <configuration>
> >             <type>runtime</type>
> >             <properties>
> >              
> > <cargo.tomcat.manager.url>http://localhost:8080/manager</cargo.tomcat.manager.url>
> >               <cargo.remote.username>tomcat</cargo.remote.username>
> >               <cargo.remote.password>tomcat</cargo.remote.password>
> >             </properties>
> >           </configuration>
> >           <!-- Deployer and Deployables configuration -->
> >           <deployer>
> >             <type>remote</type>
> >             <deployables>
> >               <deployable>
> >                 <groupId>com.sungard.wile</groupId>
> >                 <artifactId>wile-www</artifactId>
> >                 <type>war</type>
> >                 <pingURL>http://localhost:8080/wile</pingURL>
> >               </deployable>
> >             </deployables>
> >           </deployer>
> >         </configuration>
> >       </plugin>
> >     </plugins>
> >   </build
> >
> >
>


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

    http://xircles.codehaus.org/manage_email


Re: Maven/Cargo/Tomcat

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2008-06-18 at 13:08 -0700, Tom Purcell wrote:
> Thanks, Matt

What exact command are you running?

When I do 'mvn clean install' on something very similar to what you have
posted, I don't have any issue.


>
> Matt Wringe wrote:
> >
> >
> > On Wed, 2008-06-18 at 12:40 -0700, Tom Purcell wrote:
> >> Okay
> >> So I turned on debug and this is what I got:
> >>
> >> [DEBUG] Configuring mojo
> >> 'org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-3:deployer-undeploy'
> >> -->
> >> [DEBUG]   (s) home = /data/sungard/trunk/wile-www/target/tomcat
> >> [DEBUG]   (s) properties = {cargo.logging=low,
> >> cargo.remote.password=admin,
> >> cargo.remote.username=admin, cargo.servlet.port=8080,
> >> cargo.tomcat.manager.url=http://localhost:8080/manager}
> >> [DEBUG]   (f) configuration =
> >> org.codehaus.cargo.maven2.configuration.Configuration@1ff5c98
> >> [DEBUG]   (s) home = /usr/local/tomcat
> >> [DEBUG]   (s) containerId = tomcat5x
> >> [DEBUG]   (f) type = remote
> >> [DEBUG]   (f) container =
> >> org.codehaus.cargo.maven2.configuration.Container@7ec028
> >> [DEBUG]   (s) type = remote
> >> [DEBUG]   (s) groupId = com.sungard.wile
> >> [DEBUG]   (s) artifactId = wile-www
> >> [DEBUG]   (s) type = war
> >> [DEBUG]   (f) pingURL = http://localhost:8080/wile
> >> [DEBUG]   (f) deployables =
> >> [Lorg.codehaus.cargo.maven2.configuration.Deployable;@13c33b7
> >> [DEBUG]   (f) deployer =
> >> org.codehaus.cargo.maven2.configuration.Deployer@16752c9
> >> [DEBUG]   (f) localRepository = [local] ->
> >> file:///home/tpurcell/.m2/repository
> >> [DEBUG]   (f) project = MavenProject: com.sungard.wile:wile-www:0.0.3 @
> >> /data/sungard/trunk/wile-www/pom.xml
> >> [DEBUG]   (f) repositories = [[apache-snapshots] ->
> >> http://people.apache.org/repo/m2-snapshot-repository/, [bigdevsun] ->
> >> http://216.203.1.133/maven2/repository/, [java.net] ->
> >> http://download.java.net/maven/1, [ibiblio] ->
> >> http://mirrors.ibiblio.org/pub/mirrors/maven2,
> >> [maven2-repository.dev.java.net] -> http://download.java.net/maven/2/,
> >> [jboss-repo] -> http://repository.jboss.com/maven2/, [apache-incubating]
> >> ->
> >> http://people.apache.org/repo/m2-incubating-repository, [central] ->
> >> http://repo1.maven.org/maven2]
> >> [DEBUG] -- end configuration --
> >> [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] FATAL ERROR
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Cannot create configuration. There's no registered configuration
> >> for
> >> the parameters (container [id = [tomcat5x], type = [remote]],
> >> configuration
> >> type [standalone]). Valid types for this configuration are:
> >>   - runtime
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [DEBUG] Trace
> >> org.codehaus.cargo.container.ContainerException: Cannot create
> >> configuration. There's no registered configuration for the parameters
> >> (container [id = [tomcat5x], type = [remote]], configuration type
> >> [standalone]). Valid types for this configuration are:
> >>   - runtime
> >> at
> >> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:143)
> >> at
> >> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)
> >> at
> >> org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.createConfiguration(DefaultConfigurationFactory.java:231)
> >> at
> >> org.codehaus.cargo.maven2.configuration.Configuration.createConfiguration(Configuration.java:145)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createConfiguration(AbstractCargoMojo.java:292)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:399)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:339)
> >> at
> >> org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:44)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
> >> at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> >> 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:585)
> >> 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 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:585)
> >> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> >>
> >> Note that "home" gets set twice (home =
> >> /data/sungard/trunk/wile-www/target/tomcat and home = /usr/local/tomcat).
> >> Neither of these are correct locations for tomcat home and there is
> >> nowhere
> >> in the pom where I set them. So I tried adding <home></home> on the
> >> <configuration> and <container> tags to try and override what is being
> >> set
> >> erroneously but I get the same debug output and error.
> >>
> >> Any thoughts?
> >
> > I have looked over your pom.xml file and it seems fine. I don't know
> > exactly why this is happening.
> >
> > I will look into it and let you know.
> >
> >>
> >> Thanks
> >> Tom
> >>
> >>
> >>
> >>
> >>
> >> Tom Purcell wrote:
> >> >
> >> > Hello
> >> >     I want to deploy a war built by Maven to a tomcat server. I'm
> >> trying
> >> > to use cargo but I get the following:
> >> >
> >> > [INFO] Scanning for projects...
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] Building wile-www
> >> > [INFO]    task-segment: [clean, install]
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [ERROR] FATAL ERROR
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] Failed to create configuration for the parameters (container [id
> >> =
> >> > [tomcat5x], type = [remote]], configuration type [runtime]).
> >> > The configuration home parameter should not be specified for runtime
> >> > configurations
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] Trace
> >> > org.codehaus.cargo.container.ContainerException: Failed to create
> >> > configuration for the parameters (container [id = [tomcat5x], type =
> >> > [remote]], configuration type [runtime]).
> >> >     at
> >> >
> >> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
> >> >     at
> >> >
> >> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)....
> >> >
> >> >
> >> >     This is, of course, not what I hoped for. What follows is the
> >> <build>
> >> > from my pom. It says "<version>1.0-alpha-3</version>" but I tried with
> >> > 0.3.1 and got the same thing. Any thoughts?
> >> >
> >> > Thanks
> >> > Tom
> >> >
> >> >   <build>
> >> >     <finalName>wile</finalName>
> >> >     <filters>
> >> >       <filter>src/main/filters/${wile.filter.properties}</filter>
> >> >     </filters>
> >> >     <plugins>
> >> >       <plugin>
> >> >         <groupId>org.apache.maven.plugins</groupId>
> >> >         <artifactId>maven-war-plugin</artifactId>
> >> >         <configuration>
> >> >           <filters>
> >> >             <filter>src/main/filters/${wile.filter.properties}</filter>
> >> >           </filters>
> >> >           <webResources>
> >> >             <webResource>
> >> >               <directory>${basedir}/src/main/webapp/WEB-INF</directory>
> >> >               <includes>
> >> >                 <include>beans.xml</include>
> >> >                 <include>web.xml</include>
> >> >               </includes><version>1.0-alpha-3</version>
> >> >               <targetPath>WEB-INF</targetPath>
> >> >               <filtering>true</filtering>
> >> >             </webResource>
> >> >           </webResources>
> >> >         </configuration>
> >> >       </plugin>
> >> >       <plugin>
> >> >         <groupId>org.codehaus.cargo</groupId>
> >> >         <artifactId>cargo-maven2-plugin</artifactId>
> >> >         <version>1.0-alpha-3</version>
> >> >         <executions>
> >> >           <execution>
> >> >             <id>verify-deploy</id>
> >> >             <phase>install</phase>
> >> >             <goals>
> >> >               <goal>deployer-deploy</goal>
> >> >             </goals>
> >> >           </execution>
> >> >           <execution>
> >> >             <id>clean-undeploy</id>
> >> >             <phase>pre-clean</phase>
> >> >             <goals>
> >> >               <goal>deployer-undeploy</goal>
> >> >             </goals>
> >> >           </execution>
> >> >         </executions>
> >> >         <configuration>
> >> >           <!-- Container Configuration -->
> >> >           <container>
> >> >             <containerId>tomcat5x</containerId>
> >> >             <type>remote</type>
> >> >           </container>
> >> >           <!-- Configuration to use with the container -->
> >> >           <configuration>
> >> >             <type>runtime</type>
> >> >             <properties>
> >> >              
> >> >
> >> <cargo.tomcat.manager.url>http://localhost:8080/manager</cargo.tomcat.manager.url>
> >> >               <cargo.remote.username>tomcat</cargo.remote.username>
> >> >               <cargo.remote.password>tomcat</cargo.remote.password>
> >> >             </properties>
> >> >           </configuration>
> >> >           <!-- Deployer and Deployables configuration -->
> >> >           <deployer>
> >> >             <type>remote</type>
> >> >             <deployables>
> >> >               <deployable>
> >> >                 <groupId>com.sungard.wile</groupId>
> >> >                 <artifactId>wile-www</artifactId>
> >> >                 <type>war</type>
> >> >                 <pingURL>http://localhost:8080/wile</pingURL>
> >> >               </deployable>
> >> >             </deployables>
> >> >           </deployer>
> >> >         </configuration>
> >> >       </plugin>
> >> >     </plugins>
> >> >   </build
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > 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: Maven/Cargo/Tomcat

by Tom Purcell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matt

I'm doing an 'mvn clean install' as well. There is a parent pom involved but I get the same result regardless if I build from the parent or the child. I also tried both from my IDE(intellij) and from the command line and got the same result.

I don't understand the error:
   The configuration home parameter should not be specified for runtime configurations  

What is the "configuration home parameter" it is talking about? I'm not specifying it in my pom. Is it possibly picking up an environmental variable?

Additional info I'm running Maven 2.0.9 and Tomcat 5.5.26. I also tried with Tomcat 6.0.16 with the same results.

Thanks
Tom
Matt Wringe wrote:
On Wed, 2008-06-18 at 13:08 -0700, Tom Purcell wrote:
> Thanks, Matt

What exact command are you running?

When I do 'mvn clean install' on something very similar to what you have
posted, I don't have any issue.


>
> Matt Wringe wrote:
> >
> >
> > On Wed, 2008-06-18 at 12:40 -0700, Tom Purcell wrote:
> >> Okay
> >> So I turned on debug and this is what I got:
> >>
> >> [DEBUG] Configuring mojo
> >> 'org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-3:deployer-undeploy'
> >> -->
> >> [DEBUG]   (s) home = /data/sungard/trunk/wile-www/target/tomcat
> >> [DEBUG]   (s) properties = {cargo.logging=low,
> >> cargo.remote.password=admin,
> >> cargo.remote.username=admin, cargo.servlet.port=8080,
> >> cargo.tomcat.manager.url=http://localhost:8080/manager}
> >> [DEBUG]   (f) configuration =
> >> org.codehaus.cargo.maven2.configuration.Configuration@1ff5c98
> >> [DEBUG]   (s) home = /usr/local/tomcat
> >> [DEBUG]   (s) containerId = tomcat5x
> >> [DEBUG]   (f) type = remote
> >> [DEBUG]   (f) container =
> >> org.codehaus.cargo.maven2.configuration.Container@7ec028
> >> [DEBUG]   (s) type = remote
> >> [DEBUG]   (s) groupId = com.sungard.wile
> >> [DEBUG]   (s) artifactId = wile-www
> >> [DEBUG]   (s) type = war
> >> [DEBUG]   (f) pingURL = http://localhost:8080/wile
> >> [DEBUG]   (f) deployables =
> >> [Lorg.codehaus.cargo.maven2.configuration.Deployable;@13c33b7
> >> [DEBUG]   (f) deployer =
> >> org.codehaus.cargo.maven2.configuration.Deployer@16752c9
> >> [DEBUG]   (f) localRepository = [local] ->
> >> file:///home/tpurcell/.m2/repository
> >> [DEBUG]   (f) project = MavenProject: com.sungard.wile:wile-www:0.0.3 @
> >> /data/sungard/trunk/wile-www/pom.xml
> >> [DEBUG]   (f) repositories = [[apache-snapshots] ->
> >> http://people.apache.org/repo/m2-snapshot-repository/, [bigdevsun] ->
> >> http://216.203.1.133/maven2/repository/, [java.net] ->
> >> http://download.java.net/maven/1, [ibiblio] ->
> >> http://mirrors.ibiblio.org/pub/mirrors/maven2,
> >> [maven2-repository.dev.java.net] -> http://download.java.net/maven/2/,
> >> [jboss-repo] -> http://repository.jboss.com/maven2/, [apache-incubating]
> >> ->
> >> http://people.apache.org/repo/m2-incubating-repository, [central] ->
> >> http://repo1.maven.org/maven2]
> >> [DEBUG] -- end configuration --
> >> [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] FATAL ERROR
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Cannot create configuration. There's no registered configuration
> >> for
> >> the parameters (container [id = [tomcat5x], type = [remote]],
> >> configuration
> >> type [standalone]). Valid types for this configuration are:
> >>   - runtime
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [DEBUG] Trace
> >> org.codehaus.cargo.container.ContainerException: Cannot create
> >> configuration. There's no registered configuration for the parameters
> >> (container [id = [tomcat5x], type = [remote]], configuration type
> >> [standalone]). Valid types for this configuration are:
> >>   - runtime
> >> at
> >> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:143)
> >> at
> >> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:86)
> >> at
> >> org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.createConfiguration(DefaultConfigurationFactory.java:231)
> >> at
> >> org.codehaus.cargo.maven2.configuration.Configuration.createConfiguration(Configuration.java:145)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createConfiguration(AbstractCargoMojo.java:292)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:399)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:339)
> >> at
> >> org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:44)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
> >> at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> >> 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:585)
> >> 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 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:585)
> >> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> >>
> >> Note that "home" gets set twice (home =
> >> /data/sungard/trunk/wile-www/target/tomcat and home = /usr/local/tomcat).
> >> Neither of these are correct locations for tomcat home and there is
> >> nowhere
> >> in the pom where I set them. So I tried adding <home></home> on the
> >> <configuration> and <container> tags to try and override what is being
> >> set
> >> erroneously but I get the same debug output and error.
> >>
> >> Any thoughts?
> >
> > I have looked over your pom.xml file and it seems fine. I don't know
> > exactly why this is happening.
> >
> > I will look into it and let you know.
> >
> >>
> >> Thanks
> >> Tom
> >>
> >>
> >>
> >>
> >>
> >> Tom Purcell wrote:
> >> >
> >> > Hello
> >> >     I want to deploy a war built by Maven to a tomcat server. I'm
> >> trying
> >> > to use cargo but I get the following:
> >> >
> >> > [INFO] Scanning for projects...
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] Building wile-www
> >> > [INFO]    task-segment: [clean, install]
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] [cargo:deployer-undeploy {execution: clean-undeploy}]
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [ERROR] FATAL ERROR
> >> > [INFO]
> >> >
> >> ------------------------------------------------------------------------
> >> > [INFO] Failed to create configuration for the parameters (container [id
> >> =
> >> > [tomcat5x], type = [remote]], configuration type [runtime]).
> >> > The configuration home parameter should not be specified for r