Как развернуть военный файл с помощью ibm.websphere.ant? - PullRequest
0 голосов
/ 21 июня 2020

Я могу развернуть ухо с помощью ibm.websphere.ant без ошибок, но у меня возникла ошибка при развертывании файла войны

 <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

Можете мне помочь?

...