在 JBoss AS7 中部署耳朵时出错
Error while deploying ear in JBoss AS7
我正在将 EJB 应用程序从 OC4j 迁移到 JBoss AS7,我能够在 JBoss 上部署 ear,但是我在控制台中收到一个新的 missing/unsatisfied 依赖项错误,控制台日志如下:
17:30:38,055 INFO [org.jboss.as.ejb3] (MSC service thread 1-3) JBAS014211: No jndi bindings will be created for EJB Demo/fixedbuild/AttributeGroup since no
views are exposed
17:30:39,431 INFO [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "Demo.ear" (runtime-name : "Demo.ear")
17:30:39,432 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.resources.jdbc.DemoManagementDataSource (missing) dependents: [service jboss.naming.context.java.comp.Demo
.Demo-framework-ejb.Demo/framework/PerformanceMeasurementHome.env.jdbc.DemoManagementDataSource, service jboss.naming.context.java.comp.Demo.Demo-framework-ejb.Demo/framework/VisualizationEnvironmentHome.env.jdbc.DemoManagementDataSource, service jboss.naming.context.java.comp.Demo.Demo-framework-ejb.Demo/framework/UseCaseHome.env.jdbc.DemoManagementDataSource]
17:30:39,534 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
17:30:39,538 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
17:30:39,545 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.3.2.GA (AS 7.4.2.Final-redhat-2) started (with errors) in 12138ms - Started 2
080 of 2226 services (108 services failed or missing dependencies, 95 services are lazy, passive or on-demand)
谁能指导我,这是什么错误,我该如何解决?
您好,您是否为 JDBC 连接创建了一个模块? https://developer.jboss.org/wiki/DataSourceConfigurationInAS7
如果是这样,那么您需要在 WAR/EAR 中创建模块依赖项以创建模块。例如在你的 MANIFEST.MF 你应该有一行:
依赖关系:com.mysql
有关详细信息,请参阅 https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7。
我正在将 EJB 应用程序从 OC4j 迁移到 JBoss AS7,我能够在 JBoss 上部署 ear,但是我在控制台中收到一个新的 missing/unsatisfied 依赖项错误,控制台日志如下:
17:30:38,055 INFO [org.jboss.as.ejb3] (MSC service thread 1-3) JBAS014211: No jndi bindings will be created for EJB Demo/fixedbuild/AttributeGroup since no
views are exposed
17:30:39,431 INFO [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "Demo.ear" (runtime-name : "Demo.ear")
17:30:39,432 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.resources.jdbc.DemoManagementDataSource (missing) dependents: [service jboss.naming.context.java.comp.Demo
.Demo-framework-ejb.Demo/framework/PerformanceMeasurementHome.env.jdbc.DemoManagementDataSource, service jboss.naming.context.java.comp.Demo.Demo-framework-ejb.Demo/framework/VisualizationEnvironmentHome.env.jdbc.DemoManagementDataSource, service jboss.naming.context.java.comp.Demo.Demo-framework-ejb.Demo/framework/UseCaseHome.env.jdbc.DemoManagementDataSource]
17:30:39,534 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
17:30:39,538 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
17:30:39,545 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.3.2.GA (AS 7.4.2.Final-redhat-2) started (with errors) in 12138ms - Started 2
080 of 2226 services (108 services failed or missing dependencies, 95 services are lazy, passive or on-demand)
谁能指导我,这是什么错误,我该如何解决?
您好,您是否为 JDBC 连接创建了一个模块? https://developer.jboss.org/wiki/DataSourceConfigurationInAS7
如果是这样,那么您需要在 WAR/EAR 中创建模块依赖项以创建模块。例如在你的 MANIFEST.MF 你应该有一行:
依赖关系:com.mysql
有关详细信息,请参阅 https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7。