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
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
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
I'm using Cayenne 4.1 in the integration I took over to make it just
work with Apache Tapestry. I'm getting:
Can't attach to Cayenne runtime. Null injector returned from
CayenneRuntime.getThreadInjector()
The really confusing part is that it works just fine in Jetty, and it
sometimes works