Re: Missing Injector inconsistently

2022-06-25 Thread D Tim Cummings
Thanks Andrus. This helps me too. I was clearing the folder /var/lib/tomcat9/work/Catalina/localhost after stopping tomcat and before starting it again to avoid the error. This hint is worthy of being part of the documentation. Tim On 24/6/22 17:54, Andrus Adamchik wrote: Hi Richard, I assu

Re: Missing Injector inconsistently

2022-06-24 Thread Richard Frovarp
Andrus, Yes, it is coming from BaseContext.attachToRuntimeIfNeeded(). It appears that turning off session serialization works. The fact that it sometimes worked under Tomcat makes it a bit harder to test that the fix is good. I was able to adapt the previous project to get it working. So Val

Re: Missing Injector inconsistently

2022-06-24 Thread Andrus Adamchik
Hi Richard, I assume the exception happens within BaseContext.attachToRuntimeIfNeeded(). This whole business of attaching to runtime is a hack for auto-deserialization of the context in certain environments. Tomcat does HttpSession serialization for the purpose of session clustering (and addres