1

我有一个奇怪的情况,在 Mule 功能测试中加载的 Mule 配置会从带有 vm 的流中抛出以下类型的错误。令人讨厌的是,这个流程可以完美地作为 mule 应用程序运行,有时通过使用 mule studio 进行调整,我可以让测试运行,几乎是随机的。

<flow name="simpleOutBoundFlow">
    <vm:inbound-endpoint path="testV"
        name="test" />
    <logger level="ERROR"
        message="blah #[payload]" />
    <foo:outbound config-ref="fooOutbound" doc:name="baa" />
</flow>

错误发生在 vm: 行并说类似

org.mule.api.config.ConfigurationException:来自 URL [file:/D:/config.xml] 的 XML 文档中的第 21 行无效;嵌套异常是 org.xml.sax.SAXParseException;行号:21;列号:18;cvc-complex-type.2.4.a:发现以元素“vm:inbound-endpoint”开头的无效内容。“{”之一http://www.mulesoft.org/schema/mule/core “:annotations,” http://www.mulesoft.org/schema/mule/core “:description,” http://www .mulesoft.org/schema/mule/core ":abstract-message-source, " http://www.mulesoft.org/schema/mule/core ":abstract-inbound-endpoint, " http://www.mulesoft .org/schema/mule/core ":abstract-message-processor, " http://www.":abstract-outbound-endpoint, " http://www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule /core ":response}' 是预期的。 (org.mule.api.lifecycle.InitialisationException) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52)

有任何想法吗?对我来说真的很奇怪。

注意: foo:outbound 来自我使用 maven devkit archtype 生成的 devKit 更新站点

4

1 回答 1

2

这通常发生在mule-transport-vm项目类路径中缺少 JAR 时。确保它存在于具有范围的pom.xml文件中。provided

于 2013-06-28T16:45:32.330 回答