Mule dw:transform-message jax解析异常

时间:2016-05-19 21:16:13

标签: mule

我有一个问题。部署到运行时我的mule XML文件。

Caused by: java.io.FileNotFoundException: http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836) ~[?:1.8.0_74]
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[?:1.8.0_74]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647) ~[?:1.8.0_74]
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189) ~[?:1.8.0_74]
        at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:582) ~[?:1.8.0_74]
        at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:685) ~[?:1.8.0_74]
        at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530) ~[?:1.8.0_74]
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2171) ~[?:1.8.0_74]
        ... 52 more
org.mule.api.config.ConfigurationException: Line 15 in XML document from testmule.xml is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 111; cvc-complex-type.2.4.a: Invalid content was found starting with element 'dw:transform-message'. 

亲爱的骡子专家。 dw.xsd

缺少模式文件

3 个答案:

答案 0 :(得分:1)

如果您使用的是mavenized项目,请将数据编织依赖性添加为

    <dependency>
        <groupId>com.mulesoft.weave</groupId>
        <artifactId>mule-plugin-weave_2.11</artifactId>
        <version>${mule.version}</version>
        <scope>provided</scope>
    </dependency>

同时检查您的xml是否在mule基本标记中具有schemaLocation条目

http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd

xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw"

答案 1 :(得分:0)

将mule.tools.version升级到1.1 <mule.tools.version>1.1</mule.tools.version>,并且mule.version和mule.munit.support.version应该相同,以便maven更新所有与编织相关的依赖关系。

答案 2 :(得分:0)

每当我尝试在浏览器中转到http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd时,我都会得到一个404。浏览我最多可以找到http://www.mulesoft.org/schema/mule/ee/,没有dw文件夹。这可能是我的测试失败的原因。