Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Can't find a schema location for the amqp:outbound and amqp:inbound endpoints anymore #52

Closed
larisa-pozhilova opened this issue Dec 20, 2013 · 6 comments

Comments

@larisa-pozhilova
Copy link

Hey, guys!

I've started to get the exception for the flow, which used to work couple of days before. The flow is:

<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:amqp="http://www.mulesoft.org/schema/mule/amqp"
      xmlns:context="http://www.springframework.org/schema/context"
      version="EE-3.4.0" 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
                            http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
                            http://www.mulesoft.org/schema/mule/amqp http://www.mulesoft.org/schema/mule/amqp/current/mule-amqp.xsd">

    <context:property-placeholder location="rbi-ps-amqp-connector.${MULE_ENV}.properties"  ignore-unresolvable="true"/>

    <!-- for testing -->
        <flow name="testHttpFlowForHappyPath"
          doc:name="testHttpFlowForHappyPath"
          doc:description="This flow is an http flow for sending a message to AMQP endpoint.">
        <http:inbound-endpoint exchange-pattern="request-response"
                               host="${rbi.http.happyPath.host}"
                               port="${rbi.http.happyPath.port}"
                               doc:name="HTTP"
                               contentType="application/json"
                               mimeType="application/json"/>
                <logger message="!! - inbound message on the http test flow"
                        level="INFO" category="com.rbi.http-test-input"
                        doc:name="Logger"/>


        <set-variable variableName="exchange" value="Notification" doc:name="Variable"/>
        <set-variable variableName="routingKey" value="someKey" doc:name="Variable"/>


                <amqp:outbound-endpoint connector-ref="amqpConnector"
                                        exchange-pattern="one-way"
                                        exchangeName="${rbi.amqp.happyPath.exchange.name}"
                                        exchangeType="direct"
                                        exchangeAutoDelete="false"
                                        routingKey="${rbi.amqp.happyPath.routingKey}"
                                        exchangeDurable="true"
                                        queueName="${rbi.amqp.happyPath.queue}"
                                        queueDurable="true">
                </amqp:outbound-endpoint>
                <set-payload value="OK" doc:name="Set Payload"/>
        <exception-strategy ref="RabbitMQFailoverExceptionStrategy" doc:name="Reference Exception Strategy"/>
    </flow>

The exception is:

2013-12-20 11:56:02,004 [main] WARN  org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.mulesoft.org/schema/mule/amqp/current/mule-amqp.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)
    at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:113)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89)
    at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109)
    at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119)
    at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
    at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
    at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
    at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
    at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
    at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)

Have you changed anything is the schema location so far?

I need the help from you urgently.

Thanks,
Laura.

@fernandofederico1984
Copy link

check that you have the amqp connector in your maven pom. you are probably missing that library

@larisa-pozhilova
Copy link
Author

Thank you :)

@SriaariGanesh
Copy link

Hi , I have got the same exception ,can u pls tell me how did u resolve this

@ddossot
Copy link
Contributor

ddossot commented Jun 27, 2016

@GaneshApigee Read answer from @fernandofederico1984

@SriaariGanesh
Copy link

Hi ...i couldnt see anything there..can u please help me to find the answer

@SriaariGanesh
Copy link

i got the below exception when i try to deploy both in studio and cloudhub..

org.mule.module.launcher.DeploymentInitException: SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'amqp:outbound-endpoint'. One of '{"http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-outbound-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-message-processor, "http://www.mulesoft.org/schema/mule/core":response, "http://www.mulesoft.org/schema/mule/core":legacy-abstract-exception-strategy, "http://www.mulesoft.org/schema/mule/core":abstract-message-info-mapping}' is expected.

i have included this jar in pom.xml

org.mule.transports mule-transport-amqp 3.6.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants