Mule Anypoint studio引发org.xml.sax.SAXParseException错误

Mule Anypoint studio引发org.xml.sax.SAXParseException错误,mule,mule-studio,anypoint-studio,mulesoft,Mule,Mule Studio,Anypoint Studio,Mulesoft,我是Mule/anypoint studio平台的新手。 当我尝试从anypoint studio运行mule projcet时,我得到以下错误[1]。 我也在我的类路径中添加了那个特殊的jar(作为一个外部jar,它也出现在引用库部分中),所以我认为这不是类路径问题。 同样的项目也适用于其他人,只适用于我。我认为这是一些环境问题 原因可能是什么?为什么anypoint studio在将项目部署到运行时时抛出错误? Im使用anypoint studio 7.4.1版 <?xml vers

我是Mule/anypoint studio平台的新手。 当我尝试从anypoint studio运行mule projcet时,我得到以下错误[1]。 我也在我的类路径中添加了那个特殊的jar(作为一个外部jar,它也出现在引用库部分中),所以我认为这不是类路径问题。 同样的项目也适用于其他人,只适用于我。我认为这是一些环境问题 原因可能是什么?为什么anypoint studio在将项目部署到运行时时抛出错误? Im使用anypoint studio 7.4.1版

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:json-logger="http://www.mulesoft.org/schema/mule/json-logger"
....
<json-logger:logger doc:name="Log Get Locations  .../>

[1]aused by: org.mule.runtime.core.api.config.ConfigurationException: There were '3' errors while parsing the given file 'implementation/impl-locations.xml'.
Full list:
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 171; cvc-complex-type.2.4.a: Invalid content was found starting with element 'json-logger:logger'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "http://www.mulesoft.org/schema/mule/core":abstract-message-source, "http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-message-processor}' is expected.


除了名称空间之外,还必须在xsi:schemaLocation属性中添加模式位置

例如:

<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd"></mule>

实际上,我的xml配置没有问题。在重新启动anypoint studio后,这一切都消失了。我不知道为什么会在早期阶段发生