bin-bin bin-bin - 27 days ago 13
Java Question

Tomcat 7: Connection reset by peer or Software caused connection abort

I have a problem when I'm trying to deploy Java-application.

Cannot invoke Tomcat manager: Connection reset by peer: socket write error


Cannot invoke Tomcat manager: Software caused connection abort: socket write error

In pom.xml I have this:


In tomcat-users.xml I have this:

<role rolename="admin"/>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-jmx"/>
<user username="admin" password="admin" roles="manager-gui,admin,manager-jmx,manager-script" />

Also in Maven/conf/settings.xml I have:


When I'm trying to go to


and input username and password (admin admin) I have error:

403 Access Denied
You are not authorized to view this page.

But I typed in tomcat-users.xml that user admin has manager-gui role.
I'm using Tomcat 7.0.56 and Jenkins. Also use commands: clean and tomcat7-redeploy.
Need help to understand what is wrong:C


I added


in user/.m2/settings.xml

Also I didn't change pom.xml, tomcat-users.xml and Maven/conf/settings.xml and now all works fine.