我有一个具有以下结构的EAR文件:
/
|- lib/
|- lib/tons-of.jar
|- client-version-check.jar
|- config-ejb.jar
|- cw2.war
|- software-version-registry-xml.jar
|- ... (tons of other war/jar files)
尝试在WildFly上部署它时(使用带有standalone-full.xml
的WildFly-8.0.0.Final),我收到以下错误:
service jboss.deployment.subunit."project-ear-4.0.0-SNAPSHOT-mssql-2005.ear"."client-version-check.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.subunit."project-ear-4.0.0-SNAPSHOT-mssql-2005.ear"."software-version-registry-xml.jar".INSTALL, service jboss.deployment.unit."project-ear-4.0.0-SNAPSHOT-mssql-2005.ear".deploymentCompleteService]
service jboss.deployment.subunit."project-ear-4.0.0-SNAPSHOT-mssql-2005.ear"."config-ejb.jar".component.CenterwareConfigBean.VIEW."centerware.config.CenterwareConfig".LOCAL (missing) dependents: [service jboss.naming.context.java.module."project-ear-4.0.0-SNAPSHOT-mssql-2005".cw2-war.env."centerware.servlets.FileUploadServlet".centerwareConfig]
service jboss.deployment.subunit."project-ear-4.0.0-SNAPSHOT-mssql-2005.ear"."config-ejb.jar".component.CenterwareKeyValue.VIEW."centerware.config.CenterwareKeyValue".LOCAL (missing) dependents: [service jboss.naming.context.java.module."project-ear-4.0.0-SNAPSHOT-mssql-2005".cw2-war.env.CenterwareKeyValue]
我的jboss-deployment-structure.xml
包括<ear-subdeployments-isolated>true</ear-subdeployments-isolated>
。
不幸的是,我不知道出了什么问题以及如何避免/解决这个问题。
答案 0 :(得分:0)
我的ear/META-INF/application.xml
设置了<initialize-in-order>true</initialize-in-order>
,看起来问题是由此引起的。由于我的application.xml是由maven-ear-plugin
创建的,因此列表按字母顺序排列,因此按字母顺序处理,这对我的应用程序不起作用。