Date: 2021-06-14 13:43:44
Score: 5.5
Report link

I have managed to figure out the problem. The issue was related to tomcat configuration in /conf/server.xml. Multiple Hosts will trigger the context loader to be triggered for each. I was keeping the default appBase to webapps for all host thus triggering the ContextLoader of each my war for each host. Another reason the ContextLoader will triggered multiple times as well is defining the option inside unless you need to load something external to your war. I recommend reading specs: https://tomcat.apache.org/tomcat-4.1-doc/config/host.html

I don't know how to set this thread/question as answered, help is appreciated.

  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): help is appreciated
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eng. Samir Fares