I'm not sure why this is happening. Any help is appreciated.
I have a context listener that creates a
thread pool and populates it full of jobs. These jobs occasionally require access to the same resource, so I have a section of code that's synchronized with the static log.
Any time any of the jobs go through the synchronized section,
Tomcat will not shutdown properly. Even if I comment out all of the "more code" section so that it's just the synchronized part, this happens. If I comment out the synchronized line, or the code doesn't call that method, Tomcat shuts down correctly.
What would cause Tomcat to hang like that? I can only think that it's not locking and unlocking correctly, but the code works fine, limiting access as it should. It's just that Tomcat won't shutdown properly.