Встраивание рестлетов в Mule не работает в Mule 3.1.2 - PullRequest
1 голос
/ 24 ноября 2011

Я настраиваю поток в mule-config.xml на основе документации ( нажмите здесь ).Вот содержимое файла mule-config.xml:

<?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:tcp="http://www.mulesoft.org/schema/mule/tcp"
      xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
      xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns:restlet="http://www.mulesource.org/schema/mule/restlet"
      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.1/mule.xsd
    http://www.mulesoft.org/schema/mule/tcp http://www.mulesoft.org/schema/mule/tcp/3.1/mule-tcp.xsd
    http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.1/mule-vm.xsd
    http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.1/mule-cxf.xsd
    http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.1/mule-http.xsd
    http://www.mulesoft.org/schema/mule/restlet http://www.mulesoft.org/schema/mule/restlet/3.1/mule-restlet.xsd">

    <description>
        This configuration uses an HTTP endpoint to receive requests.
    </description>

    <flow name="fuxk">
        <inbound-endpoint   address="http://localhost:9002">
        </inbound-endpoint>
        <restlet:component restlet-ref="helloWorld"/>

    </flow>
    <spring:bean id="helloWorld" class="com.ggd543.mulerestletdemo.HelloWorldApplication"/>

</mule>

Эта конфигурация использует конечную точку HTTP для получения запросов. Но при запуске экземпляра mule я получил следующую ошибку:

In valid content was found starting with element 'restlet:component'

Похоже, что документация основана на mule 2.x.Как изменить конфигурацию в mule-config.xml для Mule 3.1.2?

1 Ответ

1 голос
/ 24 ноября 2011

Замените mulesource.org на mulesoft.org в all определениях пространства имен Restlet.

...