4 Replies Latest reply on Aug 30, 2013 9:09 AM by bvahdat

    Cannot deploy a Camel project with activemq into Fuse ESB server

    grafvader

      Hello,

       

      Steps to reproduce the problem:

       

      1. Download Fuse ESB server from http://repo.fusesource.com/nexus/content/groups/ea/org/fusesource/esb/fuse-esb-full/7.1.0.fuse-047

      3. Set etc/users.properties to contain admin=admin,admin

      4. Download and instale Fuse IDE from http://repo.fusesource.com/beta/rcp/7.1.61

      5. File > New > Fuse Project

      6. Select *camel-archetype-activemq* and wait for resolving all dependencies

      7. Adding to pom.xml  to all dependencies

      8. In ide create and run the server (esb-full-047)

      9. Open Fuse Integration perspective

      10. In JMX Explorer refresh your Fuse ESB

      12. Deploy the camle project by drag and drop to this fuse esb

      13. The following error occurs

       

      2013-04-10 10:14:52,523 | WARN  | 10)-192.168.0.72 | MavenResolverImpl                | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Missing artifact descriptor: javax.ejb:ejb:jar:3.0 null

      2013-04-10 10:14:55,197 | WARN  | 10)-192.168.0.72 | MavenResolverImpl                | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Failed to resolve dependency of org.apache.xbean:xbean-spri

      ng:jar:3.12. The following artifacts could not be resolved: javax.ejb:ejb:jar:3.0, javax.jms:jms:jar:1.1: Could not find ar

      tifact javax.ejb:ejb:jar:3.0 in repos0 (http://repo1.maven.org/maven2)

      org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: javax.ejb:ejb:ja

      r:3.0, javax.jms:jms:jar:1.1: Could not find artifact javax.ejb:ejb:jar:3.0 in repos0 (http://repo1.maven.org/maven2)

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)

              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:258)

              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:288)

              at org.fusesource.fabric.fab.MavenResolverImpl.resolveDepedencies(MavenResolverImpl.java:396)

              at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:349)

              at org.fusesource.fabric.fab.MavenResolverImpl.collectDependenciesFromPom(MavenResolverImpl.java:291)

              at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:263)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.collectDependencyTree(FabResolver

      FactoryImpl.java:149)

              at org.fusesource.fabric.fab.osgi.internal.FabClassPathResolver.resolve(FabClassPathResolver.java:136)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.configureInstructions(FabResolver

      FactoryImpl.java:283)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.createInstructions(FabResolverFac

      toryImpl.java:275)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.ja

      va:245)

              at org.fusesource.fabric.fab.osgi.internal.FabConnection.getInputStream(FabConnection.java:93)

              at java.net.URL.openStream(URL.java:1010)[:1.6.0_35]

              at org.apache.aries.jmx.framework.Framework.createStream(Framework.java:113)

              at org.apache.aries.jmx.framework.Framework.updateBundleFromURL(Framework.java:426)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_35]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_35]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_35]

              at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_35]

              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)[:1.6.0_35]

              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)[:1.6.0_35]

              at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)[:1.6.0_35]

              at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)[:1.6.0_35]

              at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)[:1.6.0_35]

              at javax.management.StandardMBean.invoke(StandardMBean.java:391)[:1.6.0_35]

              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)[:1.6.0_35]

              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)[:1.6.0_35]

              at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)[:1.6.0_35]

              at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)[:1.6.0_35]

              at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)[:1.6.0_35]

              at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)[:1.6.0_35]

              at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)[:1.6.0_35]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_35]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_35]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_35]

              at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_35]

              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)[:1.6.0_35]

              at sun.rmi.transport.Transport$1.run(Transport.java:159)[:1.6.0_35]

              at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_35]

              at sun.rmi.transport.Transport.serviceCall(Transport.java:155)[:1.6.0_35]

              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)[:1.6.0_35]

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)[:1.6.0_35]

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)[:1.6.0_35]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_35]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_35]

              at java.lang.Thread.run(Thread.java:662)[:1.6.0_35]

      Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact javax.ejb:ejb:jar:3.0 in repos0

      (http://repo1.maven.org/maven2)

              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:854)

              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:849)

              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:602)

              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:596)

              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:355)

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:407)

              ... 46 more

      2013-04-10 10:14:55,283 | INFO  | 10)-192.168.0.72 | FabResolver                      | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Installing feature activemq-camel/5.7.0.fuse-71-047 for mav

      en dependency org.apache.activemq/activemq-camel/5.7.0.fuse-71-047

      2013-04-10 10:14:55,283 | INFO  | 10)-192.168.0.72 | FabResolver                      | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Installing feature activemq/5.7.0.fuse-71-047 for maven dep

      endency org.apache.activemq/activemq-core/5.7.0.fuse-71-047

      2013-04-10 10:14:55,284 | INFO  | 10)-192.168.0.72 | FabResolver                      | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Installing feature camel-core/2.10.0.fuse-71-047 for maven

      dependency org.apache.camel/camel-core/2.10.0.fuse-71-047

      2013-04-10 10:14:55,284 | INFO  | 10)-192.168.0.72 | FabResolver                      | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Installing feature camel-jms/2.10.0.fuse-71-047 for maven d

      ependency org.apache.camel/camel-jms/2.10.0.fuse-71-047

      2013-04-10 10:14:55,284 | INFO  | 10)-192.168.0.72 | FabResolver                      | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Installing feature camel-spring/2.10.0.fuse-71-047 for mave

      n dependency org.apache.camel/camel-spring/2.10.0.fuse-71-047

      2013-04-10 10:14:55,285 | INFO  | 10)-192.168.0.72 | FabResolver                      | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Installing feature spring/3.0.7.RELEASE for maven dependenc

      y org.springframework/spring-context/3.0.7.RELEASE

      2013-04-10 10:14:56,225 | INFO  | 10)-192.168.0.72 | FabConnection                    | ?                                 

      ? | 74 - org.fusesource.fabric.fab.fab-osgi - 7.1.0.fuse-047 | Bundle non-optional packages already installed for: slf4j.a

      pi version: 1.6.6 packages: []

       

       

       

       

       

       

       

      When start from console get additional errors:

       

      2013-04-10 10:22:34,360 | ERROR | ExtenderThread-7 | ContextLoaderListener            | ?                                 

      ? | 113 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(

      bundle=org.kruk.camel-activemq-test03, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle:

      //327.1:0/META-INF/spring/camel-context.xml]; nested exception is java.lang.IllegalArgumentException: Could not load proper

      ty editor: org.apache.activemq.util.BooleanEditor

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java

      :412)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:3

      34)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:3

      02)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:143)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:178)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:149)

              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplic

      ationContext.java:164)

              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplic

      ationContext.java:136)

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshable

      ApplicationContext.java:130)[104:org.springframework.context:3.0.7.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext

      .java:467)[104:org.springframework.context:3.0.7.RELEASE]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegat

      edExecutionApplicationContext.java:69)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExe

      cutionApplicationContext.java:269)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[114:org.sp

      ringframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDeleg

      atedExecutionApplicationContext.java:247)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stage

      One(DependencyWaiterApplicationContextExecutor.java:214)[113:org.springframework.osgi.extender:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refre

      sh(DependencyWaiterApplicationContextExecutor.java:169)[113:org.springframework.osgi.extender:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedE

      xecutionApplicationContext.java:175)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)

      113:org.springframework.osgi.extender:1.2.1

              at java.lang.Thread.run(Thread.java:662)[:1.6.0_35]

      Caused by: java.lang.IllegalArgumentException: Could not load property editor: org.apache.activemq.util.BooleanEditor

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.createPropertyEditor(XBeanNamespaceHandler.java:471)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.getValue(XBeanNamespaceHandler.java:446)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addProperty(XBeanNamespaceHandler.java:417)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addAttributeProperty(XBeanNamespaceHandler.java:406)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addAttributeProperties(XBeanNamespaceHandler.java:339)

       

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.ja

      va:227)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.ja

      va:278)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)

              at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[140:org.apache.xbe

      an.spring:3.12.0]

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelega

      te.java:1338)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelega

      te.java:1328)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefini

      tionDocumentReader.java:135)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDef

      initionDocumentReader.java:93)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.ja

      va:493)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java

      :390)

              ... 18 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.util.BooleanEditor not found from bundle [org.kruk.camel-a

      ctivemq-test03]

              at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)

              at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_35]

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.createPropertyEditor(XBeanNamespaceHandler.java:469)

              ... 32 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.util.BooleanEditor not found by org.kruk.camel-activemq-te

      st03

              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1499)

              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)

              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1882)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_35]

              at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1814)

              at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:929)

              at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

              ... 35 more

      2013-04-10 10:22:34,366 | ERROR | ExtenderThread-7 | WaiterApplicationContextExecutor | ?                                 

      ? | 113 - org.springframework.osgi.extender - 1.2.1 | Unable to create application context for [org.kruk.camel-activemq-te

      st03], unsatisfied dependencies: none

      org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle:

      //327.1:0/META-INF/spring/camel-context.xml]; nested exception is java.lang.IllegalArgumentException: Could not load proper

      ty editor: org.apache.activemq.util.BooleanEditor

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java

      :412)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:3

      34)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:3

      02)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:143)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:178)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:149)

              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplic

      ationContext.java:164)

              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplic

      ationContext.java:136)

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshable

      ApplicationContext.java:130)[104:org.springframework.context:3.0.7.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext

      .java:467)[104:org.springframework.context:3.0.7.RELEASE]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegat

      edExecutionApplicationContext.java:69)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExe

      cutionApplicationContext.java:269)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[114:org.sp

      ringframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDeleg

      atedExecutionApplicationContext.java:247)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stage

      One(DependencyWaiterApplicationContextExecutor.java:214)[113:org.springframework.osgi.extender:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refre

      sh(DependencyWaiterApplicationContextExecutor.java:169)[113:org.springframework.osgi.extender:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedE

      xecutionApplicationContext.java:175)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)

      113:org.springframework.osgi.extender:1.2.1

              at java.lang.Thread.run(Thread.java:662)[:1.6.0_35]

      Caused by: java.lang.IllegalArgumentException: Could not load property editor: org.apache.activemq.util.BooleanEditor

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.createPropertyEditor(XBeanNamespaceHandler.java:471)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.getValue(XBeanNamespaceHandler.java:446)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addProperty(XBeanNamespaceHandler.java:417)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addAttributeProperty(XBeanNamespaceHandler.java:406)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addAttributeProperties(XBeanNamespaceHandler.java:339)

       

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.ja

      va:227)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.ja

      va:278)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)

              at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[140:org.apache.xbe

      an.spring:3.12.0]

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelega

      te.java:1338)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelega

      te.java:1328)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefini

      tionDocumentReader.java:135)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDef

      initionDocumentReader.java:93)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.ja

      va:493)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java

      :390)

              ... 18 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.util.BooleanEditor not found from bundle [org.kruk.camel-a

      ctivemq-test03]

              at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)

              at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_35]

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.createPropertyEditor(XBeanNamespaceHandler.java:469)

              ... 32 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.util.BooleanEditor not found by org.kruk.camel-activemq-te

      st03

              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1499)

              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)

              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1882)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_35]

              at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1814)

              at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:929)

              at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

              ... 35 more

      2013-04-10 10:22:34,371 | ERROR | ExtenderThread-7 | ContextLoaderListener            | ?                                 

      ? | 113 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(

      bundle=org.kruk.camel-activemq-test03, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle:

      //327.1:0/META-INF/spring/camel-context.xml]; nested exception is java.lang.IllegalArgumentException: Could not load proper

      ty editor: org.apache.activemq.util.BooleanEditor

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java

      :412)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:3

      34)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:3

      02)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:143)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:178)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitio

      nReader.java:149)

              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplic

      ationContext.java:164)

              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplic

      ationContext.java:136)

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshable

      ApplicationContext.java:130)[104:org.springframework.context:3.0.7.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext

      .java:467)[104:org.springframework.context:3.0.7.RELEASE]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegat

      edExecutionApplicationContext.java:69)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExe

      cutionApplicationContext.java:269)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[114:org.sp

      ringframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDeleg

      atedExecutionApplicationContext.java:247)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stage

      One(DependencyWaiterApplicationContextExecutor.java:214)[113:org.springframework.osgi.extender:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refre

      sh(DependencyWaiterApplicationContextExecutor.java:169)[113:org.springframework.osgi.extender:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedE

      xecutionApplicationContext.java:175)[114:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)

      113:org.springframework.osgi.extender:1.2.1

              at java.lang.Thread.run(Thread.java:662)[:1.6.0_35]

      Caused by: java.lang.IllegalArgumentException: Could not load property editor: org.apache.activemq.util.BooleanEditor

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.createPropertyEditor(XBeanNamespaceHandler.java:471)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.getValue(XBeanNamespaceHandler.java:446)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addProperty(XBeanNamespaceHandler.java:417)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addAttributeProperty(XBeanNamespaceHandler.java:406)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addAttributeProperties(XBeanNamespaceHandler.java:339)

       

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.ja

      va:227)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.ja

      va:278)

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)

              at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[140:org.apache.xbe

      an.spring:3.12.0]

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelega

      te.java:1338)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelega

      te.java:1328)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefini

      tionDocumentReader.java:135)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDef

      initionDocumentReader.java:93)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.ja

      va:493)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java

      :390)

              ... 18 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.util.BooleanEditor not found from bundle [org.kruk.camel-a

      ctivemq-test03]

              at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)

              at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_35]

              at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.createPropertyEditor(XBeanNamespaceHandler.java:469)

              ... 32 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.util.BooleanEditor not found by org.kruk.camel-activemq-te

      st03

              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1499)

              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)

              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1882)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_35]

              at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1814)

              at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:929)

              at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

              ... 35 more

       

       

       

       

       

       

       

      And my pom.xml

       

       

       

       

      Please help and thank you.

        • 1. Re: Cannot deploy a Camel project with activemq into Fuse ESB server
          davsclaus

          Yeah this is a known issue, if you try to deploy this project to Fuse ESB / Fuse MQ then it wont work.

           

          If you modify the pom.xml to be an OSGi bundle, then you can deploy it. The issue is that when you deploy it as a JAR (eg packaging=jar) then FAB deployment is kicked in, and it may have some use-cases where deployment wont work.

           

          eg basically deploying to OSGi (not as OSGi) can be hard.

           

          You can read more about FAB here

          http://fuse.fusesource.org/bundle/index

          • 2. Re: Cannot deploy a Camel project with activemq into Fuse ESB server
            bvahdat

            Hi

             

            Using the current Fuse IDE (Version: 7.2.129) I'm running into exactly the same problem and thought instead of FAB let's give the bundle packaging a try, that's using:

             

              <packaging>bundle</packaging>
            

             

            Along with using the maven-bundle-plugin etc.

             

            And I already failed by the first step, that's changing the packaging to bundle instead of jar:

             

              <groupId>com.mycompany</groupId>
              <artifactId>camel-activemq</artifactId>
              <packaging>bundle</packaging>
              <version>1.0.0-SNAPSHOT</version>
            

             

            See the attached screenshot why. This is really strange!

             

            To be honest I assume this has to do with the m2eclipse plugin itself.

             

            Babak

            • 3. Re: Cannot deploy a Camel project with activemq into Fuse ESB server
              bvahdat

              O.K. the problem was that you can't use the bundle packaging inside a pom without using the maven-bundle-plugin itself (inside the  section).

              So following the bundle packaging approach I went for, which Maven can successfully build/install:

               

              <?xml version="1.0" encoding="UTF-8"?>
              <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
              
                   <modelVersion>4.0.0</modelVersion>
              
                   <groupId>com.mycompany</groupId>
                   <artifactId>camel-activemq</artifactId>
                   <packaging>bundle</packaging>
                   <version>1.0.0-SNAPSHOT</version>
              
                   <name>ActiveMQ embedded with Camel</name>
                   <url>http://www.myorganization.org</url>
              
                   <properties>
                        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
                   </properties>
              
                   <repositories>
                        <repository>
                             <id>release.fusesource.org</id>
                             <name>FuseSource Release Repository</name>
                             <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>
                             <snapshots>
                                  <enabled>false</enabled>
                             </snapshots>
                             <releases>
                                  <enabled>true</enabled>
                             </releases>
                        </repository>
                        <repository>
                             <id>snapshot.fusesource.org</id>
                             <name>FuseSource Snapshot Repository</name>
                             <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>
                             <snapshots>
                                  <enabled>true</enabled>
                             </snapshots>
                             <releases>
                                  <enabled>false</enabled>
                             </releases>
                        </repository>
                   </repositories>
              
                   <pluginRepositories>
                        <pluginRepository>
                             <id>release.fusesource.org</id>
                             <name>FuseSource Release Repository</name>
                             <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>
                             <snapshots>
                                  <enabled>false</enabled>
                             </snapshots>
                             <releases>
                                  <enabled>true</enabled>
                             </releases>
                        </pluginRepository>
                        <pluginRepository>
                             <id>snapshot.fusesource.org</id>
                             <name>FuseSource Snapshot Repository</name>
                             <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>
                             <snapshots>
                                  <enabled>true</enabled>
                             </snapshots>
                             <releases>
                                  <enabled>false</enabled>
                             </releases>
                        </pluginRepository>
                   </pluginRepositories>
              
                   <dependencies>
                        <dependency>
                             <groupId>org.apache.camel</groupId>
                             <artifactId>camel-core</artifactId>
                             <version>2.10.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.camel</groupId>
                             <artifactId>camel-jms</artifactId>
                             <version>2.10.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.camel</groupId>
                             <artifactId>camel-spring</artifactId>
                             <version>2.10.0.redhat-60024</version>
                        </dependency>
              
                        <!-- the ActiveMQ client with connection pooling -->
                        <dependency>
                             <groupId>org.apache.activemq</groupId>
                             <artifactId>activemq-client</artifactId>
                             <version>5.8.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.activemq</groupId>
                             <artifactId>activemq-camel</artifactId>
                             <version>5.8.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.activemq</groupId>
                             <artifactId>activemq-pool</artifactId>
                             <version>5.8.0.redhat-60024</version>
                        </dependency>
              
                        <!-- the ActiveMQ broker is optional and can be removed if connecting to 
                             a remote broker only -->
                        <dependency>
                             <groupId>org.apache.activemq</groupId>
                             <artifactId>activemq-broker</artifactId>
                             <version>5.8.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.activemq</groupId>
                             <artifactId>activemq-spring</artifactId>
                             <version>5.8.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.activemq</groupId>
                             <artifactId>activemq-kahadb-store</artifactId>
                             <version>5.8.0.redhat-60024</version>
                        </dependency>
                        <dependency>
                             <groupId>org.apache.xbean</groupId>
                             <artifactId>xbean-spring</artifactId>
                             <version>3.12</version>
                        </dependency>
                        <dependency>
                             <groupId>org.springframework</groupId>
                             <artifactId>spring-context</artifactId>
                             <version>3.1.3.RELEASE</version>
                        </dependency>
              
                        <!-- logging -->
                        <dependency>
                             <groupId>org.slf4j</groupId>
                             <artifactId>slf4j-api</artifactId>
                             <version>1.6.6</version>
                        </dependency>
                        <dependency>
                             <groupId>org.slf4j</groupId>
                             <artifactId>slf4j-log4j12</artifactId>
                             <version>1.6.6</version>
                        </dependency>
                        <dependency>
                             <groupId>log4j</groupId>
                             <artifactId>log4j</artifactId>
                             <version>1.2.17</version>
                        </dependency>
              
                        <!-- testing -->
                        <dependency>
                             <groupId>org.apache.camel</groupId>
                             <artifactId>camel-test-spring</artifactId>
                             <version>2.10.0.redhat-60024</version>
                             <scope>test</scope>
                        </dependency>
                   </dependencies>
              
                   <build>
                        <defaultGoal>install</defaultGoal>
              
                        <plugins>
                             <plugin>
                                  <groupId>org.apache.maven.plugins</groupId>
                                  <artifactId>maven-compiler-plugin</artifactId>
                                  <version>2.5.1</version>
                                  <configuration>
                                       <source>1.6</source>
                                       <target>1.6</target>
                                  </configuration>
                             </plugin>
                             <plugin>
                                  <groupId>org.apache.maven.plugins</groupId>
                                  <artifactId>maven-resources-plugin</artifactId>
                                  <version>2.4.3</version>
                                  <configuration>
                                       <encoding>UTF-8</encoding>
                                  </configuration>
                             </plugin>
              
                             <!-- allows the route to be ran via 'mvn camel:run' -->
                             <plugin>
                                  <groupId>org.apache.camel</groupId>
                                  <artifactId>camel-maven-plugin</artifactId>
                                  <version>2.10.0.redhat-60024</version>
                             </plugin>
              
                             <plugin>
                                  <groupId>org.apache.felix</groupId>
                                  <artifactId>maven-bundle-plugin</artifactId>
                                  <extensions>true</extensions>
                                  <version>2.4.0</version>
                                  <configuration>
                                       <instructions>
                                            <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                                            <Bundle-Name>${project.name}</Bundle-Name>
                                            <Bundle-Version>${project.version}</Bundle-Version>
                                       </instructions>
                                  </configuration>
                             </plugin>
                        </plugins>
                   </build>
              
              </project>
              

               

              Now installing/starting this bundle into JBoss Fuse (jboss-fuse-6.0.0.redhat-024) using:

               

              JBossFuse:karaf@root> osgi:install -s mvn:com.mycompany/camel-activemq/1.0.0-SNAPSHOT
              

               

              ends up with:

               

              2013-08-29 22:19:14,125 | INFO  | ExtenderThread-1 | OsgiBundleXmlApplicationContext  | ?                                   ? | 106 - org.springframework.context - 3.1.3.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=com.mycompany.camel-activemq, config=osgibundle:/META-INF/spring/*.xml): startup date [Thu Aug 29 22:19:14 CEST 2013]; root of context hierarchy
              2013-08-29 22:19:14,126 | INFO  | ExtenderThread-1 | OsgiBundleXmlApplicationContext  | ?                                   ? | 106 - org.springframework.context - 3.1.3.RELEASE | Application Context service already unpublished
              2013-08-29 22:19:14,138 | INFO  | ExtenderThread-1 | XmlBeanDefinitionReader          | ?                                   ? | 105 - org.springframework.beans - 3.1.3.RELEASE | Loading XML bean definitions from URL [bundle://234.0:0/META-INF/spring/camel-context.xml]
              2013-08-29 22:19:14,450 | ERROR | ExtenderThread-1 | ContextLoaderListener            | ?                                   ? | 132 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.mycompany.camel-activemq, config=osgibundle:/META-INF/spring/*.xml))
              org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core
                   at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:284)[115:org.apache.xbean.spring:3.12.0]
                   at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)[115:org.apache.xbean.spring:3.12.0]
                   at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[115:org.apache.xbean.spring:3.12.0]
                   at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1423)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1413)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)[106:org.springframework.context:3.1.3.RELEASE]
                   at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530)[106:org.springframework.context:3.1.3.RELEASE]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[132:org.springframework.osgi.extender:1.2.1]
                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[132:org.springframework.osgi.extender:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[132:org.springframework.osgi.extender:1.2.1]
                   at java.lang.Thread.run(Thread.java:724)[:1.7.0_40-ea]
              2013-08-29 22:19:14,476 | ERROR | ExtenderThread-1 | WaiterApplicationContextExecutor | ?                                   ? | 132 - org.springframework.osgi.extender - 1.2.1 | Unable to create application context for [com.mycompany.camel-activemq], unsatisfied dependencies: none
              org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core
                   at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:284)[115:org.apache.xbean.spring:3.12.0]
                   at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)[115:org.apache.xbean.spring:3.12.0]
                   at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[115:org.apache.xbean.spring:3.12.0]
                   at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1423)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1413)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)[106:org.springframework.context:3.1.3.RELEASE]
                   at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530)[106:org.springframework.context:3.1.3.RELEASE]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[132:org.springframework.osgi.extender:1.2.1]
                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[132:org.springframework.osgi.extender:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[132:org.springframework.osgi.extender:1.2.1]
                   at java.lang.Thread.run(Thread.java:724)[:1.7.0_40-ea]
              2013-08-29 22:19:14,477 | ERROR | ExtenderThread-1 | ContextLoaderListener            | ?                                   ? | 132 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.mycompany.camel-activemq, config=osgibundle:/META-INF/spring/*.xml))
              org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core
                   at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:284)[115:org.apache.xbean.spring:3.12.0]
                   at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156)[115:org.apache.xbean.spring:3.12.0]
                   at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)[115:org.apache.xbean.spring:3.12.0]
                   at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1423)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1413)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[105:org.springframework.beans:3.1.3.RELEASE]
                   at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)[106:org.springframework.context:3.1.3.RELEASE]
                   at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530)[106:org.springframework.context:3.1.3.RELEASE]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[132:org.springframework.osgi.extender:1.2.1]
                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[132:org.springframework.osgi.extender:1.2.1]
                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[133:org.springframework.osgi.core:1.2.1]
                   at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[132:org.springframework.osgi.extender:1.2.1]
                   at java.lang.Thread.run(Thread.java:724)[:1.7.0_40-ea]
              

               

              Babak

              • 4. Re: Cannot deploy a Camel project with activemq into Fuse ESB server
                bvahdat

                O.K. I've got it working now with a simple workaround, that's using an embedded broker (the vm instead of tcp transport protocol) so that we can avoid the XBean Spring NamespaceHandler issue as in my previous post.

                 

                I'm attaching both my modified Camel Spring XML as well as an screenshot showing that the example works on my JBoss Fuse installation. Please note that for the username/password you should use whatever user you've already setup inside etc/users.properties of your JBoss Fuse installation, as otherwise the AMQ authentication would fail to connect.

                 

                Also I guess this NEW problem with this example here has something to do with the new activemq-osgi UBER JAR which also includes the content of the old activemq-spring OSGi bundle as well (which in the meanwhile is just a simple jar). See also  this thread.

                 

                Babak