I have a simple application that uses a Spring beans. It works fine when I execute via JUnit Test, however, when I deploy it in TomCat I got a nasty exception (see attached file). I am using tomcat 9.0 and activiti 19.20.0
Looking at the exception … it seems you are serializing the spring applicationContext. Perhaps you are using session serialization or something like that? and that you are injecting the application context in one of your service task beans or other classes?