0 Replies Latest reply on Jul 3, 2017 5:38 AM by Alex Tcarev

    ServletContainerInitializer onStartup() invocation order

    Alex Tcarev Newbie



      I faced an issue of invocation onStartup() method from ServletContainerInitializer when it wasnt supposed to.

      I have 3 modules with dependencies: module1 -> module2 -> module3.

      Dependency module2 -> module3 is'n exported to module1.

      There is ServletContainerInitializer implementation in module3.


      So, I assume that ServiceLoader lookup shold not find ServletContainerInitializer implementation from module1 but it does.


      Is there any way to set search bounds for ServletContainerInitializer implementors when initializing servlet context?