我可以使用ibm.websphere.ant部署耳朵,而不会出现错误,但是在部署war文件时出现了一些错误
<target name="uninstallEAR">
<taskdef name="wsUninstallApp" classname="com.ibm.websphere.ant.tasks.UninstallApplication" classpath="${was_cp}"/>
<wsUninstallApp application="{war.name}"
washome="${was_home}"
host="10.53.x.x" port="10033" conntype="SOAP" user="wpsportal" password="pass"
failonerror="false" />
</target>
<target name="installEar" depends="uninstallEAR">
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication" classpath="${was_cp}"/>
<wsInstallApp ear="/opt/appFiles/{war.name}.war"
failonerror="true"
debug="true"
taskname=""
profileName="wp_profile"
conntype="SOAP"
port="10033"
host="10.53.x.x"
washome="${was_home}" user="wpsportal" password="pass" />
</target>
情况1:
If the application does not exist. I got this error
[wsadmin] WASX7017E: Exception received while running file "/var/tmp/wsant4482275101295430898jacl"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7280E: An application with name "TDS" does not exist.
[wsadmin] Java Result: 105
情况2:如果我删除任务wsUninstallApp,则会出现另一个错误:
installEar:
BUILD FAILED
/opt/appFiles/build_TDS.xml:36: The ear attribute must reference and existing EAR file
你能帮我吗?