cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.IllegalStateException when using JPA and TomCat

waltable
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
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?