title: Tomcat maven error Server returned HTTP response code: 401 for URL
body: <p>I'm trying to deploy webpage to Tomcat using the Tomcat Maven Plugin.</p>
  
  <p>but i seem error</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project ReoWebPage: Cannot invoke Tomcat manager: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/deploy?path=%2FReoWebPage&amp;war= -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>this...</p>
  
  <p>If i continue to modify tomcat.xml and settings.xml, but i will get the same error.</p>
  
  <p>what's the problem??</p>
  
  <p>pom plug-in    </p>
  
  <pre><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.2&lt;/version&gt;
      &lt;configuration&gt;
          &lt;url&gt;http://localhost:8089/manager/text&lt;/url&gt;
          &lt;server&gt;TomcatServer&lt;/server&gt;
          &lt;path&gt;/ReoWebPage&lt;/path&gt;
  
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>settings.xml</p>
  
  <pre><code>&lt;server&gt;
    &lt;id&gt;TomcatServer&lt;/id&gt;
    &lt;username&gt;admin&lt;/username&gt;
    &lt;password&gt;password&lt;/password&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>tomcat-users.xml file</p>
  
  <pre><code>&lt;role rolename="tomcat"/&gt;
  &lt;role rolename="admin-script"/&gt;
  &lt;role rolename="manager-script"/&gt;
  &lt;role rolename="manager-gui"/&gt;
  &lt;role rolename="manager-jmx"/&gt;
  &lt;role rolename="manager-status"/&gt;
  &lt;role rolename="manager"/&gt;
  &lt;role rolename="admin"/&gt;
  &lt;user password="password" roles="tomcat" username="admin"/&gt;
  &lt;user password="password" roles="manager-gui" username="admin"/&gt;
  &lt;user password="password" roles="admin,admin-script,manager-gui,manager-script,manager-jmx,manager-status" username="admin"/&gt;
  </code></pre>
  
  <p>and run enviroment rivse jre -> jdk</p>
  
  <p>i'm use eclipse and tomcat 8.0 
  please help..
  thank you</p>