获取错误消息作为无法读取架构文档 'http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd'

Getting error message as Failed to read schema document 'http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd'

我正在尝试在 Mule standalone 3.8.1 上部署 Mule 应用程序,但我收到此错误消息:

Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[?:?]

当使用 Mule 服务器 3.8.2 EE 从 Anypoint Studio 运行 时它工作正常。

如果您使用maven,请为dataweave添加maven依赖。

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

希望对您有所帮助。

独立的 Mule 运行时也必须是 EE 版本,DataWeave 才能工作。你的3.8.1是EE版本吗?

DataWeave 是一项企业功能,您不能在部署到 CE 运行时时使用它。