ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-401

Improve support for EAR deployments

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: EE-3.0.0.GA
    • Fix Version/s: None
    • Component/s: Release
    • Labels:
      None
    • Environment:
      EAR deployments
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      Include all required ICEfaces libraries inside the WEB-INF/lib directory of each .war.

      Description

      A few of our libraries (notably icepush.jar and icefaces.jar) include TLD files where listeners are registered. The current problem is that the listeners defined in these files aren't called when the .jar files are deployed to the .ear as shared libraries in the lib or APP-INF/lib directory of the .ear file. This is an issue for some deployment scenarios where the developer would rather include a single copy of the library to be shared across several .war modules.

        Issue Links

          Activity

          Deryk Sinotte created issue -
          Deryk Sinotte made changes -
          Field Original Value New Value
          Workaround Description Include all required ICEfaces libraries inside the WEB-INF/lib directory of each .war.
          Workaround Exists [Yes]
          Salesforce Case []
          Fix Version/s EE-3.1.0.GA [ 10332 ]
          Affects [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration]
          Assignee Deryk Sinotte [ deryk.sinotte ]
          Hide
          Deryk Sinotte added a comment -

          One possible solution would be to create an icesoft-tld.jar that contains all of our .tld files and simply include that in each .war. Then the tld files would get scanned and, as long as the required libraries were on the classpath, the required listeners would get called.

          This is a bit theoretical at this point and would need to be tested before proceeding as a final solution. There may be a problem including a .jar that has all of our tlds if someone isn't using a specific feature. For example, if an application doesn't need icepush.jar and doesn't have it isn't installed, what's the impact of still calling the listeners?

          Also, to officially support this, it would be necessary to implement our listeners so that they could detect being initialized multiple times.

          If all of the above testing proved this out, we'd need to:

          • Audit all our libs and create an icesoft-tld.jar that has a collection of all the tld files from the relevant libs (at least icepush and icefaces at this point, not sure about ace, compat, composite, accessible, etc yet) that could be deployed in each war.

          • Create build tasks to reliably build the new .jar.

          • Provide documentation on how and when to use the technique.

          Show
          Deryk Sinotte added a comment - One possible solution would be to create an icesoft-tld.jar that contains all of our .tld files and simply include that in each .war. Then the tld files would get scanned and, as long as the required libraries were on the classpath, the required listeners would get called. This is a bit theoretical at this point and would need to be tested before proceeding as a final solution. There may be a problem including a .jar that has all of our tlds if someone isn't using a specific feature. For example, if an application doesn't need icepush.jar and doesn't have it isn't installed, what's the impact of still calling the listeners? Also, to officially support this, it would be necessary to implement our listeners so that they could detect being initialized multiple times. If all of the above testing proved this out, we'd need to: • Audit all our libs and create an icesoft-tld.jar that has a collection of all the tld files from the relevant libs (at least icepush and icefaces at this point, not sure about ace, compat, composite, accessible, etc yet) that could be deployed in each war. • Create build tasks to reliably build the new .jar. • Provide documentation on how and when to use the technique.
          Deryk Sinotte made changes -
          Project ICEfaces [ 10021 ] ICEpack [ 10040 ]
          Key ICE-8042 IPCK-401
          Component/s Release [ 10036 ]
          Component/s Framework [ 10013 ]
          Fix Version/s EE-3.1.0.GA [ 10326 ]
          Fix Version/s EE-3.1.0.GA [ 10332 ]
          Affects Version/s EE-3.0.0.GA [ 10261 ]
          Affects Version/s EE-3.0.0.GA [ 10262 ]
          Deryk Sinotte made changes -
          Link This issue blocks PUSH-173 [ PUSH-173 ]
          Deryk Sinotte made changes -
          Summary Listeners defined in TLD files are not processed if library is not deployed in war module. Improve support for EAR deployments
          Salesforce Case []
          Hide
          Deryk Sinotte added a comment -

          I found some documentation for another product that confirms that the TLD solution described above should work:

          http://metawidget.sourceforge.net/doc/reference/en/html/ch09s03.html

          It also points out some other obstacles and potential solutions that may be worth noting.

          Show
          Deryk Sinotte added a comment - I found some documentation for another product that confirms that the TLD solution described above should work: http://metawidget.sourceforge.net/doc/reference/en/html/ch09s03.html It also points out some other obstacles and potential solutions that may be worth noting.
          Arran Mccullough made changes -
          Salesforce Case [5007000000LI9Rq]
          Ken Fyten made changes -
          Fix Version/s EE-3.3.0.GA [ 10570 ]
          Fix Version/s EE-3.2.0.GA [ 10326 ]
          Ken Fyten made changes -
          Fix Version/s EE-3.3.0.GA [ 10570 ]
          Ken Fyten made changes -
          Fix Version/s EE-4.1.0.GA [ 12170 ]
          Ken Fyten made changes -
          Fix Version/s EE-4.2.0.GA [ 13075 ]
          Fix Version/s EE-4.1.0.GA [ 12170 ]
          Hide
          Deryk Sinotte added a comment -

          Not sure if this is still valid or where it fits on the roadmap but throwing it back to the ICEfaces team in case they want to look at one day.

          Show
          Deryk Sinotte added a comment - Not sure if this is still valid or where it fits on the roadmap but throwing it back to the ICEfaces team in case they want to look at one day.
          Deryk Sinotte made changes -
          Assignee Deryk Sinotte [ deryk.sinotte ] Ken Fyten [ ken.fyten ]
          Ken Fyten made changes -
          Fix Version/s EE-4.3.0.GA [ 13104 ]
          Fix Version/s EE-4.2.0.GA [ 13075 ]
          Ken Fyten made changes -
          Fix Version/s EE-4.3.0.GA [ 13104 ]

            People

            • Assignee:
              Ken Fyten
              Reporter:
              Deryk Sinotte
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: