title: org.codehaus.cargo.container.ContainerException: Cannot create deployable
body: <p>In maven pom file, my project packaging type is "jar" like bellow.</p>
  
  <pre><code>&lt;packaging&gt;jar&lt;/packaging&gt;
  </code></pre>
  
  <p>My cargo-maven2-plugin configuration in pom.xml file from the legacy code. I try to run it Eclipse Kelpler, but since the plugin configuration didn't mention cargo-maven2-plugin version(I don't know actual version for this configuration), Eclipse try to get the most recent one which is 1.4.8. Based on the configuration, the Tomcat version looks like 6.0.14, but container id is 5x. Whole configuration seems doesn't right and I try to make it work. Any suggestions? The package type must jar and I can't change it.</p>
  
  <pre><code>                &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
                      &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;wait&gt;${cargo.wait}&lt;/wait&gt;
                          &lt;container&gt;
                              &lt;containerId&gt;tomcat5x&lt;/containerId&gt;
                              &lt;zipUrlInstaller&gt;
                                  &lt;url&gt;
                                      http://archive.apache.org/dist/tomcat/tomcat-6/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip
                                  &lt;/url&gt;
                                  &lt;installDir&gt;${installDir}&lt;/installDir&gt;
                              &lt;/zipUrlInstaller&gt;
                          &lt;/container&gt;
                          &lt;configuration&gt;
                              &lt;home&gt;${project.build.directory}/tomcat5x/container&lt;/home&gt;
                              &lt;properties&gt;
                                  &lt;cargo.hostname&gt;${cargo.host}&lt;/cargo.hostname&gt;
                                  &lt;cargo.servlet.port&gt;${cargo.port}&lt;/cargo.servlet.port&gt;
                              &lt;/properties&gt;
                              &lt;deployables&gt;
                                  &lt;deployable&gt;
                                      &lt;properties&gt;
                                          &lt;context&gt;ROOT&lt;/context&gt;
                                      &lt;/properties&gt;
                                  &lt;/deployable&gt;
                              &lt;/deployables&gt;
                          &lt;/configuration&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;start-container&lt;/id&gt;
                              &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;start&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;stop-container&lt;/id&gt;
                              &lt;phase&gt;post-integration-test&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;stop&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;  
  
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  &lt;properties&gt;
      &lt;cargo.host&gt;localhost&lt;/cargo.host&gt;
      &lt;cargo.port&gt;25888&lt;/cargo.port&gt;
      &lt;cargo.wait&gt;false&lt;/cargo.wait&gt;
      &lt;tomcat.version&gt;6.0.14&lt;/tomcat.version&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I set type for  to "jar" to match project. But when I run maven build in Eclipse Kelper, I am getting following error message. As you can see there is no allowed type "jar" is listed. Could any one help?</p>
  
  <pre><code>org.codehaus.cargo.container.ContainerException: Cannot create deployable. There's no registered deployable for the parameters (container [id = [default]], deployable type [jar]). Valid types for this deployable are: 
    - ear
    - war
    - rar
    - bundle
    - file
    - sar
    - ejb
  </code></pre>