I have seen multiple locations where people besides myself have tried all solutions presented in this link, 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:
[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 -> [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
Both
mvn tomcat7:deploy
and
mvn tomcat7:redeploy
result in the same error.
pom.xml
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<server>tomcat7</server>
<path>/Project_2</path>
<port>8085</port>
<url>http://localhost:8085/manager/text</url>
<update>true</update>
<username>manager</username>
<password>xxxx</password>
</configuration>
</plugin>
tomcat-users.xml
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin-gui"/>
<user username="admin1" password="xxxx" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui" />
<user username="manager" password="xxxx" roles="manager-script,admin-script" />
settings.xml (in both maven home and .m2 folder)
<server>
<id>tomcat7</id>
<username>manager</username>
<password>xxxx</password>
</server>
I am aware that my Tomcat version is 8, however, according to Borgy Manotoy, the Tomcat7 plugin will work for Tomcat 8.