Why does EAP6 report a missing or unsatisfied dependency error for jboss.naming.context.java.comp
Issue
-
Unable to deploy the EJB2.x based application, While upgrading from previous release of JBoss EAP to EAP6 as the JAR is failing which is required to invoke the application rules from the code.
-
While deploying an EJB2 based application on JBoss EAP6 it throws the following missing dependency error:
11:33:17,516 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.resources.eis.TestConnectionFactory (missing) dependents: [service jboss.naming.context.java.comp.testEJBModule.testEJBModule.TestStatefulEJB.env.eis.TestConnectionFactory, service jboss.naming.context.java.comp.testEJBModule.testEJBModule.TestStatefulEJB.env.eis.TestConnectionFactory]
- The EJB jar
"testEJBModule.jar"has the following entries inside it's"META-INF/jboss.xml"file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss
PUBLIC "-//JBoss//DTD JBOSS 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<jboss>
<enterprise-beans>
<session>
<ejb-name>TestStatefulEJB</ejb-name>
<jndi-name>ejb/TestStatefulEJB</jndi-name>
<local-jndi-name>ejb/local/TestStatefulEJB</local-jndi-name>
<resource-ref>
<res-ref-name>eis/TestConnectionFactory</res-ref-name>
<jndi-name>java:/eis/TestConnectionFactory</jndi-name>
</resource-ref>
</session>
</enterprise-beans>
</jboss>
- The EJB jar
"testEJBModule.jar"has the following entries inside it's"META-INF/ejb-jar.xml"file:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">
<display-name>TestEJBDemo</display-name>
<enterprise-beans>
<session>
<display-name>TestStatefulEJB</display-name>
<ejb-name>TestStatefulEJB</ejb-name>
<home>test.ejb.TestHome</home>
<remote>test.ejb.TestIntf</remote>
<local-home>test.ejb.TestLocalHome</local-home>
<local>test.ejb.TestLocalInt</local>
<ejb-class>test.ejb.TestStatefulEJB</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>eis/TestConnectionFactory</res-ref-name>
<res-type>javax.resource.cci.ConnectionFactory</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>
</session>
</enterprise-beans>
</ejb-jar>
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
