Hi

Using CXF / camel-cxf etc in OSGi with that camel:run or
camel-test-blueprint is a bit more tricky. The order of your maven
dependency may make stuff break.

See the pom.xml here how we test cxf in osgi that way
https://github.com/apache/camel/tree/master/tests/camel-blueprint-cxf-test



On Tue, Mar 1, 2016 at 3:32 PM, M.Ismail <[email protected]> wrote:
> Hi,
>
> I am trying to use camel-maven-plugin 2.12.4 to run a route that is used as
> a jaxrs server persisting to the DB.
>
> <plugin>
>                                 <groupId>org.apache.camel</groupId>
>                                 <artifactId>camel-maven-plugin</artifactId>
>                                 <version>${camel.version}</version>
>                                 <configuration>
>                                         <useBlueprint>true</useBlueprint>
>                                         <logClasspath>true</logClasspath>
>                                 </configuration>
>                         </plugin>
> it fails giving the below stack trace:
>
> [INFO] Starting Camel ...
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/C:/Users/m00265450/.m2/repository/org/slf4j/slf4j-log4j12/1.6.6/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/C:/Users/m00265450/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> [mel.test.blueprint.Main.main()] MainSupport                    INFO  Apache
> Camel 2.12.4 starting
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel
> activator starting
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel
> activator started
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.camel.camel-cxf-transport (16)
> [org.apache.camel.component.cxf.transport.CamelTransportFactory]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws (17)
> [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-ws-addr (19)
> [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,
> org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,
> org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,
> org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader,
> org.apache.cxf.ws.addressing.WSAddressingFeature$WSAddressingFeatureApplier,
> org.apache.cxf.ws.addressing.MAPAggregator$MAPAggregatorLoader]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-ws-policy (20)
> [org.apache.cxf.ws.policy.PolicyEngine,
> org.apache.cxf.policy.PolicyDataEngine,
> org.apache.cxf.ws.policy.AssertionBuilderRegistry,
> org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,
> org.apache.cxf.ws.policy.PolicyBuilder,
> org.apache.cxf.ws.policy.PolicyAnnotationListener,
> org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,
> org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,
> org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,
> org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,
> org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap (23)
> [org.apache.cxf.binding.soap.SoapBindingFactory,
> org.apache.cxf.binding.soap.SoapTransportFactory]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-transports-http (25)
> [org.apache.cxf.transport.http.HTTPTransportFactory,
> org.apache.cxf.transport.http.HTTPWSDLExtensionLoader,
> org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,
> org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,
> org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-transports-http-jetty (32)
> [org.apache.cxf.transport.http_jetty.JettyDestinationFactory,
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory,
> org.apache.cxf.transport.http.ContinuationProviderFactory]
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO  Adding
> the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml (42)
> [org.apache.cxf.binding.xml.XMLBindingFactory,
> org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO  No
> quiesce support is available, so blueprint components will
> not participate in quiesce operations
> [         Blueprint Extender: 1] BlueprintContainerImpl         INFO  Bundle
> org.apache.cxf.cxf-rt-transports-http is waiting for namespace handlers
> [http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0]
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  Test
> bundle headers: Bundle-ManifestVersion=2, Bundle-Name=System Bundle,
> Bundle-SymbolicName=de.kalpatec.pojosr.framework, Bundle-Vendor=kalpatec,
> Bundle-Version=0.2.1
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
> bundle: org.apache.camel.camel-spring [15], symbolicName:
> org.apache.camel.camel-spring
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
> org.apache.camel.camel-cxf [14], symbolicName: org.apache.camel.camel-cxf
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
> bundle: org.apache.camel.camel-cxf [14], symbolicName:
> org.apache.camel.camel-cxf
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ManagedService], bundle:
> org.apache.cxf.cxf-rt-core [31], symbolicName: org.apache.cxf.cxf-rt-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ManagedService], bundle:
> org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-features-clustering [22], symbolicName:
> org.apache.cxf.cxf-rt-features-clustering
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-bindings-soap [23], symbolicName:
> org.apache.cxf.cxf-rt-bindings-soap
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.framework.hooks.weaving.WeavingHook], bundle:
> org.apache.aries.proxy.impl [56], symbolicName: org.apache.aries.proxy.impl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.DataFormatResolver], bundle:
> org.apache.camel.camel-core [8], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-transports-http-jetty [32], symbolicName:
> org.apache.cxf.cxf-rt-transports-http-jetty
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-frontend-simple [18], symbolicName:
> org.apache.cxf.cxf-rt-frontend-simple
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference:
> [org.codehaus.stax2.osgi.Stax2ValidationSchemaFactoryProvider], bundle:
> woodstox-core-asl [27], symbolicName: woodstox-core-asl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ConfigurationListener,
> org.apache.felix.fileinstall.ArtifactListener,
> org.apache.felix.fileinstall.ArtifactInstaller], bundle:
> org.apache.felix.fileinstall [66], symbolicName:
> org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
> org.apache.camel.camel-spring [15], symbolicName:
> org.apache.camel.camel-spring
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
> org.apache.camel.camel-core [8], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-features-clustering [22], symbolicName:
> org.apache.cxf.cxf-rt-features-clustering
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-addr [19], symbolicName:
> org.apache.cxf.cxf-rt-ws-addr
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.LanguageResolver], bundle:
> org.apache.camel.camel-core [8], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-ws-addr [19], symbolicName:
> org.apache.cxf.cxf-rt-ws-addr
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.LanguageResolver], bundle:
> org.apache.camel.camel-spring [15], symbolicName:
> org.apache.camel.camel-spring
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.codehaus.stax2.osgi.Stax2InputFactoryProvider],
> bundle: woodstox-core-asl [27], symbolicName: woodstox-core-asl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ConfigurationAdmin], bundle:
> org.apache.felix.configadmin [65], symbolicName:
> org.apache.felix.configadmin
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-frontend-simple [18], symbolicName:
> org.apache.cxf.cxf-rt-frontend-simple
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.url.URLStreamHandlerService], bundle:
> org.apache.felix.fileinstall [66], symbolicName:
> org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [javax.servlet.Servlet], bundle:
> org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.codehaus.stax2.osgi.Stax2OutputFactoryProvider],
> bundle: woodstox-core-asl [27], symbolicName: woodstox-core-asl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.proxy.ProxyManager], bundle:
> org.apache.aries.proxy.impl [56], symbolicName: org.apache.aries.proxy.impl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.camel.camel-cxf-transport [16], symbolicName:
> org.apache.camel.camel-cxf-transport
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference:
> [org.codehaus.stax2.osgi.Stax2ValidationSchemaFactoryProvider], bundle:
> woodstox-core-asl [27], symbolicName: woodstox-core-asl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-frontend-jaxws [17], symbolicName:
> org.apache.cxf.cxf-rt-frontend-jaxws
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
> org.apache.camel.camel-mybatis [46], symbolicName:
> org.apache.camel.camel-mybatis
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.camel.camel-blueprint [12], symbolicName:
> org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference:
> [org.codehaus.stax2.osgi.Stax2ValidationSchemaFactoryProvider], bundle:
> woodstox-core-asl [27], symbolicName: woodstox-core-asl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.camel.camel-cxf-transport [16], symbolicName:
> org.apache.camel.camel-cxf-transport
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.camel.camel-cxf [14], symbolicName: org.apache.camel.camel-cxf
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
> bundle: org.apache.camel.camel-core [8], symbolicName:
> org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.services.ParserService],
> bundle: org.apache.aries.blueprint [54], symbolicName:
> org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-bindings-soap [23], symbolicName:
> org.apache.cxf.cxf-rt-bindings-soap
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-core [31], symbolicName: org.apache.cxf.cxf-rt-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.framework.hooks.bundle.EventHook], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ManagedServiceFactory], bundle:
> org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.aries.blueprint [54], symbolicName:
> org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.cxf.transport.http.DestinationRegistry],
> bundle: org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.felix.cm.PersistenceManager], bundle:
> org.apache.felix.configadmin [65], symbolicName:
> org.apache.felix.configadmin
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
> bundle: org.apache.camel.camel-http [9], symbolicName:
> org.apache.camel.camel-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-ws-policy [20], symbolicName:
> org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
> bundle: de.kalpatec.pojosr.framework [0], symbolicName:
> de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.packageadmin.PackageAdmin], bundle:
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.camel.camel-blueprint [12], symbolicName:
> org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-core [31], symbolicName:
> org.apache.cxf.cxf-rt-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-frontend-jaxws [17], symbolicName:
> org.apache.cxf.cxf-rt-frontend-jaxws
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ManagedServiceFactory], bundle:
> org.apache.cxf.cxf-rt-transports-http-jetty [32], symbolicName:
> org.apache.cxf.cxf-rt-transports-http-jetty
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.camel.camel-cxf [14], symbolicName:
> org.apache.camel.camel-cxf
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.cxf.transport.http.HTTPConduitConfigurer],
> bundle: org.apache.cxf.cxf-rt-transports-http [25], symbolicName:
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-api [26], symbolicName: org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.startlevel.StartLevel], bundle:
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.cxf.cxf-rt-frontend-jaxrs [40], symbolicName:
> org.apache.cxf.cxf-rt-frontend-jaxrs
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [54], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ManagedServiceFactory], bundle:
> org.apache.felix.fileinstall [66], symbolicName:
> org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-frontend-jaxrs [40], symbolicName:
> org.apache.cxf.cxf-rt-frontend-jaxrs
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.osgi.service.cm.ManagedServiceFactory], bundle:
> org.apache.cxf.cxf-rt-core [31], symbolicName: org.apache.cxf.cxf-rt-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.cxf.cxf-rt-transports-http-jetty [32], symbolicName:
> org.apache.cxf.cxf-rt-transports-http-jetty
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
> org.apache.camel.camel-http [9], symbolicName: org.apache.camel.camel-http
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.cxf.cxf-rt-transports-http
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.cxf.cxf-api
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.cxf.cxf-rt-frontend-jaxrs
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.cxf.cxf-rt-transports-http-jetty
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.cxf.cxf-rt-core
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.cxf.cxf-rt-features-clustering
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.cxf.cxf-rt-bindings-soap
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.cxf.cxf-rt-ws-policy
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.cxf.cxf-rt-ws-addr
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.cxf.cxf-rt-frontend-simple
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.cxf.cxf-rt-frontend-jaxws
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.camel.camel-cxf
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle
> org.apache.camel.camel-cxf-transport
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO
> Destroying BlueprintContainer for bundle org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 20
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 19
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 42
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 25
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 23
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 17
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 16
> [mel.test.blueprint.Main.main()] CXFActivator                   INFO
> Removing the extensions for bundle 32
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel
> activator stopping
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel
> activator stopped
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           INFO
> Deleting work directory target/bundles/1456841769804
> [ERROR] *************************************
> [ERROR] Error occurred while running main from:
> org.apache.camel.test.blueprint.Main
> [ERROR]
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:487)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.RuntimeException: Gave up waiting for service
> (objectClass=org.apache.camel.CamelContext)
>         at
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:240)
>         at
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:202)
>         at org.apache.camel.test.blueprint.Main.doStart(Main.java:104)
>         at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at org.apache.camel.main.MainSupport.run(MainSupport.java:148)
>         at org.apache.camel.main.MainSupport.run(MainSupport.java:352)
>         at org.apache.camel.test.blueprint.Main.main(Main.java:81)
>         ... 6 more
> [ERROR] *************************************
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 44.687s
> [INFO] Finished at: Tue Mar 01 16:16:42 EET 2016
> [INFO] Final Memory: 39M/484M
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-run-fail-tp5778479.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to