title: Tomcat Failed to start component using cargo maven
body: <p>I am trying to deploying a war file to tomcat, using cargo maven plugin on port 8080(which is free, I checked), I am getting <code>catalina.LifeCycleException: Failed to start component [Connector[AJP/1.3-auto-1]]</code> </p>
  
  <p><a href="https://i.stack.imgur.com/5x6Qn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5x6Qn.png" alt="Error Stack"></a></p>
  
  <p>It also says that port number entered is invalid, but in server.xml file the port is specified as : <code>&lt;Connector port="8080" protocol="HTTP/1.1"
                 connectionTimeout="20000"
                 redirectPort="8443" /&gt;</code> </p>
  
  <p>Am I missing some other configuration? </p>
  
  <p>Cargo Configurations:</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;version&gt;1.4.14&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;container&gt;
                      &lt;containerId&gt;tomcat8x&lt;/containerId&gt;
                      &lt;type&gt;installed&lt;/type&gt;
                      &lt;zipUrlInstaller&gt;
                          &lt;url&gt;http://repo.release.cerner.corp/external/repo/org/apache/tomcat/apache-tomcat/${apache.tomcat.version}/apache-tomcat-${apache.tomcat.version}.tar.gz&lt;/url&gt;
                      &lt;/zipUrlInstaller&gt;
                      &lt;dependencies&gt;
                          &lt;dependency&gt;
                              &lt;groupId&gt;com.oracle&lt;/groupId&gt;
                              &lt;artifactId&gt;ojdbc6&lt;/artifactId&gt;
                          &lt;/dependency&gt;
                      &lt;/dependencies&gt;
                      &lt;timeout&gt;300000&lt;/timeout&gt;
                  &lt;/container&gt;
                  &lt;configuration&gt;
                      &lt;configfiles&gt;
                          &lt;configfile&gt;
                              &lt;file&gt;${project.basedir}/src/test/resources/context/context.xml&lt;/file&gt;
                              &lt;todir&gt;conf&lt;/todir&gt;
                          &lt;/configfile&gt;
                      &lt;/configfiles&gt;
                      &lt;properties&gt;
                          &lt;cargo.servlet.port&gt;${apache.tomcat.servletPort}&lt;/cargo.servlet.port&gt;
                          &lt;cargo.rmi.port&gt;${apache.tomcat.rmiPort}&lt;/cargo.rmi.port&gt;
                          &lt;cargo.tomcat.ajp.port&gt;${apache.tomcat.ajpPort}&lt;/cargo.tomcat.ajp.port&gt;
                          &lt;cargo.logging&gt;low&lt;/cargo.logging&gt;
                          &lt;!--uncomment to enable debugging on the server--&gt;
                          &lt;!--&lt;cargo.jvmargs&gt; "-Xdebug" "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7998"--&gt;
                          &lt;!--&lt;/cargo.jvmargs&gt;--&gt;
                      &lt;/properties&gt;
                  &lt;/configuration&gt;
                  &lt;deployables&gt;
                      &lt;deployable&gt;
                          &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
                          &lt;artifactId&gt;sample-war&lt;/artifactId&gt;
                          &lt;type&gt;war&lt;/type&gt;
                          &lt;properties&gt;
                              &lt;context&gt;sample-war&lt;/context&gt;
                          &lt;/properties&gt;
                      &lt;/deployable&gt;
                  &lt;/deployables&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;start-container&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;start&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;stop-container&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;stop&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;phase&gt;post-integration-test&lt;/phase&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  </code></pre>