-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Description
We have faced some classloading problems after migrating to Spring Boot 2.1.6 and Spring Framework 5.1.8. The WAR we build is built under JDK8 but the runtime environment is JDK11.
We are trying to deploy our application, but then we get ClassNotFoundException and the Spring context fails to initialize.
We have double checked WAR file. The "missing" class is there.
Now, the really interesting part: we are able to reproduce this one only with Security Manager. It seems like it's not a problem with our own custom security policy, as we have also tried granting access to everything. The problem persists even in this, rather extreme, case.
Therefore, to run our application we have only two options:
- Run it under JDK8
- Run it under JDK11, but without the Security Manager
Another description of (apparently) the same problem: https://stackoverflow.com/questions/54063602/springboot-on-open-jdk-11-classnotfound-errors-when-securitymanager-is-activ