1 Reply Latest reply: Aug 20, 2013 3:36 AM by ng_sage RSS

    How to ignore undeployment failure in WLST script

    901647

      Hi

       

      In our simple WLST script, whenever a webapp is unavailable, the WLST script stops executing at the line.

      Is there a way to ignore the error and move on the next statement ?

       

      eg:

      in WLST script

       

      undeploy('AppX','ServerA')

      We got this error:

      Undeploying application AppX ... <Jul 15, 2013 6:16:46 PM UTC> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, AppX [archive: null], to ServerA .> weblogic.management.ManagementException: [Deployer:149001]No application named 'AppX' exists for operation undeployFailed to undeploy the application with status failed Current Status of your Deployment: Deployment command type: undeploy Deployment State       : failed Deployment Message     : weblogic.management.ManagementException: [Deployer:149001]No application named 'AppX' exists for operation undeploy No stack trace available. Problem invoking WLST - Traceback (innermost last): File "script.py", line 35, in ? File "<iostream>", line 272, in undeploy File "<iostream>", line 1847, in raiseWLSTException WLSTException: Error occured while performing undeploy : Failed to undeploy the application with status failed 

       

      Thank you