java - JCA Glassfish to JBoss/Wildfly -


i need able deploy .ear file containing .rar resource adapter jboss/wildfly. has been working gf. problem in .war file (which part of .ear) have web.xml:

<resource-ref>   <res-ref-name>eis/host</res-ref-name>   <res-type>javax.resource.cci.connectionfactory</res-type>   <res-auth>container</res-auth>   <res-sharing-scope>shareable</res-sharing-scope>   <lookup-name>java:/env/eis/host-somehost</lookup-name> </resource-ref> 

and jboss cannot find resource:

services missing/unavailable dependencies" => ["jboss.naming.context.java.module.\"hostconnector-ear-1.17-snapshot\".\"hostconnector-war-1.17-snapshot\".env.eis.host missing          [jboss.naming.context.java.jboss.resources.eis.host]"]} 

i have created element in standalone.xml, seams naming wrong or what:

<subsystem xmlns="urn:jboss:domain:resource-adapters:2.0">         <resource-adapters>             <resource-adapter id="host-ra">                 <archive>                     hostconnector-1.17-snapshot-local#hostconnector-rar-1.17-snapshot.rar                 </archive>                 <connection-definitions>                     <connection-definition class-name=".....jca.spi.hostmanagedconnectionfactory" jndi-name="java:/env/eis/host-somehost" enabled="true" use-java-context="false" pool-name="java:jboss/env/eis/host-somehost"/>                 </connection-definitions>             </resource-adapter>         </resource-adapters>     </subsystem> 

if have .rar packaged in .ear enough deploy ra.xml? resource-adapter jndi name defined?

the problem in ra.xml, packages names not set , glassfish ignored while jboss failed. fixing factories package name fixed issue.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -