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.
Yes. I have added org.json in wildfly-home/modules/org/json/main
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
"