Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2039

Cannot deploy a project with data transformation to JBoss Fuse 6.3.0

    Details

    • Steps to Reproduce:
      1. import the attached project
      2. try to deploy it to JBoss Fuse runtime
    • Workaround Description:
      Hide

      Is described in Description

      Show
      Is described in Description

      Description

      If I create a new Fuse Integration Project with Data Transformation from scratch (using Empty project/Blueprint DSL template), I hit a problem with deployment.

      The project cannot be deployed to JBoss Fuse runtime out of the box. Deployment is not even triggered (I tried to deploy the project via JBDS --> Servers view). The project has to be manually modified:

      1. add imports into MANIFEST.MF

      Import-Package: 
       com.fasterxml.jackson.annotation;version="[2.6,3)",
       javax.xml.bind.annotation,
       org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
      

      With this modification, the deployment of the project is triggered but the following error occurred.

      2016-08-16 14:02:19,582 | INFO  | 5)-192.168.1.116 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630159 | Apache Camel 2.17.0.redhat-630159 (CamelContext: _context1) is starting
      2016-08-16 14:02:19,584 | INFO  | 5)-192.168.1.116 | ManagedManagementStrategy        | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630159 | JMX is enabled
      2016-08-16 14:02:20,102 | INFO  | 5)-192.168.1.116 | DefaultRuntimeEndpointRegistry   | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630159 | Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
      2016-08-16 14:02:20,110 | INFO  | 5)-192.168.1.116 | DozerEndpoint                    | 295 - org.apache.camel.camel-dozer - 2.17.0.redhat-630159 | Configuring DozerBeanContainer and DozerBeanMapper
      2016-08-16 14:02:20,112 | INFO  | 5)-192.168.1.116 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630159 | Apache Camel 2.17.0.redhat-630159 (CamelContext: _context1) is shutting down
      2016-08-16 14:02:20,115 | INFO  | 5)-192.168.1.116 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630159 | Apache Camel 2.17.0.redhat-630159 (CamelContext: _context1) uptime 0.532 seconds
      2016-08-16 14:02:20,115 | INFO  | 5)-192.168.1.116 | BlueprintCamelContext            | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630159 | Apache Camel 2.17.0.redhat-630159 (CamelContext: _context1) is shutdown in 0.002 seconds
      2016-08-16 14:02:20,115 | ERROR | 5)-192.168.1.116 | BlueprintCamelContext            | 234 - org.apache.camel.camel-blueprint - 2.17.0.redhat-630159 | Error occurred during starting Camel: CamelContext(_context1) due Failed to create route _route1 at: >>> To[ref:xml2json] <<< in route: Route(_route1)[[From[file:src/main/data?noop=true]] -> [To[r... because of Failed to resolve endpoint: ref://xml2json due to: Cannot lookup: xml2json from registry: org.apache.camel.blueprint.BlueprintContainerRegistry@15edf296 with expected type: interface org.apache.camel.Endpoint due: Error when instantiating bean xml2json of class org.apache.camel.Endpoint
      org.apache.camel.FailedToCreateRouteException: Failed to create route _route1 at: >>> To[ref:xml2json] <<< in route: Route(_route1)[[From[file:src/main/data?noop=true]] -> [To[r... because of Failed to resolve endpoint: ref://xml2json due to: Cannot lookup: xml2json from registry: org.apache.camel.blueprint.BlueprintContainerRegistry@15edf296 with expected type: interface org.apache.camel.Endpoint due: Error when instantiating bean xml2json of class org.apache.camel.Endpoint
              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1072)
              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
              at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:974)
              at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3301)
              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3024)
              at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)
              at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2854)
              at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2850)
              at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2873)
              at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2850)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
              at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2819)
              at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:180)
              at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:212)
              at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:150)
              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
              at org.apache.felix.framework.Felix.registerService(Felix.java:3431)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)
              at org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:100)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
              at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
              at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:848)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
              at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
              at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
              at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:688)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:383)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:270)
              at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)
              at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)
              at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
              at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)
              at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
              at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
              at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
              at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)
              at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
              at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
              at org.apache.karaf.management.mbeans.bundles.internal.BundlesMBeanImpl.install(BundlesMBeanImpl.java:304)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)[:1.8.0_91]
              at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)[:1.8.0_91]
              at javax.management.StandardMBean.invoke(StandardMBean.java:405)[:1.8.0_91]
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)[:1.8.0_91]
              at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at org.apache.karaf.management.internal.MBeanInvocationHandler.invoke(MBeanInvocationHandler.java:60)[46:org.apache.karaf.management.server:2.4.0.redhat-630159]
              at com.sun.proxy.$Proxy4.invoke(Unknown Source)[:]
              at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)[:1.8.0_91]
              at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)[:1.8.0_91]
              at sun.rmi.transport.Transport$1.run(Transport.java:200)[:1.8.0_91]
              at sun.rmi.transport.Transport$1.run(Transport.java:197)[:1.8.0_91]
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_91]
              at sun.rmi.transport.Transport.serviceCall(Transport.java:196)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)[:1.8.0_91]
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)[:1.8.0_91]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: ref://xml2json due to: Cannot lookup: xml2json from registry: org.apache.camel.blueprint.BlueprintContainerRegistry@15edf296 with expected type: interface org.apache.camel.Endpoint due: Error when instantiating bean xml2json of class org.apache.camel.Endpoint
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:588)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
              at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211)
              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)
              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
              at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
              at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
              at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534)
              at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495)
              at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)
              ... 99 more
      Caused by: org.apache.camel.NoSuchBeanException: Cannot lookup: xml2json from registry: org.apache.camel.blueprint.BlueprintContainerRegistry@15edf296 with expected type: interface org.apache.camel.Endpoint due: Error when instantiating bean xml2json of class org.apache.camel.Endpoint
              at org.apache.camel.impl.CompositeRegistry.lookupByNameAndType(CompositeRegistry.java:62)
              at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByNameAndType(PropertyPlaceholderDelegateRegistry.java:63)
              at org.apache.camel.util.CamelContextHelper.lookup(CamelContextHelper.java:137)
              at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:157)
              at org.apache.camel.component.ref.RefEndpoint.doStart(RefEndpoint.java:79)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1200)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:584)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              ... 109 more
      Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instantiating bean xml2json of class org.apache.camel.Endpoint
              at org.apache.aries.blueprint.container.BeanRecipe.wrapAsCompDefEx(BeanRecipe.java:361)
              at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromFactory(BeanRecipe.java:297)
              at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:278)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:830)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
              at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
              at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
              at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:230)
              at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:145)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:760)
              at org.apache.camel.blueprint.BlueprintContainerRegistry.lookupByNameAndType(BlueprintContainerRegistry.java:54)
              at org.apache.camel.impl.CompositeRegistry.lookupByNameAndType(CompositeRegistry.java:56)
              ... 119 more
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: dozer://xml2json?mappingFile=transformation.xml&marshalId=transform-json&sourceModel=generated_1471341433090.ABCOrder&targetModel=xyzorder.XyzOrder&unmarshalId=generated_1471341433090 due to: Unable to find ExpressionFactory of type: org.apache.el.ExpressionFactoryImpl
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:588)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean.getObject(AbstractCamelEndpointFactoryBean.java:55)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
              at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
              at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromFactory(BeanRecipe.java:295)
              ... 131 more
      Caused by: javax.el.ELException: Unable to find ExpressionFactory of type: org.apache.el.ExpressionFactoryImpl
              at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:165)
              at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:104)
              at org.dozer.loader.xml.ELEngine.<init>(ELEngine.java:43)
              at org.apache.camel.component.dozer.DozerEndpoint.initELEngine(DozerEndpoint.java:163)
              at org.apache.camel.component.dozer.DozerEndpoint.initDozerBeanContainerAndMapper(DozerEndpoint.java:134)
              at org.apache.camel.component.dozer.DozerEndpoint.doStart(DozerEndpoint.java:119)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1200)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:584)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              ... 139 more
      Caused by: java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl from bundle 312 (com.mycompany.camel-blueprint)
              at org.apache.camel.core.osgi.utils.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:78)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_91]
              at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:158)
              ... 150 more
      Caused by: java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl not found by com.mycompany.camel-blueprint [312]
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_91]
              at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1853)
              at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:958)
              at org.apache.camel.core.osgi.utils.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:47)
              at org.apache.camel.core.osgi.utils.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:69)
              ... 152 more
      2016-08-16 14:02:20,172 | WARN  | 5)-192.168.1.116 | BeanRecipe                       | 23 - org.apache.aries.blueprint.core - 1.4.5 | Object to be destroyed is not an instance of UnwrapperedBeanHolder, type: null
      2016-08-16 14:02:20,175 | ERROR | 5)-192.168.1.116 | BlueprintContainerImpl           | 23 - org.apache.aries.blueprint.core - 1.4.5 | Unable to start blueprint container for bundle com.mycompany.camel-blueprint/1.0.0.SNAPSHOT
      org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instantiating bean xml2json of class org.apache.camel.Endpoint
              at org.apache.aries.blueprint.container.BeanRecipe.wrapAsCompDefEx(BeanRecipe.java:361)
              at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromFactory(BeanRecipe.java:297)
              at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:278)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:830)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
              at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
              at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
              at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:230)
              at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:145)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:760)
              at org.apache.camel.blueprint.BlueprintContainerRegistry.lookupByNameAndType(BlueprintContainerRegistry.java:54)
              at org.apache.camel.impl.CompositeRegistry.lookupByNameAndType(CompositeRegistry.java:56)
              at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByNameAndType(PropertyPlaceholderDelegateRegistry.java:63)
              at org.apache.camel.util.CamelContextHelper.lookup(CamelContextHelper.java:137)
              at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:157)
              at org.apache.camel.component.ref.RefEndpoint.doStart(RefEndpoint.java:79)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1200)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:584)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
              at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211)
              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)
              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
              at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
              at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
              at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534)
              at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495)
              at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)
              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
              at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:974)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3301)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3024)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2854)
              at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2850)
              at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2873)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2850)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
              at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2819)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:180)
              at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:212)
              at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:150)
              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
              at org.apache.felix.framework.Felix.registerService(Felix.java:3431)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)
              at org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:100)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
              at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
              at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:848)
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
              at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
              at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
              at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:688)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:383)
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:270)
              at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)
              at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)
              at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
              at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
              at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)
              at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
              at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
              at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
              at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)
              at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
              at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
              at org.apache.karaf.management.mbeans.bundles.internal.BundlesMBeanImpl.install(BundlesMBeanImpl.java:304)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)[:1.8.0_91]
              at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)[:1.8.0_91]
              at javax.management.StandardMBean.invoke(StandardMBean.java:405)[:1.8.0_91]
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)[:1.8.0_91]
              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)[:1.8.0_91]
              at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at org.apache.karaf.management.internal.MBeanInvocationHandler.invoke(MBeanInvocationHandler.java:60)[46:org.apache.karaf.management.server:2.4.0.redhat-630159]
              at com.sun.proxy.$Proxy4.invoke(Unknown Source)[:]
              at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)[:1.8.0_91]
              at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)[:1.8.0_91]
              at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)[:1.8.0_91]
              at sun.rmi.transport.Transport$1.run(Transport.java:200)[:1.8.0_91]
              at sun.rmi.transport.Transport$1.run(Transport.java:197)[:1.8.0_91]
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_91]
              at sun.rmi.transport.Transport.serviceCall(Transport.java:196)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)[:1.8.0_91]
              at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_91]
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)[:1.8.0_91]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: dozer://xml2json?mappingFile=transformation.xml&marshalId=transform-json&sourceModel=generated_1471341433090.ABCOrder&targetModel=xyzorder.XyzOrder&unmarshalId=generated_1471341433090 due to: Unable to find ExpressionFactory of type: org.apache.el.ExpressionFactoryImpl
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:588)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean.getObject(AbstractCamelEndpointFactoryBean.java:55)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
              at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
              at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
              at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
              at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromFactory(BeanRecipe.java:295)
              ... 131 more
      Caused by: javax.el.ELException: Unable to find ExpressionFactory of type: org.apache.el.ExpressionFactoryImpl
              at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:165)
              at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:104)
              at org.dozer.loader.xml.ELEngine.<init>(ELEngine.java:43)
              at org.apache.camel.component.dozer.DozerEndpoint.initELEngine(DozerEndpoint.java:163)
              at org.apache.camel.component.dozer.DozerEndpoint.initDozerBeanContainerAndMapper(DozerEndpoint.java:134)
              at org.apache.camel.component.dozer.DozerEndpoint.doStart(DozerEndpoint.java:119)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1200)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:584)[232:org.apache.camel.camel-core:2.17.0.redhat-630159]
              ... 139 more
      Caused by: java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl from bundle 312 (com.mycompany.camel-blueprint)
              at org.apache.camel.core.osgi.utils.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:78)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_91]
              at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:158)
              ... 150 more
      Caused by: java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl not found by com.mycompany.camel-blueprint [312]
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_91]
              at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1853)
              at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:958)
              at org.apache.camel.core.osgi.utils.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:47)
              at org.apache.camel.core.osgi.utils.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:69)
              ... 152 more
      

      2. add exported packages in MANIFEST.MF

      Export-Package: 
       generated_1471341433090,
       org.jboss.tools.fuse.transformation.editor.transformations,
       xyzorder
      

      3. add org.apache.el as imported package in MANIFEST.MF (for more details see https://issues.jboss.org/browse/ENTESB-5610)

      4. open MANIFEST.MF --> tab Runtime --> click on Calculate Uses (deployment is not successful without this step – deployment will end with the error from step 1)

      In the attachment is a project which I used for testing (contains modification from steps 1. - 3.)

        Gliffy Diagrams

          Attachments

          1. project.zip
            62 kB
          2. trans.webm
            3.58 MB
          3. trans2.webm
            5.92 MB

            Issue Links

              Activity

                People

                • Assignee:
                  aurelien.pupier Aurélien Pupier
                  Reporter:
                  tsedmik Tomáš Sedmík
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: