Cannot invoke Tomcat manager: Software caused connection abort
<p>I have seen multiple locations where people besides myself have tried all solutions presented in <a href="https://stackoverflow.com/questions/26356477/tomcat-7-connection-reset-by-peer-or-software-caused-connection-abort">this link</a>, and after going through every page of results on Google, I have failed to find a result.  I am trying to deploy a maven project to Tomcat, but I get the following printout:</p>

<pre><code>[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.178 s
[INFO] Finished at: 2016-08-03T15:01:17-04:00
[INFO] Final Memory: 15M/105M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project Project_2: Cannot invoke Tomcat manager: Software caused connection abort: socket write error -&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>Both</p>

<pre><code>mvn tomcat7:deploy
</code></pre>

<p>and</p>

<pre><code>mvn tomcat7:redeploy
</code></pre>

<p>result in the same error.</p>

<p>pom.xml</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;server&gt;tomcat7&lt;/server&gt;
        &lt;path&gt;/Project_2&lt;/path&gt;
        &lt;port&gt;8085&lt;/port&gt;
        &lt;url&gt;http://localhost:8085/manager/text&lt;/url&gt;
        &lt;update&gt;true&lt;/update&gt;
        &lt;username&gt;manager&lt;/username&gt;
        &lt;password&gt;xxxx&lt;/password&gt;
    &lt;/configuration&gt;
&lt;/plugin&gt;
</code></pre>

<p>tomcat-users.xml</p>

<pre><code>&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="admin-gui"/&gt;
&lt;user username="admin1" password="xxxx" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui" /&gt;
&lt;user username="manager" password="xxxx" roles="manager-script,admin-script" /&gt;
</code></pre>

<p>settings.xml (in both maven home and .m2 folder)</p>

<pre><code>&lt;server&gt;
  &lt;id&gt;tomcat7&lt;/id&gt;
  &lt;username&gt;manager&lt;/username&gt;
  &lt;password&gt;xxxx&lt;/password&gt;
&lt;/server&gt;
</code></pre>

<p>I am aware that my Tomcat version is 8, however, according to <a href="https://stackoverflow.com/questions/26883836/tomcat-maven-plugin-for-java-8">Borgy Manotoy</a>, the Tomcat7 plugin will work for Tomcat 8.</p>