在Websphere 6.1
上发布我的应用程序时,发布失败并显示以下错误:
The application cannot start: ApplicationEAR
com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.metadata.MetaDataException: CNTR0146E: The META-INF/ibm-ejb-jar-bnd.xml bindings file contained in the MyApplicationEJB.jar module has a configuration error at line number: -1, column number: -1.
com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImpl.java:3829)
com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:172)
com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:306)
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:581)
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1495)
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4104)
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4202)
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
..........
ibm-ejb-jar-bnd.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar-bnd xmlns="http://websphere.ibm.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-ejb-jar-bnd_1_0.xsd" version="1.0">
<session name="PendingNotificationProcessor">
<resource-ref name="PendingNotificationQueueCF"
binding-name="jms/PendingNotificationQueueFactory"></resource-ref>
<resource-ref name="PendingNotificationQueue"
binding-name="jms/PendingNotificationQueue"></resource-ref>
</session>
<session name="NotificationSender" simple-binding-name="ejb/NotificationSender">
</session>
</ejb-jar-bnd>
任何建议? 提前致谢
答案 0 :(得分:0)
检查ibm-ejb-jar-bnd.xml
绑定文件以查找RAD中的错误。