I am creating a JMS resource adapter for a JMS implementation.
The rar file contains a jar containing the resource adapter implementation and some jars containing the JMS implementation.
I get the following error when periodic XA recovery runs:
javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory com.solacesystems.jndi.SolJNDIInitialContextFactory from classloader ModuleClassLoader for Module "org.jboss.jts:main" from local module loader @21b64e6a (finder: local module finder @47d62270 (roots: F:\jboss-eap-6.2\modules,F:\jboss-eap-6.2\modules\system\layers\base))
The class file it can't instantiate is within a jar within the rar.
I had the same issue with deployed applications using the rar until I added a dependency to the ear's jboss-deployment-structure.xml.
I was able to work around this if I put the JMS implementation in a module, but I was hoping for a solution that didn't involve that, since deploying the solution without modifying JBoss is preferable.
Is there something I could put in the rar file that would help Periodic Recovery find the classes?