4 Replies Latest reply on May 22, 2013 9:34 AM by Keith Babo

    Bug in org.switchyard.component.camel.amqp module dependencies?

    Jan Bares Newbie

      Hi,

       

      I have JBoss AS 7.1.1 with SwitchYard 0.8 installed. I tried to deploy camel-amqp-binding quickstart sample with standalone C++ broker, so I created new JBoss module for qpid client, modules/org/apache/qpid/main/module.xml


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

       

      <module xmlns="urn:jboss:module:1.1" name="org.apache.qpid">

       

          <resources>

              <resource-root path="geronimo-jms_1.1_spec-1.0.jar"/>

              <resource-root path="qpid-all.jar"/>

              <resource-root path="qpid-client-0.18.jar"/>

              <resource-root path="qpid-common-0.18.jar"/>

              <resource-root path="slf4j-api-1.6.4.jar"/>

              <resource-root path="slf4j-nop-1.6.4.jar"/>

          </resources>

       

          <dependencies>

              <module name="javax.api" export="true" />

              <module name="javax.jms.api" export="true" />

          </dependencies>

       

      </module>

       

      Then I started JBoss with standalone.xml and placed switchyard-quickstart-camel-amqp-binding.jar to deployments folder. The org.switchyard.component.camel.amqp module wont' start because of:

       

      17:05:00,721 WARN  [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.switchyard.component.camel.amqp.model.CamelAmqpBindingModel in Module "org.switchyard.component.camel.amqp:main" from local module loader @2471fd20 (roots: C:\Programs.Java\jboss-as-7.1.1.Final\modules): java.lang.LinkageError: Failed to link org/switchyard/component/camel/amqp/model/CamelAmqpBindingModel (Module "org.switchyard.component.camel.amqp:main" from local module loader @2471fd20 (roots: C:\Programs.Java\jboss-as-7.1.1.Final\modules))

      ...

      Caused by: java.lang.ClassNotFoundException: org.switchyard.component.camel.jms.model.CamelJmsBindingModel from [Module "org.switchyard.component.camel.amqp:main" from local module loader @2471fd20 (roots: C:\Programs.Java\jboss-as-7.1.1.Final\modules)]

       

      There is another WARN and ERROR like that for ClassNotFoundException: org.switchyard.component.camel.amqp.model.CamelAmqpBindingModel and ClassNotFoundException: org.switchyard.component.camel.amqp.model.v1.V1CamelAmqpBindingModel

       

      Then I added org.switchyard.component.camel.jms dependency to module/org/switchyard/component/camel/amqp/main.module.xml:

              <module name="javax.api"/>

              <module name="org.switchyard.api"/>

              <module name="org.switchyard.common"/>

              <module name="org.switchyard.common.camel"/>

              <module name="org.switchyard.component.camel.jms"/> <!-- added -->

              <module name="org.switchyard.config"/>

              <module name="org.switchyard.deploy"/>

              <module name="org.switchyard.jaxb-impl"/>

       

      And the errors went away. Is this a bug in org.switchyard.component.camel.amqp module?

       

      Thanks, Jan