org.xml.sax.SAXParseException:schema_reference.4:无法读取架构文档' http://www.mulesoft.org/schema/mule/amqp/3.1/mule-amqp.xsd'

时间:2015-12-22 02:29:03

标签: eclipse mule amqp

<?xml version="1.0" encoding="UTF-8"?>
 <mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
  xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
  xmlns="http://www.mulesoft.org/schema/mule/core"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:file="http://www.mulesoft.org/schema/mule/file"
  xmlns:spring="http://www.springframework.org/schema/beans"
  xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
  xmlns:test="http://www.mulesoft.org/schema/mule/test" 
  xmlns:script="http://www.mulesoft.org/schema/mule/scripting"
  xmlns:amqp="http://www.mulesoft.org/schema/mule/amqp"
  xsi:schemaLocation="http://www.mulesoft.org/schema/mule/jms    http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd
http://www.mulesoft.org/schema/mule/file       http://www.mulesoft.org/schema/mule/file/current/mule-file.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/file   http://www.mulesoft.org/schema/mule/file/3.1/mule-file.xsd
 http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.2/mule-jms.xsd
http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/test/3.1/mule-test.xsd
http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/3.1/mule-scripting.xsd
http://www.mulesoft.org/schema/mule/amqp http://www.mulesoft.org/schema/mule/amqp/3.1/mule-amqp.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd" >
    <amqp:connector name="jcab" connectionFactory-ref="org.apache.activemq.ActiveMQConnectionFactory" host="localhost" port="5672"  username="admin" password="admin" specification="1.1" doc:name="Active MQ"> <service-overrides sessionHandler="org.mule.session.NullSessionHandler"/>   </amqp:connector></mule> 

enter image description here 请帮助我,我在两天内真的遇到了这个问题。我尝试了很多例子。帮助将是适合的。谢谢。

1 个答案:

答案 0 :(得分:1)

我认为你错过了项目类路径中amqp传输的依赖。

Maven支持

添加以下存储库:

<repository>
  <id>muleforge-repo</id>
  <name>MuleForge Repository</name>
  <url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>
  <layout>default</layout>
</repository>

要将Mule AMQP传输添加到Maven项目,请添加以下依赖项:

<dependency>
  <groupId>org.mule.transports</groupId>
  <artifactId>mule-transport-amqp</artifactId>
  <version>x.y.z</version>
</dependency>

https://github.com/mulesoft/mule-transport-amqp
https://github.com/mulesoft/mule-transport-amqp/blob/master/GUIDE.md

-Shanky G。