Mule module publish subscribe failed to read xsd path












0















I'm trying to implement mule publish-subscribe module. I got following error:




cvc-complex-type.2.4.a: Invalid content was found starting with element 'pubsub:config'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "http://www.springframework.org/schema/beans":ref, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-exception-strategy, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":sub-flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":processor-chain, "http://www.mulesoft.org/schema/mule/core":custom-processor, "http://www.mulesoft.org/schema/mule/core":invoke, "http://www.mulesoft.org/schema/mule/core":abstract-global-intercepting-message-processor, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected.


Looks like, it's complaining about element



My Code:



    <?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd">
<pubsub:config name="my-config"/>
<flow name="testListenerTopicA">
<pubsub:listener config-ref="my-config" topic="topic-A"/>
<logger level="INFO" message="Received an event for topic A with payload #[payload]"/>
</flow>
<flow name="testListenerTopicB">
<logger level="INFO" message="Received an event for topic B with payload #[payload]"/>
</flow>
<flow name="testPublisherTopicA">
<pubsub:publish config-ref="my-config" topic="topic-A"/>
</flow>
<flow name="testPublisherTopicB">
<pubsub:publish config-ref="my-config" topic="topic-B"/>
</flow>
<flow name="testSubscribeTopicB">
<pubsub:subscribe config-ref="my-config" topic="topic-B" subscriberId="123" flow-ref="testListenerTopicB"/>
</flow>
<flow name="testUnsubscribeTopicB">
<pubsub:unsubscribe config-ref="my-config" topic="topic-B" subscriberId="123"/>
</flow>
</mule>


I would appreciate any help.










share|improve this question

























  • Where is the schema-definition section of your mule-config.xml?

    – user1760178
    Aug 15 '14 at 21:16











  • I didn't add it earlier. Now I've updated post with schema definition.

    – Neel
    Aug 15 '14 at 21:23
















0















I'm trying to implement mule publish-subscribe module. I got following error:




cvc-complex-type.2.4.a: Invalid content was found starting with element 'pubsub:config'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "http://www.springframework.org/schema/beans":ref, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-exception-strategy, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":sub-flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":processor-chain, "http://www.mulesoft.org/schema/mule/core":custom-processor, "http://www.mulesoft.org/schema/mule/core":invoke, "http://www.mulesoft.org/schema/mule/core":abstract-global-intercepting-message-processor, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected.


Looks like, it's complaining about element



My Code:



    <?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd">
<pubsub:config name="my-config"/>
<flow name="testListenerTopicA">
<pubsub:listener config-ref="my-config" topic="topic-A"/>
<logger level="INFO" message="Received an event for topic A with payload #[payload]"/>
</flow>
<flow name="testListenerTopicB">
<logger level="INFO" message="Received an event for topic B with payload #[payload]"/>
</flow>
<flow name="testPublisherTopicA">
<pubsub:publish config-ref="my-config" topic="topic-A"/>
</flow>
<flow name="testPublisherTopicB">
<pubsub:publish config-ref="my-config" topic="topic-B"/>
</flow>
<flow name="testSubscribeTopicB">
<pubsub:subscribe config-ref="my-config" topic="topic-B" subscriberId="123" flow-ref="testListenerTopicB"/>
</flow>
<flow name="testUnsubscribeTopicB">
<pubsub:unsubscribe config-ref="my-config" topic="topic-B" subscriberId="123"/>
</flow>
</mule>


I would appreciate any help.










share|improve this question

























  • Where is the schema-definition section of your mule-config.xml?

    – user1760178
    Aug 15 '14 at 21:16











  • I didn't add it earlier. Now I've updated post with schema definition.

    – Neel
    Aug 15 '14 at 21:23














0












0








0








I'm trying to implement mule publish-subscribe module. I got following error:




cvc-complex-type.2.4.a: Invalid content was found starting with element 'pubsub:config'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "http://www.springframework.org/schema/beans":ref, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-exception-strategy, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":sub-flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":processor-chain, "http://www.mulesoft.org/schema/mule/core":custom-processor, "http://www.mulesoft.org/schema/mule/core":invoke, "http://www.mulesoft.org/schema/mule/core":abstract-global-intercepting-message-processor, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected.


Looks like, it's complaining about element



My Code:



    <?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd">
