Home > Back-end >  MAVEN project configuration tomcat7 MAVEN - plugin plug-in start-up error
MAVEN project configuration tomcat7 MAVEN - plugin plug-in start-up error

Time:09-22

Maven project of pom. XML
Tomcat7 configuration:

The generated plug-in:

Deploy startup error:

Detailed error message:
 [INFO] -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
[the INFO] BUILD FAILURE
[the INFO] -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[the INFO] Total time: 8.554 s
[the INFO] Finished at: 2017-07-01 T12:41:00 + 08:00
[the INFO] Final Memory: 17 m/176 m
[the INFO] -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[ERROR] Failed to execute goal. Org. Apache tomcat. Maven: tomcat7 -- maven plugin: 2.2: deploy (default - cli) on project shiro: always invoke a tomcat manager: Connection refused: connect - & gt; [1] Help
[ERROR]
[ERROR] To see the full stack trace of the errors, re - run Maven have 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, both please read the following articles:
[ERROR] [1] Help http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The Process finished with exit code 1

Attachment: maven for the project configuration
Alternatively use tomcat deployment can be started, plug-in startup is an error,
=========all==========
Pray god help

CodePudding user response:

CodePudding user response:



Org, apache tomcat. Maven
Tomcat7 maven - plugin
2.1 & lt;/version>

/shiro
8080 & lt;/port>
UTF-8
http://localhost:8080/shiro
Tomcat7 & lt;/server>




Org, apache maven. Plugins
Maven - compiler - plugin
3.1 & lt;/version>

1.8 & lt;/source>
1.8 & lt;/target>
UTF-8




I usually write so, you try

CodePudding user response:

Is there a solution? I met the same problem also
Idea2019.1.3
Jdk1.8
Tomcat7

CodePudding user response:

You!!!!!!!!!!!!!!!! Pay attention!!!!!!!!!!!
When you copy the pom. The XML file, & lt; ArtifactId> The place did not modify & lt;/artifactId>

On this place without modification, lead to conflict, so deployment is not file name this project!

CodePudding user response:

If you want to start directly, directly through the tomcat: run command to start;
If you need the local tomcat startup, it is necessary to start the tomcat, and the configuration related permissions

CodePudding user response:

reference sanc51 reply: 3/f
have to solve? I met the same problem also
Idea2019.1.3
Jdk1.8
Tomcat7



Brother can you solve it, I met the same problem: jdk1.8 + tomcat7, run tomcat7: the run times of wrong, one post, the two are not compatible, but the same project I also run well, three months ago idea2019.3 different just before, now with 2020.1. Bosses give directions,
Failed to execute goal org, apache tomcat, maven: tomcat7 -- maven plugin: 2.1: the run (default - cli) on the project travel: Could not start tomcat

CodePudding user response:

refer to 7th floor qq_40680418 response:
Quote: reference sanc51 reply: 3/f

Is there a solution? I met the same problem also
Idea2019.1.3
Jdk1.8
Tomcat7



Brother can you solve it, I met the same problem: jdk1.8 + tomcat7, run tomcat7: the run times of wrong, one post, the two are not compatible, but the same project I also run well, three months ago idea2019.3 different just before, now with 2020.1. Bosses give directions,
Failed to execute goal org, apache tomcat, maven: tomcat7 -- maven plugin: 2.1: the run (default - cli) on the project travel: Could not start tomcat



I was the cause of error @ WebServlet (" registerServelt ") path to write wrong, added a/less, may not be able to start the project (╯ ‵ - '╯ ︵ ┻ ━ ┻

CodePudding user response:

The building Lord, which your problem solved? Solved can teach it? My qq is 646842195, thanks!!!!!!

CodePudding user response:

With q, cannot be solved, the building Lord, I qq495624824, solved it can guide it to me?

CodePudding user response:

Org, apache tomcat. Maven
Tomcat7 maven - plugin
2.2 & lt;/version>

Meet the same problem, specify the version successfully solved
  • Related