1

A 404 error is occurring after trying to redeploy via Tomcat Maven plugin, which uses Tomcat Manager to perform this action.
It was verified that the Manager application is not available at http://localhost:8080/manager.

pom.xml:

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
</plugin>

Start server:

mvn tomcat7:run

Redeploy:

mvn package tomcat7:redeploy

Error:

[INFO] --- tomcat7-maven-plugin:2.2:redeploy (default-cli) @ app ---
[INFO] Deploying war to http://localhost:8080/app
Uploading: http://localhost:8080/manager/text/deploy?path=%2Fapp&update=true
Uploaded: http://localhost:8080/manager/text/deploy?path=%2Fapp&update=true (3950 KB at 3253.3 KB/sec)

[ERROR] Tomcat return http status error: 404, Reason Phrase: Not Found
marcioggs
  • 648
  • 11
  • 23
  • In the tomcat make sure you have the manager web app deployed. – seenukarthi Feb 10 '20 at 07:04
  • How to activate the Manager app via the Tomcat Maven Plugin configuration? The documentation doesn't explicitly mention it, so probably it should be activated by default. http://tomcat.apache.org/maven-plugin-trunk/ – marcioggs Feb 10 '20 at 11:21

1 Answers1

0

the reason is, missing the manager in the war files installation path.

to fix, copy those files/folders from TOMCAT_DIR/webapps to the relevant war installation path.

Gayan Chinthaka
  • 521
  • 6
  • 5