Glassfish uses internal module libarry instead of application library
问题 I am trying to deploy a Spring boot application on Glassfish 4.1.21. At startup I get an error that that the entityManagerFactory cannot pe created due to the fact that a method does not exist. It doas not exist because, for some reason, when the applicaiton is started on glassfish, instead of using jakarta.validation-api-2.0.2.jar, it is used a library form inside glassfish/module bean-validator.jar. Everything works fine with embeded Tomcat. log file [2020-05-08T15:57:04.360+0300]