Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-7

ContextLoader is not released correctly on module reload.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.1
    • 1.1
    • None
    • None

      In class BlossomModuleSupport, when calling method closeRootWebApplicationContext(), the spring application context is closed correctly, but the "contextLoader" in the class is not set to null.
      When a blossom module reloads itself (which may happen on any change on /modules/<module>/config node), the spring application context can be closed, but a reference to the contextLoader is left anyway. When the start of the module is called, it finds an instance of contextLoader (even if the context is closed) and throws exception, so it's impossible to reload context until server restart. Is this wanted for some reason or it is a bug?
      If it is wanted you should update the example on the wiki page to avoid spring re-initialization when the lifecicle of the module is a simple reload and not a system start/shutdown (which I think it would be a good practice anyway).

        Acceptance criteria

              tmattsson Tobias Mattsson
              dfghi Danilo Ghirardelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD