remove target 的 代码
<target name="remove"
description="Remove application on servlet container"> <undeploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"/> </target>错误返回:
remove:
[undeploy] <html>
[undeploy] <head>
[undeploy] <style>
[undeploy] 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;} table {
[ [undeploy] <tr>
[undeploy] <td colspan="2" class="header-left"><small>Deploy directory or WAR file located on server</small></td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td colspan="2">
[undeploy] <form method="get" action="/manager/html/deploy">
[undeploy] <table cellspacing="0" cellpadding="3">
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>Context Path (optional):</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="text" name="deployPath" size="20">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>XML Configuration file URL:</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="text" name="deployConfig" size="20">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>WAR or Directory URL:</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="text" name="deployWar" size="40">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy]
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="submit" value="Deploy">
[undeploy] </td>
[undeploy] </tr>
[undeploy] </table>
[undeploy] </form>
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td colspan="2" class="header-left"><small>WAR file to deploy</small></td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td colspan="2">
[undeploy] <form action="/manager/html/upload" method="post" enctype="multipart/form-data">
[undeploy] <table cellspacing="0" cellpadding="3">
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>Select WAR file to upload</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="file" name="deployWar" size="40">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy]
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="submit" value="Deploy">
[undeploy] </td>
[undeploy] </tr>
[undeploy] </table>
[undeploy] </form>
[undeploy] </table>
[undeploy] <br>
[undeploy] <table border="1" cellspacing="0" cellpadding="3">
[undeploy] <tr>
[undeploy] <td colspan="6" class="title">Server Information</td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="header-center"><small>Tomcat Version</small></td>
[undeploy] <td class="header-center"><small>JVM Version</small></td>
[undeploy] <td class="header-center"><small>JVM Vendor</small></td>
[undeploy] <td class="header-center"><small>OS Name</small></td>
[undeploy] <td class="header-center"><small>OS Version</small></td>
[undeploy] <td class="header-center"><small>OS Architecture</small></td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-center"><small>Apache Tomcat/5.5.27</small></td>
[undeploy] <td class="row-center"><small>1.6.0_10-rc2-b32</small></td>
[undeploy] <td class="row-center"><small>Sun Microsystems Inc.</small></td>
[undeploy] <td class="row-center"><small>Windows XP</small></td>
[undeploy] <td class="row-center"><small>5.1</small></td>
[undeploy] <td class="row-center"><small>x86</small></td>
[undeploy] </tr>
[undeploy] </table>
[undeploy] <br>
[undeploy] <hr size="1" noshade="noshade">
[undeploy] <center><font size="-1" color="#525D76">
[undeploy] <em>Copyright © 1999-2005, Apache Software Foundation</em></font></center>
[undeploy] </body>
[undeploy] </html>
<target name="remove"
description="Remove application on servlet container"> <undeploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"/> </target>错误返回:
remove:
[undeploy] <html>
[undeploy] <head>
[undeploy] <style>
[undeploy] 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;} table {
[ [undeploy] <tr>
[undeploy] <td colspan="2" class="header-left"><small>Deploy directory or WAR file located on server</small></td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td colspan="2">
[undeploy] <form method="get" action="/manager/html/deploy">
[undeploy] <table cellspacing="0" cellpadding="3">
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>Context Path (optional):</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="text" name="deployPath" size="20">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>XML Configuration file URL:</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="text" name="deployConfig" size="20">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>WAR or Directory URL:</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="text" name="deployWar" size="40">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy]
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="submit" value="Deploy">
[undeploy] </td>
[undeploy] </tr>
[undeploy] </table>
[undeploy] </form>
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td colspan="2" class="header-left"><small>WAR file to deploy</small></td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td colspan="2">
[undeploy] <form action="/manager/html/upload" method="post" enctype="multipart/form-data">
[undeploy] <table cellspacing="0" cellpadding="3">
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy] <small>Select WAR file to upload</small>
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="file" name="deployWar" size="40">
[undeploy] </td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-right">
[undeploy]
[undeploy] </td>
[undeploy] <td class="row-left">
[undeploy] <input type="submit" value="Deploy">
[undeploy] </td>
[undeploy] </tr>
[undeploy] </table>
[undeploy] </form>
[undeploy] </table>
[undeploy] <br>
[undeploy] <table border="1" cellspacing="0" cellpadding="3">
[undeploy] <tr>
[undeploy] <td colspan="6" class="title">Server Information</td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="header-center"><small>Tomcat Version</small></td>
[undeploy] <td class="header-center"><small>JVM Version</small></td>
[undeploy] <td class="header-center"><small>JVM Vendor</small></td>
[undeploy] <td class="header-center"><small>OS Name</small></td>
[undeploy] <td class="header-center"><small>OS Version</small></td>
[undeploy] <td class="header-center"><small>OS Architecture</small></td>
[undeploy] </tr>
[undeploy] <tr>
[undeploy] <td class="row-center"><small>Apache Tomcat/5.5.27</small></td>
[undeploy] <td class="row-center"><small>1.6.0_10-rc2-b32</small></td>
[undeploy] <td class="row-center"><small>Sun Microsystems Inc.</small></td>
[undeploy] <td class="row-center"><small>Windows XP</small></td>
[undeploy] <td class="row-center"><small>5.1</small></td>
[undeploy] <td class="row-center"><small>x86</small></td>
[undeploy] </tr>
[undeploy] </table>
[undeploy] <br>
[undeploy] <hr size="1" noshade="noshade">
[undeploy] <center><font size="-1" color="#525D76">
[undeploy] <em>Copyright © 1999-2005, Apache Software Foundation</em></font></center>
[undeploy] </body>
[undeploy] </html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货