首页 > 解决方案 > Jboss7.2和Java8

问题描述

我将在 Jboss 7.2 中部署从 java7 升级到 java8 的 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

标签: javaspringspring-bootjbosscxf

解决方案


尝试将这些配置添加到您的 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"/>

如果它没有解决您的问题,请在此处粘贴完整的堆栈跟踪


推荐阅读