无法在部署描述符/注释中找到resource-ref name *。 META-INF / IBM-EJB-JAR-ext.xml

时间:2014-04-04 02:27:30

标签: java java-ee websphere jndi ibm-rad

我正在使用Rational Application Developer(RAD)v8.0.4.3,并且在尝试将我的应用程序重新发布到Websphere v8.0.0.7时遇到了这个问题。

控制台需要很长时间才能确定它找不到META-INF/ibm-ejb-jar-ext.xml中部署描述符/注释中声明的resource-ref。但是,对于它无法找到的每个引用,我对每个类进行了三次检查,并且可以在其上方看到正确的@Resource(name = "jdbc/SomethingDS", type = javax.sql.DataSource.class)

ibm-ejb-jar-bnd.xml注意:而不是* -ext.xml )中提供标题消息的示例引用是:

<message-driven name="SomeMDB">
        ...
        <resource-ref name="jdbc/SomethingDS"
            binding-name="jdbc/TheServerDAO" />
        ...
</message-driven>

ibm-ejb-jar-ext.xml

<message-driven name="SomeMDB">
    <resource-ref name="jdbc/SomethingDS" isolation-level="..."/>
</message-driven>

每次我重新发布更改时,它会在每个参考查找中挂起约2分钟,然后最终打印出标题行:

[4/04/14 13:14:44:612 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 8, column 87.
[4/04/14 13:14:44:613 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 11, column 87.
[4/04/14 13:14:44:614 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 14, column 87.
[4/04/14 13:14:44:615 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 17, column 87.
[4/04/14 13:14:44:616 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 20, column 87.
[4/04/14 13:14:44:617 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 24, column 87.
[4/04/14 13:15:14:993 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 9, column 87.
[4/04/14 13:15:14:993 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 12, column 87.
[4/04/14 13:15:14:994 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 15, column 87.
[4/04/14 13:15:14:995 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 18, column 87.
[4/04/14 13:15:14:995 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 21, column 87.
[4/04/14 13:15:14:996 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 24, column 87.
[4/04/14 13:15:14:997 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 27, column 87.
[4/04/14 13:15:14:997 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annotation.  META-INF/ibm-ejb-jar-ext.xml: line 30, column 87.
[4/04/14 13:15:14:998 EST] 0000006e commonext     W com.ibm.ejs.models.base.extensions.ejbext.serialization.EjbextSAXXMLHandler setAttribValue Unable to locate resource-ref name "jdbc/SomethingDS" in the deployment descriptor/annota

更糟糕的是,有时耳朵应用程序决定重新启动并且该过程再次开始。

此问题导致每次延迟最多30分钟。单。重新发布。所以任何帮助都会受到指数的赞赏。

0 个答案:

没有答案