<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Web-app requires a resource-adapter class be included in war
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/jleinawe">jleinawe</a> in <i>IronJacamar</i> - <a href="https://community.jboss.org/message/760027#760027">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Deployed a resource adapter to JBoss AS 7.1.1.Final-SNAPSHOT.   The resource adapter integrates WebLogic JMS to the JBoss server.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Deployed a Servlet which will use the JMS resources from the adapter to send/receive JMS messags using WebLogic JMS.  Execution of the servlet will fail for classloading issues.    The class file noted in the exception is deployed within the resource adapter's rar file.  Specifically:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>javax.resource.ResourceException: Error creating naming context instance: JBAS011843: Failed instantiate InitialContextFactory weblogic.jndi.WLInitialContextFactory from classloader ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The WebLogic JMS server is up and running so the warning message we print is misleading.    If we include a copy of the jar file containing 'weblogic.jndi.WLInitialContextFactory' in the war's lib directory, this class loading issue goes away.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Is this a known issue or is there something else that needs to be configured?   On other app-servers (Glassfish, WebSphere), we don't see this issue.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>01:05:40,734 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.PoolByCri] (http--0.0.0.0-8080-1) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.spi.EISSystemException: createManagedConnection: javax.jms.JMSException: J2EE GJRA-01003: cause = Error occured when creating a JMS connection.; action = Please verify if JMS provider is up and configuration information for accessing the JMS provider is correctly specified: javax.resource.ResourceException: Error creating naming context instance: JBAS011843: Failed instantiate InitialContextFactory weblogic.jndi.WLInitialContextFactory from classloader ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader</p><p>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_06]</p><p>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_06]</p><p>     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_06]</p><p>     at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_06]</p><p>     at weblogic.jms.ra.RAUtils.make(RAUtils.java:410)</p><p>     at weblogic.jms.ra.RAUtils.make(RAUtils.java:427)</p><p>     at weblogic.jms.ra.RAUtils.toResourceException(RAUtils.java:478)</p><p>     at weblogic.jms.ra.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:144)</p><p>     at weblogic.jms.ra.ManagedFactoryBase.createManagedConnection(ManagedFactoryBase.java:476)</p><p>     at weblogic.jms.ra.GenericManagedConnectionFactory.createManagedConnection(Unknown Source)</p><p>     at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761)</p><p>     at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343)</p><p>     at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397)</p><p>     at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365)</p><p>     at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329)</p><p>     at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:302)</p><p>     at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464)</p><p>     at weblogic.jms.ra.Provider.allocateConnection(Provider.java:1424)</p><p>     at weblogic.jms.ra.FactoryBase.localCreateConnection(FactoryBase.java:122)</p><p>     at weblogic.jms.ra.FactoryBase.createConnectionImpl(FactoryBase.java:145)</p><p>     at weblogic.jms.ra.ConnectionFactoryBase.createConnection(ConnectionFactoryBase.java:15)</p><p>     at weblogic.jms.ra.GenericConnectionFactory.createConnection(Unknown Source)</p><p>     at testJboss.sendMsgToResultTopic(testJboss.java:77)    at testJboss.doGet(testJboss.java:55)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]</p><p>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final-SNAPSHOT.jar:7.1.1.Final-SNAPSHOT]</p><p>     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.12.Final.jar:]</p><p>     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.12.Final.jar:]</p><p>     at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]</p><p> Caused by: javax.jms.JMSException: J2EE GJRA-01003: cause = Error occured when creating a JMS connection.; action = Please verify if JMS provider is up and configuration information for accessing the JMS provider is correctly specified: javax.resource.ResourceException: Error creating naming context instance: JBAS011843: Failed instantiate InitialContextFactory weblogic.jndi.WLInitialContextFactory from classloader ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader</p><p>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_06]</p><p>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_06]</p><p>     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_06]</p><p>     at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_06]</p><p>     at weblogic.jms.ra.RAUtils.make(RAUtils.java:410)</p><p>     at weblogic.jms.ra.RAUtils.make(RAUtils.java:427)</p><p>     at weblogic.jms.ra.RAUtils.toJMSException(RAUtils.java:115)</p><p>     at weblogic.jms.ra.ManagedFactoryBase.createRPConnection(ManagedFactoryBase.java:1063)</p><p>     at weblogic.jms.ra.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:123)</p><p>     ... 31 more</p><p> Caused by: javax.resource.ResourceException: Error creating naming context instance: JBAS011843: Failed instantiate InitialContextFactory weblogic.jndi.WLInitialContextFactory from classloader ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader</p><p>     at weblogic.jms.ra.JndiResourceProvider.getResource(JndiResourceProvider.java:97)</p><p>     at weblogic.jms.ra.RAUtils.lookupUsingConnectorScheme(RAUtils.java:240)</p><p>     at weblogic.jms.ra.RAUtils.lookupUsingRpResourceLocation(RAUtils.java:181)</p><p>     at weblogic.jms.ra.ManagedFactoryBase.getFactory(ManagedFactoryBase.java:926)</p><p>     at weblogic.jms.ra.ManagedFactoryBase.createRPConnection(ManagedFactoryBase.java:1053)</p><p>     ... 32 more</p><p> Caused by: javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory weblogic.jndi.WLInitialContextFactory from classloader ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader</p><p>     at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)</p><p>     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681) [rt.jar:1.7.0_06]</p><p>     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) [rt.jar:1.7.0_06]</p><p>     at javax.naming.InitialContext.init(InitialContext.java:242) [rt.jar:1.7.0_06]</p><p>     at javax.naming.InitialContext.<init>(InitialContext.java:216) [rt.jar:1.7.0_06]</p><p>     at weblogic.jms.client.JMSConnectionFactory$1.run(JMSConnectionFactory.java:533)</p><p>     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)</p><p>     at weblogic.jms.common.CrossDomainSecurityManager.runAs(CrossDomainSecurityManager.java:131)</p><p>     at weblogic.jms.client.JMSConnectionFactory.createSubjectByAnonymous(JMSConnectionFactory.java:529)</p><p>     at weblogic.jms.WrappedInitialContextFactory.getInitialContext(WrappedInitialContextFactory.java:34)</p><p>     at weblogic.jms.ra.Provider.getInitialContext(Provider.java:1305)</p><p>     at weblogic.jms.ra.JndiResourceProvider.newInitialContext(JndiResourceProvider.java:80)</p><p>     at weblogic.jms.ra.JndiResourceProvider.getResource(JndiResourceProvider.java:95)</p><p>     ... 36 more</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/760027#760027">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in IronJacamar at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>