我正在尝试在 JBoss (5.1.0.GA) 上将 Mule ESB 应用程序部署为 .war 文件。当我启动 JBoss 时,出现以下错误:
13:37:06,952 ERROR [StandardContext] Context [/OMS] startup failed due to previous errors
java.lang.RuntimeException: mapped-name is required for org.apache.cxf.binding.BindingFactoryManagerImpl/bus of deployment OMS.war
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs (WebResourceHandler.java:287)
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550)
这是 jboss-classloading.xml
<classloading xmlns="urn:jboss:classloading:1.0"
name="OMS.war"
domain="OMS"
export-all="NON_EMPTY"
import-all="false">
</classloading>
jboss-web.xml
<jboss-web>
<class-loading>
<loader-repository>
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
和 web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>org.mule.config</param-name>
<param-value>_includes.xml,_subflows.xml,monitor_flow.xml,claim_flow.xml,orders_flows.xml,parcel_flow.xml,create_claim_flow.xml,request_flows.xml,retry_flow.xml,inbound_parcel_flow.xml,server_status_flow.xml,insurance_policy_flow.xml</param-value>
</context-param>
<listener>
<listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
</listener>
</web-app>
这 3 个 xml 文件在 WEB-INF 下。所有 .jar 文件都在 WEB-INF/lib 下
任何帮助,将不胜感激。谢谢你。