Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3773

Uable to use "camel-sap" (blueprint form) in JBoss Fuse 6.1.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.1
    • jboss-fuse-6.1
    • Camel
    • % %
    • Hide

      1. unzip "jboss-fuse-full-6.1.0.redhat-379.zip" to a new folder.
      2. open "Fuse_HOME/etc/custom.properties" flie, modify "org.osgi.framework.system.packages.extra" attribute as below:
      ~~~
      org.osgi.framework.system.packages.extra = \
      org.apache.karaf.branding, \
      com.sun.org.apache.xalan.internal.xsltc.trax, \
      com.sun.org.apache.xerces.internal.dom, \
      com.sun.org.apache.xerces.internal.jaxp, \
      com.sun.org.apache.xerces.internal.xni, \
      com.sun.jndi.ldap, \
      com.sap.conn.jco, \
      com.sap.conn.jco.ext, \
      com.sap.conn.jco.monitor, \
      com.sap.conn.jco.rt, \
      com.sap.conn.jco.server
      ~~~
      3. copy files "sapjco3.jar" and "libsapjco3.so" to "Fuse_HOME\lib", and then start it with command "bin/fuse".
      4. running below commands one by one:
      ---features:install camel-groovy
      ---osgi:install mvn:org.fusesource/camel-sap/1.0.0.redhat-379 # ID is 253 and the status is "Installed"
      ---osgi:start 253, the status became "Active"
      5. copy "sap-test.xml" to "Fuse_HOME\deploy" folder and then the error shows:
      ~~~
      21:36:54,153 | ERROR | edhat-379/deploy | BlueprintContainerImpl | 9 - org.apache.aries.blueprint.core - 1.0.1.redhat-610379 | Unable to start blueprint container for bundle sap-test.xml
      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a matching constructor on class org.fusesource.camel.component.sap.model.rfc.impl.DestinationDataImpl for arguments [] when instanciating bean nplDestinationData
      at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:336)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_35]
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_35]
      at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:676)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:374)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:270)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:233)[9:org.apache.aries.blueprint.core:1.0.1.redhat-610379]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[11:org.apache.aries.util:1.0.1.redhat-610379]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[11:org.apache.aries.util:1.0.1.redhat-610379]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[11:org.apache.aries.util:1.0.1.redhat-610379]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[11:org.apache.aries.util:1.0.1.redhat-610379]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[11:org.apache.aries.util:1.0.1.redhat-610379]
      at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4650)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.Felix$4.run(Felix.java:2123)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.Felix.runInContext(Felix.java:2147)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2121)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247)[7:org.apache.felix.fileinstall:3.3.11.redhat-610379]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219)[7:org.apache.felix.fileinstall:3.3.11.redhat-610379]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:508)[7:org.apache.felix.fileinstall:3.3.11.redhat-610379]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.3.11.redhat-610379]
      ~~~

      Show
      1. unzip "jboss-fuse-full-6.1.0.redhat-379.zip" to a new folder. 2. open "Fuse_HOME/etc/custom.properties" flie, modify "org.osgi.framework.system.packages.extra" attribute as below: ~~~ org.osgi.framework.system.packages.extra = \ org.apache.karaf.branding, \ com.sun.org.apache.xalan.internal.xsltc.trax, \ com.sun.org.apache.xerces.internal.dom, \ com.sun.org.apache.xerces.internal.jaxp, \ com.sun.org.apache.xerces.internal.xni, \ com.sun.jndi.ldap, \ com.sap.conn.jco, \ com.sap.conn.jco.ext, \ com.sap.conn.jco.monitor, \ com.sap.conn.jco.rt, \ com.sap.conn.jco.server ~~~ 3. copy files "sapjco3.jar" and "libsapjco3.so" to "Fuse_HOME\lib", and then start it with command "bin/fuse". 4. running below commands one by one: ---features:install camel-groovy ---osgi:install mvn:org.fusesource/camel-sap/1.0.0.redhat-379 # ID is 253 and the status is "Installed" ---osgi:start 253, the status became "Active" 5. copy "sap-test.xml" to "Fuse_HOME\deploy" folder and then the error shows: ~~~ 21:36:54,153 | ERROR | edhat-379/deploy | BlueprintContainerImpl | 9 - org.apache.aries.blueprint.core - 1.0.1.redhat-610379 | Unable to start blueprint container for bundle sap-test.xml org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a matching constructor on class org.fusesource.camel.component.sap.model.rfc.impl.DestinationDataImpl for arguments [] when instanciating bean nplDestinationData at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:336) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [:1.6.0_35] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [:1.6.0_35] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:676) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:374) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:270) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:233) [9:org.apache.aries.blueprint.core:1.0.1.redhat-610379] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [11:org.apache.aries.util:1.0.1.redhat-610379] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [11:org.apache.aries.util:1.0.1.redhat-610379] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [11:org.apache.aries.util:1.0.1.redhat-610379] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [11:org.apache.aries.util:1.0.1.redhat-610379] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [11:org.apache.aries.util:1.0.1.redhat-610379] at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4650) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix$4.run(Felix.java:2123) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.runInContext(Felix.java:2147) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.startBundle(Felix.java:2121) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955) [org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247) [7:org.apache.felix.fileinstall:3.3.11.redhat-610379] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219) [7:org.apache.felix.fileinstall:3.3.11.redhat-610379] at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:508) [7:org.apache.felix.fileinstall:3.3.11.redhat-610379] at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291) [7:org.apache.felix.fileinstall:3.3.11.redhat-610379] ~~~

      To use camel-sap component in JBoss Fuse 6.1.0, only Spring DM file works but blueprint which has the same configuration doesn't.
      Customer tested both of them in the same container.

        1. blueprint.xml
          2 kB
          William Collins
        2. sap-test.xml
          2 kB
          xu zhang

              bicollin1@redhat.com William Collins (Inactive)
              zhangxu1324_jira xu zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: