2017-01-23 144 views
2

按照此處的說明:https://access.redhat.com/solutions/168093我修改了JAR名稱以匹配我們使用的版本。使用Spring模塊在JBoss 7上部署Coldfusion EAR失敗

當發生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不可用。是否有另一個需要修改的配置文件?

回答

2

感謝RedHat的支持!

的解決方案是這一行添加到依賴於MODULES.XML文件

<module name="javax.servlet.api"/>