Open huntkalio opened 3 months ago
We experienced this, too. For now the fix is to completely exclude the transitive dependencies to catalina and coyote, which at least in our use case did not break anything else.
Noteworthy, we did not experience this when running applications with the mvn spring-boot plugin but only after building and running a docker image with JIB, most likely because the way JIB places the dependencies leads to a different behavior of the class loader (Did not dive into this because the exclusion fixed it for us)
We experienced this, too. For now the fix is to completely exclude the transitive dependencies to catalina and coyote, which at least in our use case did not break anything else.
Noteworthy, we did not experience this when running applications with the mvn spring-boot plugin but only after building and running a docker image with JIB, most likely because the way JIB places the dependencies leads to a different behavior of the class loader (Did not dive into this because the exclusion fixed it for us)
The order which libraries and classes are loaded can be very different. It can vary from time to time. We have it set up in approximately ten different applications. Two of them failed and the rest started up. So consider the order in which classes are loaded to be random and "removing the duplicate" as you did is the only safe way.
https://github.com/qos-ch/logback-access/issues/17