title: tomcat-maven-plugin using Tomcat 7 - tomcat:deploy works, tomcat:undeploy doesn't
body: <p>I have a working configuration for tomcat:deploy, but when I come to undeploy the WAR, I get the following error which has left me foxed:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [WARNING] 
  [WARNING] Some problems were encountered while building the effective model for com:DocBookScratchProject:war:0.1.0.BUILD-SNAPSHOT
  [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:tomcat-maven-plugin is missing. @ line 166, column 12
  [WARNING] 
  [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  [WARNING] 
  [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  [WARNING] 
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building DocBookScratchProject 0.1.0.BUILD-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- tomcat-maven-plugin:1.1:undeploy (default-cli) @ DocBookScratchProject ---
  [INFO] Undeploying application at http://localhost:8080/DocBookScratchProject
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.769s
  [INFO] Finished at: Fri Jul 27 10:17:24 BST 2012
  [INFO] Final Memory: 11M/110M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:undeploy (default-cli) on project DocBookScratchProject: Cannot invoke Tomcat manager: &lt;html&gt;
  [ERROR] &lt;head&gt;
  [ERROR] &lt;style&gt;
  [ERROR] H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}
  [ERROR] table {
  [ERROR] width: 100%;
  [ERROR] }
  [ERROR] td.page-title {
  [ERROR] text-align: center;
  [ERROR] vertical-align: top;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] font-weight: bold;
  [ERROR] background: white;
  [ERROR] color: black;
  [ERROR] }
  [ERROR] td.title {
  [ERROR] text-align: left;
  [ERROR] vertical-align: top;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] font-style:italic;
  [ERROR] font-weight: bold;
  [ERROR] background: #D2A41C;
  [ERROR] }
  [ERROR] td.header-left {
  [ERROR] text-align: left;
  [ERROR] vertical-align: top;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] font-weight: bold;
  [ERROR] background: #FFDC75;
  [ERROR] }
  [ERROR] td.header-center {
  [ERROR] text-align: center;
  [ERROR] vertical-align: top;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] font-weight: bold;
  [ERROR] background: #FFDC75;
  [ERROR] }
  [ERROR] td.row-left {
  [ERROR] text-align: left;
  [ERROR] vertical-align: middle;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] color: black;
  [ERROR] }
  [ERROR] td.row-center {
  [ERROR] text-align: center;
  [ERROR] vertical-align: middle;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] color: black;
  [ERROR] }
  [ERROR] td.row-right {
  [ERROR] text-align: right;
  [ERROR] vertical-align: middle;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] color: black;
  [ERROR] }
  [ERROR] TH {
  [ERROR] text-align: center;
  [ERROR] vertical-align: top;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] font-weight: bold;
  [ERROR] background: #FFDC75;
  [ERROR] }
  [ERROR] TD {
  [ERROR] text-align: center;
  [ERROR] vertical-align: middle;
  [ERROR] font-family:sans-serif,Tahoma,Arial;
  [ERROR] color: black;
  [ERROR] }
  [ERROR] form {
  [ERROR] margin: 1;
  [ERROR] }
  [ERROR] form.inline {
  [ERROR] display: inline;
  [ERROR] }
  [ERROR] &lt;/style&gt;
  [ERROR] &lt;title&gt;/manager&lt;/title&gt;
  [ERROR] &lt;/head&gt;
  [ERROR] 
  [ERROR] &lt;body bgcolor="#FFFFFF"&gt;
  [ERROR] 
  [ERROR] &lt;table cellspacing="4" border="0"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2"&gt;
  [ERROR] &lt;a href="http://www.apache.org/"&gt;
  [ERROR] &lt;img border="0" alt="The Apache Software Foundation" align="left"
  [ERROR] src="/manager/images/asf-logo.gif"&gt;
  [ERROR] &lt;/a&gt;
  [ERROR] &lt;a href="http://tomcat.apache.org/"&gt;
  [ERROR] &lt;img border="0" alt="The Tomcat Servlet/JSP Container"
  [ERROR] align="right" src="/manager/images/tomcat.gif"&gt;
  [ERROR] &lt;/a&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;hr size="1" noshade="noshade"&gt;
  [ERROR] &lt;table cellspacing="4" border="0"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="page-title" bordercolor="#000000" align="left" nowrap&gt;
  [ERROR] &lt;font size="+2"&gt;Tomcat Web Application Manager&lt;/font&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;
  [ERROR] 
  [ERROR] &lt;table border="1" cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left" width="10%"&gt;&lt;small&gt;&lt;strong&gt;Message:&lt;/strong&gt;&lt;/small&gt;&amp;nbsp;&lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;&lt;pre&gt;FAIL - Tried to use command /undeploy via a GET request but POST is required&lt;/pre&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;
  [ERROR] 
  [ERROR] &lt;table border="1" cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="4" class="title"&gt;Manager&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left"&gt;&lt;a href="/manager/html/list;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;List Applications&lt;/a&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;a href="/manager/../docs/html-manager-howto.html?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;HTML Manager Help&lt;/a&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;a href="/manager/../docs/manager-howto.html?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;Manager Help&lt;/a&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-right"&gt;&lt;a href="/manager/status;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;Server Status&lt;/a&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;
  [ERROR] 
  [ERROR] &lt;table border="1" cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="6" class="title"&gt;Applications&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="header-left"&gt;&lt;small&gt;Path&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-left"&gt;&lt;small&gt;Version&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;Display Name&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;Running&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-left"&gt;&lt;small&gt;Sessions&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-left"&gt;&lt;small&gt;Commands&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;a href="/"&gt;/&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;i&gt;None specified&lt;/i&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;Welcome to Tomcat&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;true&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;a href="/manager/html/sessions;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;0&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF"&gt;
  [ERROR] &amp;nbsp;&lt;small&gt;Start&lt;/small&gt;&amp;nbsp;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/stop;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Stop"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/reload;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Reload"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/undeploy;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Undeploy"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;&lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF"&gt;
  [ERROR] &lt;form method="POST" action="/manager/html/expire;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;small&gt;
  [ERROR] &amp;nbsp;&lt;input type="submit" value="Expire sessions"&gt;&amp;nbsp;with idle &amp;ge;&amp;nbsp;&lt;input type="text" name="idle" size="5" value="30"&gt;&amp;nbsp;minutes&amp;nbsp;
  [ERROR] &lt;/small&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&lt;a href="/DocBookScratchProject"&gt;/DocBookScratchProject&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&lt;i&gt;None specified&lt;/i&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&amp;nbsp;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;true&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&lt;a href="/manager/html/sessions;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/DocBookScratchProject&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;0&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3"&gt;
  [ERROR] &amp;nbsp;&lt;small&gt;Start&lt;/small&gt;&amp;nbsp;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/stop;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/DocBookScratchProject&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Stop"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/reload;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/DocBookScratchProject&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Reload"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/undeploy;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/DocBookScratchProject&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Undeploy"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;&lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3"&gt;
  [ERROR] &lt;form method="POST" action="/manager/html/expire;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/DocBookScratchProject&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;small&gt;
  [ERROR] &amp;nbsp;&lt;input type="submit" value="Expire sessions"&gt;&amp;nbsp;with idle &amp;ge;&amp;nbsp;&lt;input type="text" name="idle" size="5" value="30"&gt;&amp;nbsp;minutes&amp;nbsp;
  [ERROR] &lt;/small&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;a href="/help"&gt;/help&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;i&gt;None specified&lt;/i&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&amp;nbsp;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;true&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;a href="/manager/html/sessions;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/help&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;0&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF"&gt;
  [ERROR] &amp;nbsp;&lt;small&gt;Start&lt;/small&gt;&amp;nbsp;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/stop;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/help&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Stop"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/reload;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/help&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Reload"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/undeploy;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/help&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Undeploy"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;&lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF"&gt;
  [ERROR] &lt;form method="POST" action="/manager/html/expire;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/help&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;small&gt;
  [ERROR] &amp;nbsp;&lt;input type="submit" value="Expire sessions"&gt;&amp;nbsp;with idle &amp;ge;&amp;nbsp;&lt;input type="text" name="idle" size="5" value="30"&gt;&amp;nbsp;minutes&amp;nbsp;
  [ERROR] &lt;/small&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&lt;a href="/host%2Dmanager"&gt;/host-manager&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&lt;i&gt;None specified&lt;/i&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;Tomcat Host Manager Application&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;true&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#C3F3C3" rowspan="2"&gt;&lt;small&gt;&lt;a href="/manager/html/sessions;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/host%2Dmanager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;0&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3"&gt;
  [ERROR] &amp;nbsp;&lt;small&gt;Start&lt;/small&gt;&amp;nbsp;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/stop;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/host%2Dmanager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Stop"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/reload;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/host%2Dmanager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Reload"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;form class="inline" method="POST" action="/manager/html/undeploy;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/host%2Dmanager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;  &lt;small&gt;&lt;input type="submit" value="Undeploy"&gt;&lt;/small&gt;  &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;&lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#C3F3C3"&gt;
  [ERROR] &lt;form method="POST" action="/manager/html/expire;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/host%2Dmanager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;small&gt;
  [ERROR] &amp;nbsp;&lt;input type="submit" value="Expire sessions"&gt;&amp;nbsp;with idle &amp;ge;&amp;nbsp;&lt;input type="text" name="idle" size="5" value="30"&gt;&amp;nbsp;minutes&amp;nbsp;
  [ERROR] &lt;/small&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;a href="/manager"&gt;/manager&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;i&gt;None specified&lt;/i&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;Tomcat Manager Application&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;true&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center" bgcolor="#FFFFFF" rowspan="2"&gt;&lt;small&gt;&lt;a href="/manager/html/sessions;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/manager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;9&lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF"&gt;
  [ERROR] &lt;small&gt;
  [ERROR] &amp;nbsp;Start&amp;nbsp;
  [ERROR] &amp;nbsp;Stop&amp;nbsp;
  [ERROR] &amp;nbsp;Reload&amp;nbsp;
  [ERROR] &amp;nbsp;Undeploy&amp;nbsp;
  [ERROR] &lt;/small&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;&lt;tr&gt;
  [ERROR] &lt;td class="row-left" bgcolor="#FFFFFF"&gt;
  [ERROR] &lt;form method="POST" action="/manager/html/expire;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?path=/manager&amp;amp;org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;small&gt;
  [ERROR] &amp;nbsp;&lt;input type="submit" value="Expire sessions"&gt;&amp;nbsp;with idle &amp;ge;&amp;nbsp;&lt;input type="text" name="idle" size="5" value="30"&gt;&amp;nbsp;minutes&amp;nbsp;
  [ERROR] &lt;/small&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;
  [ERROR] &lt;table border="1" cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2" class="title"&gt;Deploy&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2" class="header-left"&gt;&lt;small&gt;Deploy directory or WAR file located on server&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2"&gt;
  [ERROR] &lt;form method="post" action="/manager/html/deploy;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;table cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-right"&gt;
  [ERROR] &lt;small&gt;Context Path (required):&lt;/small&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="text" name="deployPath" size="20"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-right"&gt;
  [ERROR] &lt;small&gt;XML Configuration file URL:&lt;/small&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="text" name="deployConfig" size="20"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-right"&gt;
  [ERROR] &lt;small&gt;WAR or Directory URL:&lt;/small&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="text" name="deployWar" size="40"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-right"&gt;
  [ERROR] &amp;nbsp;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="submit" value="Deploy"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2" class="header-left"&gt;&lt;small&gt;WAR file to deploy&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2"&gt;
  [ERROR] &lt;form method="post" action="/manager/html/upload;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98" enctype="multipart/form-data"&gt;
  [ERROR] &lt;table cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-right"&gt;
  [ERROR] &lt;small&gt;Select WAR file to upload&lt;/small&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="file" name="deployWar" size="40"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-right"&gt;
  [ERROR] &amp;nbsp;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="submit" value="Deploy"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;
  [ERROR] 
  [ERROR] &lt;table border="1" cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2" class="title"&gt;Diagnostics&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2" class="header-left"&gt;&lt;small&gt;Check to see if a web application has caused a memory leak on stop, reload or undeploy&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="2"&gt;
  [ERROR] &lt;form method="post" action="/manager/html/findleaks;jsessionid=724F30BC8ED2E6CE4F8A1EC4CB1E5B50?org.apache.catalina.filters.CSRF_NONCE=D9447A84FBF3B6DCC2C067BAA2539F98"&gt;
  [ERROR] &lt;table cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;input type="submit" value="Find leaks"&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;td class="row-left"&gt;
  [ERROR] &lt;small&gt;This diagnostic check will trigger a full garbage collection. Use it with extreme caution on production systems.&lt;/small&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;/form&gt;
  [ERROR] &lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;&lt;table border="1" cellspacing="0" cellpadding="3"&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td colspan="8" class="title"&gt;Server Information&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;Tomcat Version&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;JVM Version&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;JVM Vendor&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;OS Name&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;OS Version&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;OS Architecture&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;Hostname&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="header-center"&gt;&lt;small&gt;IP Address&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;tr&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;Apache Tomcat/7.0.28&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;1.6.0_29-b11&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;Sun Microsystems Inc.&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;Windows 7&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;6.1&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;amd64&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;Mat-PC&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;td class="row-center"&gt;&lt;small&gt;10.201.113.100&lt;/small&gt;&lt;/td&gt;
  [ERROR] &lt;/tr&gt;
  [ERROR] &lt;/table&gt;
  [ERROR] &lt;br&gt;
  [ERROR] 
  [ERROR] &lt;hr size="1" noshade="noshade"&gt;
  [ERROR] &lt;center&gt;&lt;font size="-1" color="#525D76"&gt;
  [ERROR] &lt;em&gt;Copyright &amp;copy; 1999-2012, Apache Software Foundation&lt;/em&gt;&lt;/font&gt;&lt;/center&gt;
  [ERROR] 
  [ERROR] &lt;/body&gt;
  [ERROR] &lt;/html&gt;
  [ERROR] -&gt; [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
  </code></pre>
  
  <p><strong>Tomcat-users.xml:</strong> </p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;tomcat-users&gt;
    &lt;role rolename="tomcat"/&gt;
    &lt;role rolename="manager"/&gt;
    &lt;role rolename="manager-script"/&gt;
    &lt;role rolename="manager-gui"/&gt;
    &lt;role rolename="standard"/&gt;
    &lt;role rolename="admin"/&gt;
    &lt;user username="admin" password="password" roles="tomcat,manager,manager-script,manager-gui,standard,admin"/&gt;
  &lt;/tomcat-users&gt;
  </code></pre>
  
  <p><strong>Maven settings.xml snippet:</strong></p>
  
  <pre><code>&lt;servers&gt;
    &lt;server&gt;
      &lt;id&gt;TomcatServer&lt;/id&gt;
      &lt;username&gt;admin&lt;/username&gt;
      &lt;password&gt;password&lt;/password&gt;
    &lt;/server&gt;
  &lt;/servers&gt;
  </code></pre>
  
  <p><strong>POM snippet:</strong></p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
    &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
      &lt;url&gt;http://localhost:8080/manager/html&lt;/url&gt;
      &lt;server&gt;TomcatServer&lt;/server&gt;
      &lt;path&gt;/${project.build.finalName}&lt;/path&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>