<pubsub:config name="my-config"/>
<flow name="testListenerTopicA">
<pubsub:listener config-ref="my-config" topic="topic-A"/>
<logger level="INFO" message="Received an event for topic A with payload #[payload]"/>
</flow>
<flow name="testListenerTopicB">
<logger level="INFO" message="Received an event for topic B with payload #[payload]"/>
</flow>
<flow name="testPublisherTopicA">
<pubsub:publish config-ref="my-config" topic="topic-A"/>
</flow>
<flow name="testPublisherTopicB">
<pubsub:publish config-ref="my-config" topic="topic-B"/>
</flow>
<flow name="testSubscribeTopicB">
<pubsub:subscribe config-ref="my-config" topic="topic-B" subscriberId="123" flow-ref="testListenerTopicB"/>
</flow>
<flow name="testUnsubscribeTopicB">
<pubsub:unsubscribe config-ref="my-config" topic="topic-B" subscriberId="123"/>
</flow>
</mule>


I would appreciate any help.










share|improve this question
















I'm trying to implement mule publish-subscribe module. I got following error:




cvc-complex-type.2.4.a: Invalid content was found starting with element 'pubsub:config'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "http://www.springframework.org/schema/beans":ref, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-exception-strategy, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":sub-flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":processor-chain, "http://www.mulesoft.org/schema/mule/core":custom-processor, "http://www.mulesoft.org/schema/mule/core":invoke, "http://www.mulesoft.org/schema/mule/core":abstract-global-intercepting-message-processor, "http://www.mulesoft.org/schema/mule/core":custom-queue-store, "http://www.mulesoft.org/schema/mule/core":abstract-processing-strategy}' is expected.


Looks like, it's complaining about element



My Code:



    <?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:pubsub="http://www.mulesoft.org/schema/mule/pubsub"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/pubsub http://www.mulesoft.org/schema/mule/pubsub/current/mule-pubsub.xsd">
<pubsub:config name="my-config"/>
<flow name="testListenerTopicA">
<pubsub:listener config-ref="my-config" topic="topic-A"/>
<logger level="INFO" message="Received an event for topic A with payload #[payload]"/>
</flow>
<flow name="testListenerTopicB">
<logger level="INFO" message="Received an event for topic B with payload #[payload]"/>
</flow>
<flow name="testPublisherTopicA">
<pubsub:publish config-ref="my-config" topic="topic-A"/>
</flow>
<flow name="testPublisherTopicB">
<pubsub:publish config-ref="my-config" topic="topic-B"/>
</flow>
<flow name="testSubscribeTopicB">
<pubsub:subscribe config-ref="my-config" topic="topic-B" subscriberId="123" flow-ref="testListenerTopicB"/>
</flow>
<flow name="testUnsubscribeTopicB">
<pubsub:unsubscribe config-ref="my-config" topic="topic-B" subscriberId="123"/>
</flow>
</mule>


I would appreciate any help.







mule publish-subscribe






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 18 '14 at 21:01









David Dossot

32.7k43065




32.7k43065










asked Aug 15 '14 at 20:50









NeelNeel

117110




117110













  • Where is the schema-definition section of your mule-config.xml?

    – user1760178
    Aug 15 '14 at 21:16











  • I didn't add it earlier. Now I've updated post with schema definition.

    – Neel
    Aug 15 '14 at 21:23



















  • Where is the schema-definition section of your mule-config.xml?

    – user1760178
    Aug 15 '14 at 21:16











  • I didn't add it earlier. Now I've updated post with schema definition.

    – Neel
    Aug 15 '14 at 21:23

















Where is the schema-definition section of your mule-config.xml?

– user1760178
Aug 15 '14 at 21:16





Where is the schema-definition section of your mule-config.xml?

– user1760178
Aug 15 '14 at 21:16













I didn't add it earlier. Now I've updated post with schema definition.

– Neel
Aug 15 '14 at 21:23





I didn't add it earlier. Now I've updated post with schema definition.

– Neel
Aug 15 '14 at 21:23












1 Answer
1






active

oldest

votes


















0














Probably you didn't add the module to the project. It doesn't get add to the build and then Mule can not find the definitions for the elements.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25334035%2fmule-module-publish-subscribe-failed-to-read-xsd-path%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Probably you didn't add the module to the project. It doesn't get add to the build and then Mule can not find the definitions for the elements.






    share|improve this answer




























      0














      Probably you didn't add the module to the project. It doesn't get add to the build and then Mule can not find the definitions for the elements.






      share|improve this answer


























        0












        0








        0







        Probably you didn't add the module to the project. It doesn't get add to the build and then Mule can not find the definitions for the elements.






        share|improve this answer













        Probably you didn't add the module to the project. It doesn't get add to the build and then Mule can not find the definitions for the elements.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 22 '18 at 1:50









        Alejandro DobniewskiAlejandro Dobniewski

        905713




        905713






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25334035%2fmule-module-publish-subscribe-failed-to-read-xsd-path%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Costa Masnaga

            Fotorealismo

            Sidney Franklin