0 Replies Latest reply on Feb 25, 2015 4:36 AM by ks.zealot

    Remove deployment dependencies from multi-module application

    ks.zealot

      I have application, contains number of several modules.

      for example

      module1.jar

      module2.sar

      module3.sar

      Then, a have web interface ROOT.war, with deployment descriptor like this

      <module name="deployment.module1.jar" optional="true"/>

       

      <module name="deployment.module2.sar" optional="true"/>

       

      <module name="deployment.module3.sar" optional="true"/>

      SO, my ROOT.war could load with any deployment bundle, only module1 and module3, or module2,3, etc.

      But when i remove module, ROOT.war going down with ClassNotFoundException, and could not redeploy even after wildfly reboot.

      How could i remove optional dependencies at runtime?