I have a jar that has an implementation class which implements an interface which resides in war. Also jar requires certain custom exceptions and some domain classes from war file.
I can't put the jar into the war, as it can be altered frequently.
I am deploying this war into wildfly 10. I read one post from stackoverflow and tried it How can i add a jboss 7.1 module that contain classes that implements/extends from classes in the main ear file of the server?, but again I am getting ClassNotFoundException. I put my jar in the standalone folder and give the path for resource in jboss-deployment-structure.xml as
<jboss-deployment-structure>
<resources>
<resource-root path:"../test.jar"/>
</resources>
</jboss-deployment-structure>
Also I tried doing by referring to it as a module but in turn it needed the dependency from war file which is in different classloader. Can anyone help me with this issue.