Translated message

A translation of this page exists in English.

EAP6 の jboss.naming.context.java.comp で missing/unsatisfied dependencies のメッセージが出力される

Solution Unverified - Updated -

Issue

  • EJB2.x アプリケーションがデプロイできません。以前のリリースの JBoss EAP から EAP6 にアップグレードすると、コードからアプリケーションルールを呼び出すのに必要な JAR がエラーになります。

  • JBoss EAP6 で、EJB2 ベースのアプリケーションをデプロイすると、以下の依存関係エラーが発生します。

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]
  • EJB jar "testEJBModule.jar""META-INF/jboss.xml" ファイルには以下のエントリがあります。
<?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>
  • EJB jar "testEJBModule.jar" の、"META-INF/ejb-jar.xml" ファイルには以下のエントリがあります。
<?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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content