按照此处的说明进行操作:https://access.redhat.com/solutions/168093我修改了JAR名称以匹配我们使用的版本。
当部署cfusion.ear时,它会在错误日志中失败。
"{
\"WFLYCTL0080: Failed services\" =>
{\"jboss.deployment.subunit."cfusion.ear"."cfusion.war".INSTALL\" =>
\"org.jboss.msc.service.StartException in service jboss.deployment.subunit."cfusion.ear"."cfusion.war".INSTALL:
WFLYSRV0153: Failed to process phase INSTALL of subdeployment "cfusion.war" of deployment "cfusion.ear"
Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/web/SpringServletContainerInitializer
(Module "org.springframework.spring:main" from local module loader @42f30e0a
(finder: local module finder @24273305
(roots: C:\java_dev\jboss7\modules,C:\java_dev\jboss7\modules\system\layers\base\.overlays\layer-base-jboss-eap-7.0.3.CP,C:\java_dev\jboss7\modules\system\layers\base
))): javax/servlet/ServletContainerInitializer\"},
\"WFLYCTL0180: Services with missing/unavailable dependencies\" =>
[\"jboss.deployment.unit."cfusion.ear".deploymentCompleteService is missing [jboss.deployment.subunit."cfusion.ear"."cfusion.war".deploymentCompleteService]\"]
}"
如果删除了jboss-deployment-structure.xml,则部署可以正常工作,但显然Spring不可用。是否有其他需要修改的配置文件?
答案 0 :(得分:2)
感谢RedHat的支持!
解决方案是将此行添加到MODULES.XML文件中的依赖项
<module name="javax.servlet.api"/>