title: maven tomcat7:deploy fails with access denied
body: <p>I have a tomcat7. Access to manager app (http://localhost:7777/manager/html) works fine with the credentials defined in tomcat-users.xml.</p>
  
  <p>Now I want to deploy an application with maven3. I configured the tomcat maven plugin:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.0-beta-1&lt;/version&gt;
      &lt;configuration&gt;
          &lt;url&gt;http://localhost:7777/manager&lt;/url&gt;
          &lt;server&gt;localhost7777&lt;/server&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat6-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.0-beta-1&lt;/version&gt;
      &lt;configuration&gt;
          &lt;url&gt;http://localhost:7777/manager&lt;/url&gt;
          &lt;server&gt;localhost7777&lt;/server&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>In mavens setting.xml I added the entry for the server:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;servers&gt;
      &lt;server&gt;
          &lt;id&gt;localhost7777&lt;/id&gt;
          &lt;username&gt;manager&lt;/username&gt;
          &lt;password&gt;secret&lt;/password&gt;
      &lt;/server&gt;
  &lt;/servers&gt;
  </code></pre>
  
  <p>Now application will be build successful. But the goal tomcat7:deploy leads to a access denied error message from the tomcat:</p>
  
  <pre><code>...
  [INFO] Deploying war to http://localhost:7777/workload-monitor  
  Uploading: http://localhost:7777/manager/deploy?path=%2Fworkload-monitor&amp;update=true
  Uploaded: http://localhost:7777/manager/deploy?path=%2Fworkload-monitor&amp;update=true (2329 KB at 55435.1 KB/sec)
  
  [INFO] &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  [INFO] &lt;html&gt;
  [INFO]  &lt;head&gt;
  [INFO]   &lt;title&gt;403 Access Denied&lt;/title&gt;
  [INFO]   &lt;style type="text/css"&gt;
  [INFO]     &lt;!--
  ...
  </code></pre>
  
  <p>Could somebody give me a hint?</p>