我将在从Java 7升级到Java 8的Jboss 7.2中部署war文件,但是在部署时出现了以下错误提示。请帮我解决
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "webservice-host.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"webservice-host.war\".undertow-deployment" => "org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cxf' available
最佳答案
尝试将这些配置添加到您的Spring Context XML文件中
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-xml.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
如果它不能解决您的问题,请在此处粘贴完整的堆栈跟踪