Mule独立ESB社区版本无法识别任何ftp:端点

时间:2013-05-28 07:55:17

标签: ftp mule mule-studio

我用Mule Studio创建了一个简单的骡子流:

<flow name="soapService" doc:name="soapService">
        <http:inbound-endpoint address="http://localhost:8888"
            exchange-pattern="request-response" doc:name="HTTP">
            <cxf:jaxws-service serviceClass="com.testing.Person" />
        </http:inbound-endpoint>

        <component class="com.testing.TestComponent" doc:name="Java"/>
        <ftp:outbound-endpoint host="localhost" port="21" outputPattern="#[function:datestamp:dd-MM-yy]_#[function:systime]" responseTimeout="10000" doc:name="FTP"  password="xxx"  user="ftpuser"/>
        <smtp:outbound-endpoint host="xxx" user="xxx" password="xxx" to="xxx@xxx.com" from="xxx@xxx.com" subject="Testing" responseTimeout="10000" doc:name="SMTP"/>

</flow>

这适用于mule Studio发布,Run as - &gt; Mule应用程序,但当我将其导出为mule可部署存档并启动我的mule独立esb时,它无法部署,嵌套异常Invalid content was found starting with element 'ftp:inbound-endpoint'.

如果我删除了ftp:端点,它可以正常工作。在其他流程中也是如此。任何ftp-endpoint,in或outbound都会导致异常。

Mulestudio版本:3.4.0

骡-独立-3.4.0

有什么想法吗?

2 个答案:

答案 0 :(得分:2)

原因是,Mule Studio输入企业版命名空间和ftp端点的URL。

请参阅:http://www.mulesoft.org/documentation/display/current/FTP+Transport+Reference

即使你很难改变Mule Studio中的命名空间和网址,它也会将其更改回ee。所以我必须导出项目并打开流文件并在部署zip之前进行更改。

    <mule xmlns:ftp="http://www.mulesoft.org/schema/mule/ee/ftp" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ce/ftp http://www.mulesoft.org/schema/mule/ee/ftp/current/mule-ftp-ee.xsd">

<mule xmlns:ftp="http://www.mulesoft.org/schema/mule/ftp" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ftp http://www.mulesoft.org/schema/mule/ftp/3.4/mule-ftp.xsd">

答案 1 :(得分:1)

为了能够使用社区运行时,您必须手动安装它。 http://www.mulesoft.org/documentation/display/current/Adding+Community+Runtime

在此之后,您可以毫无问题地使用CE名称空间。

HTH