Uploaded image for project: 'Codehaus Cargo'
  1. Codehaus Cargo
  2. CARGO-962

Cargo Ant Tasks do not support any action with the remote containers


    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.6
    • Fix Version/s: 1.1.0
    • Component/s: ANT
    • Labels:


      Full thread on: http://old.nabble.com/Remote-Tomcat-deployment-via-Cargo-Ant-Task-to31336978.html

      I was trying to deploy a WAR file using the Cargo Ant task version 1.0.6 to a
      remote Tomcat server. As far as I can see from the documentation I have to
      set the container type to remote and the configuration type to runtime.
      However, when I run it I get the following error message:

      You must specify either a [home] attribute pointing to the location where
      the Tomcat 6.x Remote is installed, or a nested [zipurlinstaller] element

      This error message doesn't quite make sense to me because I don't want to
      set the home (it sits on a different server) and I don't want to download
      Tomcat from an URL (zipurlinstaller) because I already have an installation
      on my server. I thought using the type remote would prevent having to choose
      between home and zipurlinstaller. Am I missing a specific parameter here?

      Here's my Ant code:

      <taskdef resource="cargo.tasks">
      <pathelement location="${cargo-uberjar}"/>
      <pathelement location="${cargo-antjar}"/>
      <target name="cargostart" depends="war">
      <cargo containerId="tomcat6x" type="remote" action="start" wait="false">
      <configuration type="runtime">
      <property name="cargo.tomcat.manager.url"
      <property name="cargo.remote.username" value="username"/>
      <property name="cargo.remote.password" value="password"/>
      <deployable type="war" file="${mywarfile}"/>



          There are no comments yet on this issue.


            • Assignee:
              savasalitokmen Savas Ali Tokmen
              savasalitokmen Savas Ali Tokmen
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: