首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Mule 3.1.2中无法在Mule中嵌入Restlet

在Mule 3.1.2中无法在Mule中嵌入Restlet
EN

Stack Overflow用户
提问于 2011-11-24 10:36:30
回答 1查看 464关注 0票数 1

我根据文档(click here)在mule-config.xml中配置了一个流。下面是mule-config.xml中的内容:

代码语言:javascript
复制
<?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端点来接收requests.But当我启动mule实例时,我得到了以下错误:

看起来文档是基于Mule2.x的。如何更改Mule 3.1.2的mule-config.xml中的配置?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-11-24 10:49:52

all您的Restlet命名空间定义中,用mulesoft.org替换mulesource.org。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8251617

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档