从Eclipse - Mule IDE加载错误方案



我正在尝试创建我的第一个骡子服务器,但我得到一个错误的任何外部方案,我尝试和包括,

我的配置文件如下(工作在Eclipse Indigo与mule独立3.2安装):

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:spring="http://www.springframework.org/schema/beans"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
      xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz"
      xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
                  http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/current/mule-quartz.xsd
        http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd
        http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.2/mule-vm.xsd">

    <flow name="ChatListener">
        <quartz:inbound-endpoint jobName="eventTimer" repeatInterval="2000">
            <quartz:event-generator-job>
                <quartz:payload>Poll Chat DB</quartz:payload>
            </quartz:event-generator-job>
        </quartz:inbound-endpoint>
        <component>
            <singleton-object class="com.TimeLineListener.ChatListener" />
        </component>
        <vm:outbound-endpoint path="ChatMsgs" exchange-pattern="one-way"/>
    </flow>
    <flow name="TimeLineMsgSender">
        <composite-source>
            <!-- Incoming Chat Msgs -->
            <vm:inbound-endpoint path="ChatMsgs" exchange-pattern="one-way"/>
            <!-- Incoming SIEM Msgs -->
            <vm:inbound-endpoint path="SIEMMsgs" exchange-pattern="one-way"/>
            <!-- Incoming NMS Msgs -->
            <vm:inbound-endpoint path="NMSMsgs" exchange-pattern="one-way"/>
        </composite-source>
            <!-- Tested OutPut endpoint -->
         <stdio:outbound-endpoint system="OUT"/>

    </flow>

</mule>
and the errors i recieve are:
1.
The prefix "stdio" for element "stdio:outbound-endpoint" is not bound.  mule-config.xml ‪/ChatTester‬   line 41 XML Problem
2.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'vm:inbound-endpoint'. One of '{"http://www.mulesoft.org/schema/mule/core":abstract-inbound-endpoint}' is expected. mule-config.xml ‪/ChatTester‬   line 31 XML Problem
3.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'quartz:inbound-endpoint'. One of '{"http://www.mulesoft.org/schema/mule/core":description, "http://www.mulesoft.org/schema/mule/core":composite-source, "http://www.mulesoft.org/schema/mule/core":abstract-inbound-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-outbound-endpoint, "http://www.mulesoft.org/schema/mule/core":response}' is expected. mule-config.xml ‪/ChatTester‬   line 17 XML Problem

知道我做错了什么吗?

1.
The prefix "stdio" for element "stdio:outbound-endpoint" is not bound.      mule-config.xml &#8234;/ChatTester&#8236;       line 41 XML Problem

这个很简单:你错过了工作室名称空间声明。

2.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'vm:inbound-endpoint'. One of '{"http://www.mulesoft.org/schema/mule/core":abstract-inbound-endpoint}' is expected. mule-config.xml &#8234;/ChatTester&#8236;       line 31 XML Problem
3.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'quartz:inbound-endpoint'. One of '{"http://www.mulesoft.org/schema/mule/core":description, "http://www.mulesoft.org/schema/mule/core":composite-source, "http://www.mulesoft.org/schema/mule/core":abstract-inbound-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-outbound-endpoint, "http://www.mulesoft.org/schema/mule/core":response}' is expected.     mule-config.xml &#8234;/ChatTester&#8236;       line 17 XML Problem

对于这些:我不知道。也许是由于您在名称空间位置中使用的"当前"one_answers"3.2"的混合?试着用"3.2"代替" current "看看是否有帮助。

否则,在你的配置中没有明显的疯狂:)

实际上,这是Eclipse的问题,与您的配置无关。希望这能有所帮助:由于Mule的模式没有拆分为多个模式文件,因此关闭此功能是安全的。在Eclipse的首选项中,转到XML> XML Files> Validation并清除honor所有模式位置复选框。Mule配置文件现在应该再次验证无误了。"-MuleSolf博客。更多详细信息:http://blogs.mulesoft.org/overcoming-xml-validation-errors-in-eclipse-35/

最新更新