0

I am trying to deploy my Spring Boot app on Payara Galssfish server. But I get this error during the deployment.

Error creating bean with name 'systemConfigDao': Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with name "javax/cache/configuration/Configuration”

  • Have you turned off classloader delegation? We recommend it, especially for deploying Spring based applications! https://payara.gitbooks.io/payara-server/content/documentation/extended-documentation/classloading.html – Mike Sep 15 '16 at 14:51
  • @Mike yes, I have. But I get the same error again – Mehrdad Abdolghafari Sep 15 '16 at 16:11
  • Payara ships with JCache Apis. Try adding JCache as a provided dependency. – leet java Sep 29 '16 at 21:15

0 Answers0