Solacesystems Resource Adapter (RA) throwing ClassNotFoundException: com.solacesystems.jndi.SolJNDIInitialContextFactory when XA Recovery is called in JBoss EAP
Issue
We are using the Solacesystems Resource Adapter (RA), and occasionally seeing ClassNotFoundException: com.solacesystems.jndi.SolJNDIInitialContextFactory
:
SEVERE [com.solacesystems.jms.ra.util.ObjectBuilderFactory] (Periodic Recovery) Unknown exception occured: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.solacesystems.jndi.SolJNDIInitialContextFactory from classloader ModuleClassLoader for Module "org.jboss.jts" from local module loader @2833cc44 (finder: local module finder @33f88ab (roots: /opt/eap/modules,/opt/eap/modules/system/layers/openshift,/opt/eap/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.1.3.CP,/opt/eap/modules/system/layers/base,/opt/eap/modules/system/add-ons/keycloak)) [Root exception is java.lang.ClassNotFoundException: com.solacesystems.jndi.SolJNDIInitialContextFactory from [Module "org.jboss.jts" from local module loader @2833cc44 (finder: local module finder @33f88ab (roots: /opt/eap/modules,/opt/eap/modules/system/layers/openshift))]]
at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:120)
at org.jboss.as.naming.InitialContext.init(InitialContext.java:101)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:91)
at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at com.solacesystems.jms.ra.util.ObjectBuilderFactory$JndiObjectBuilder.createObject(ObjectBuilderFactory.java:94)
at com.solacesystems.jms.ra.util.ObjectBuilder.build(ObjectBuilder.java:114)
at com.solacesystems.jms.ra.SolJMSRA.createXAConnectionFactory(SolJMSRA.java:621)
at com.solacesystems.jms.ra.SolJMSRA._getXAResources(SolJMSRA.java:437)
at com.solacesystems.jms.ra.SolJMSRA.getXAResources(SolJMSRA.java:382)
at org.jboss.jca.core.tx.jbossts.XAResourceRecoveryInflowImpl.getXAResources(XAResourceRecoveryInflowImpl.java:112)
at com.arjuna.ats.internal.jbossatx.jta.XAResourceRecoveryHelperWrapper.getXAResources(XAResourceRecoveryHelperWrapper.java:51)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:566)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:189)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:140)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:765)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:377)
Caused by: java.lang.ClassNotFoundException: com.solacesystems.jndi.SolJNDIInitialContextFactory from [Module "org.jboss.jts" from local module loader @2833cc44 (finder: local module finder @33f88ab (roots: /opt/eap/modules,/opt/eap/modules/system/layers/openshift,/opt/eap/modules/system/layers/base/.overlays/jbeap15053,/opt/eap/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.1.3.CP,/opt/eap/modules/system/layers/base,/opt/eap/modules/system/add-ons/keycloak))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:115)
... 20 more
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.1
- Solacesystems Resource Adapter (RA)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.