0

I want share same wildfly module between multiple war's and jar's . I have org.json module which I have added as an dependencies in A.war's manifest.mf file and B.jar's manifest file but when I invoke it I get below exception.It tries to load it twice

Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/json/JSONObject"

Update: I have deployed A.war and B.jar(my ejb jar) on wildfly server

happy
  • 2,550
  • 17
  • 64
  • 109

0 Answers0