2 Replies Latest reply on Jun 20, 2013 6:40 AM by Keith Babo

    Failed to execute goal org.switchyard:switchyard-plugin

    mark zhang Newbie

      quickstarts

       

      camel-jms-binding

      mvn install

      ok

       

      camel-mail-binding

      mvn install

      ok

       

      when i add

                  <jms:binding.jms>

                      <jms:queue>HelloRequestQueue</jms:queue>

                      <jms:connectionFactory>#ConnectionFactory</jms:connectionFactory>

                      <jms:replyTo>HelloReplyQueue</jms:replyTo>

                  </jms:binding.jms>

      to camel-mail-binding

       

      err

      [ERROR] Failed to execute goal org.switchyard:switchyard-plugin:0.8.0.Final:conf

      igure (default) on project switchyard-quickstart-camel-mail-binding: Model [org.

      switchyard.config.model.switchyard.v1.V1SwitchYardModel] is invalid: cvc-complex

      -type.2.4.a: Invalid content was found starting with element 'jms:binding.jms'.

      One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":binding, "http://doc

      s.oasis-open.org/ns/opencsa/sca/200912":callback, "http://docs.oasis-open.org/ns

      /opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912

      ":policySetAttachment, "http://docs.oasis-open.org/ns/opencsa/sca/200912":extens

      ions}' is expected. -> [Help 1]

       

       

      ::jms

       

      <?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
          <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="camel-jms-binding" targetNamespace="urn:switchyard-quickstart:camel-jms-binding:0.1.0">
              <service name="GreetingService" promote="GreetingService">
                  <jms:binding.jms xmlns:jms="urn:switchyard-component-camel-jms:config:1.0">
                      <jms:queue>GreetingServiceQueue</jms:queue>
                      <jms:connectionFactory>#ConnectionFactory</jms:connectionFactory>
                  </jms:binding.jms>
              </service>
              <component name="GreetingService">
                  <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.camel.jms.binding.GreetingServiceBean"/>
                  <service name="GreetingService">
                      <interface.java interface="org.switchyard.quickstarts.camel.jms.binding.GreetingService"/>
                  </service>
              </component>
          </composite>
      </switchyard>
      
      

       

      ::mail

       

      <?xml version="1.0" encoding="UTF-8"?>
      <switchyard xmlns="urn:switchyard-config:switchyard:1.0" 
      xmlns:bean="urn:switchyard-component-bean:config:1.0" 
      xmlns:ftp="urn:switchyard-component-camel-ftp:config:1.0" 
      xmlns:mail="urn:switchyard-component-camel-mail:config:1.0" 
      xmlns:jms="urn:switchyard-component-camel-jms:config:1.0" 
      xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912">
        <sca:composite name="camel-mail-binding" targetNamespace="urn:switchyard-quickstart:camel-mail-binding:0.1.0">
          <sca:service name="PrintService" promote="PrintService/PrintService">
            <mail:binding.mail>
              <mail:host>localhost</mail:host>
              <mail:username>camel</mail:username>
              <mail:consume accountType="imap">
                <mail:initialDelay>0</mail:initialDelay>
                <mail:delay>100</mail:delay>
                <mail:copyTo>after-processing</mail:copyTo>
              </mail:consume>
            </mail:binding.mail>
          </sca:service>
          <sca:reference name="OutgoingPrintService" multiplicity="1..1" promote="PrintService/OutgoingPrintService">
            <mail:binding.mail>
              <mail:host>localhost</mail:host>
              <mail:username>camel</mail:username>
              <mail:produce>
                <mail:subject>Forwarded message</mail:subject>
                <mail:from>camel@localhost</mail:from>
                <mail:to>rider@camel</mail:to>
              </mail:produce>
            </mail:binding.mail>
                  <jms:binding.jms>
                      <jms:queue>HelloRequestQueue</jms:queue>
                      <jms:connectionFactory>#ConnectionFactory</jms:connectionFactory>
                      <jms:replyTo>HelloReplyQueue</jms:replyTo>
                  </jms:binding.jms>
          </sca:reference>
          <sca:component name="PrintService">
            <bean:implementation.bean class="org.switchyard.quickstarts.camel.mail.binding.PrintServiceImpl"/>
            <sca:service name="PrintService">
              <sca:interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
            </sca:service>
            <sca:reference name="OutgoingPrintService">
              <sca:interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
            </sca:reference>
          </sca:component>
        </sca:composite>
      </switchyard>
      
      eclipse tools