I have a problem deploying my Spring Roo application with Maven, using Spring Tools Suite 3.5.1 . I've been reading posts like this tomcat-maven-plugin 403 error but I continue with the following error:
Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy (default-cli) on project prueba: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1]
I'm running the maven doing this:
Right click over the project => Run as => Run configurations => New Maven Build => Goals: tomcat7:deploy
I've set my config files like this:
pom.xml
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://127.0.0.1:8080/manager/text</url>
<server>tomcat</server>
<path>/prueba</path>
</configuration>
</plugin>
tomcat-users.xml
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="s3cret" roles="manager-script,manager-gui"/>
</tomcat-users>
settings.xml
<settings>
<servers>
<server>
<id>myserver</id>
<username>tomcat</username>
<password>s3cret</password>
</server>
</servers>
</settings>
Some posts are in controversy because of this line
<url>http://127.0.0.1:8080/manager/text</url>
They say I have to put html instead of text but It doesn't works and I can't rid of this error.
Thanks in advance