WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Delete files from application?

    Posted Mon May 20, 2013 08:02 PM
    Hi, 
    I want to delete files and folders from an application deployed on WASND 6.1. 

    I'm using the " Replace, Add and  Delete files" option from "Update Application" on DMGR Console. 

    Suppose my app name is app.ear. with one .war file inside. 
    app.ear
    |_ package1.WAR

    For errors in previous updates using .zip file, I have two folders that don't should be deployed and others files that I want it to delete.

    app.ear
    |_package1.WAR
    |_garbage1
    |_garbage2.WAR

    I built a .zip with the following content:

    update.zip/META-INF/ibm-partialapp-delete.props
      ------------------------------------
      ibm-partialapp-delete.props:
      garbage1
      garbage2.WAR/*
      ------------------------------------

    update.zip/package1.WAR/META-INF/ibm-partialapp-delete.props
      ------------------------------------
      ibm-partialapp-delete.props:
      images/folder_garbage
      ------------------------------------

    But It not works. :-( It doesn't delete folders. Only files. And those packages outside of package1.war not were erased either.

    How should I build the .zip for delete these packages and delete folders inside my app.ear? 

    Thanks for advanced ;)


  • 2.  Delete files from application?

    Posted Wed May 22, 2013 02:31 PM
    Do you have access to the application?  If so, you could delete the files from the application and the redeploy it....

    Cheers!


  • 3.  Delete files from application?

    Posted Thu May 30, 2013 03:51 PM

    Hi, :)
    No, I don't have access to application (in development). I'm a DMGR administrator and I have access to the server where the app were deployed. I want to purge the app of unused or wrong files and folders. But I want to do it from DMGR and not from server directly. If I do it from server, the changes are not saved for DMGR. you know?



    Best Regards,



  • 4.  Delete files from application?

    Posted Fri May 31, 2013 01:26 PM
    Hi Yasmin,

      I think that you can only delete files, not folders....
     
      Ways to update application files
      pic.dhe.ibm.com/infocenter/wasinfo/v6r1/...

      Removing a J2EE file
      pic.dhe.ibm.com/infocenter/wasinfo/v6r1/...
     
      If you have an Adminconsole you have the deployed application.

      What about export application from admin console, open with RAD or AST fix files or modules, regenerate EAR, export EAR, uninstall Application and install again.  You can do all from admin console.
     
      If you don't have RAD or AST you can do with earExpander utility from WAS_HOME\bin in this case you need to edit manually deployment descriptors.

      Hope this helps.
     
    Regards