1 of 1 people found this helpful
This is probably one of the most frequently asked questions.
Seems ypu overlooked something while reading the classloading topic.
Different ways available, like jboss-deploymentstructure.xml.
The easiest way for me was to add a manifest entry to the ear file:
<attribute name="Dependencies" value="deployment.controller.rar, deployment.filesystem.rar"/>
With this, the ear file can use classes from the deployments named controller.rar and filesystem.rar.
Only those rar-files contain the shared class files, the ear file does not.
Thanks, I got it to work with my.ear/META-INF/jboss-deployment-structure.xml
<module name="deployment.my.rar" export="true"/>
export="true" is important, else there are NoClassDefFoundError for the RA classes, I guess the ear classes don't see javax.resource.*