You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Smith-John <mi...@gmail.com> on 2013/05/30 16:11:27 UTC

No component found with scheme: XY

Hi,

I have a problem using camel (2.10.4) within a OSGi environment (equinox).

Sometimes I'm getting errors like "No component found with scheme: cxf" (or
stream or jetty or...).
Of course the components are there. After removing for example
org.apache.camel.component.cxf from imports and adding it again to it I can
start it without problems. But sometime later the same errors appear.

Is this something like a race condition problem? For the moment my
workaround is to increase the start level of my bundles that use the camel
components. But I'm not sure if this is a safe way to fix the problem. Is
there an other solution to fix the problem?

I'm working with JavaDSL and start the camelContext in a activator like:

public void start(BundleContext bundleContext) throws Exception {
		OsgiServiceRegistry r = new OsgiServiceRegistry(bundleContext);
		DefaultCamelContext c = new OsgiDefaultCamelContext(bundleContext, r);
		c.addRoutes(new myRoute());
		c.start();


Regards.



--
View this message in context: http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No component found with scheme: XY

Posted by Smith-John <mi...@gmail.com>.
Raul Kripalani wrote
> It can be seen in your logs that your bundle my.test.core.service starts
> before camel-cxf. That's clearly the cause of the problem.
> 
> Increasing the start level of my.test.core.service to a number above
> camel-cxf's will help.
> 
> Regards,
> Raúl.
> On 31 May 2013 15:58, "Smith-John" &lt;

> micha89@

> &gt; wrote:
> 
>> Raul Kripalani wrote
>> > Hi,
>> >
>> > I've seen this before too, but I never had the time to drill into it.
>> >
>> > It generally works fine, but in 1 out of 50 cases, most of my bundles
>> fail
>> > to start claiming that X component was not found. Route start levels
>> are
>> > higher than camel-core and component bundles. And there's no Spring or
>> > Blueprint participating with their asynchronous context starting, hence
>> > all
>> > activations are done synchronously. So the race condition cannot be
>> coming
>> > from there...
>> >
>> > How often do you see it? More frequently on some machines or OSes than
>> > others?
>> > Does it resolve OK if you restart the failed bundle after the rest of
>> the
>> > system initializes?
>> > What is the start level of your route bundle? And camel-core's (default
>> > should be 50)?
>> >
>> > Can you enable DEBUG logging on package org.apache.camel.impl.osgi?
>> > That'll
>> > help us see the work of camel-core's Activator, who is in charge of
>> > listening for bundle activations and introspecting them to discover
>> > components, data formats, languages, etc.
>> >
>> > Regards,
>> >
>> > *Raúl Kripalani*
>> > Enterprise Architect, Open Source Integration specialist, Program
>> > Manager | Apache
>> > Camel Committer
>> > http://about.me/raulkripalani |
>> http://www.linkedin.com/in/raulkripalani
>> > http://blog.raulkr.net | twitter: @raulvk
>> >
>> > On Thu, May 30, 2013 at 3:11 PM, Smith-John &lt;
>>
>> > micha89@
>>
>> > &gt; wrote:
>> >
>> >> Hi,
>> >>
>> >> I have a problem using camel (2.10.4) within a OSGi environment
>> >> (equinox).
>> >>
>> >> Sometimes I'm getting errors like "No component found with scheme:
>> cxf"
>> >> (or
>> >> stream or jetty or...).
>> >> Of course the components are there. After removing for example
>> >> org.apache.camel.component.cxf from imports and adding it again to it
>> I
>> >> can
>> >> start it without problems. But sometime later the same errors appear.
>> >>
>> >> Is this something like a race condition problem? For the moment my
>> >> workaround is to increase the start level of my bundles that use the
>> >> camel
>> >> components. But I'm not sure if this is a safe way to fix the problem.
>> Is
>> >> there an other solution to fix the problem?
>> >>
>> >> I'm working with JavaDSL and start the camelContext in a activator
>> like:
>> >>
>> >> public void start(BundleContext bundleContext) throws Exception {
>> >>                 OsgiServiceRegistry r = new
>> >> OsgiServiceRegistry(bundleContext);
>> >>                 DefaultCamelContext c = new
>> >> OsgiDefaultCamelContext(bundleContext, r);
>> >>                 c.addRoutes(new myRoute());
>> >>                 c.start();
>> >>
>> >>
>> >> Regards.
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506.html
>> >> Sent from the Camel - Users mailing list archive at Nabble.com.
>> >>
>>
>>
>> Hi,
>>
>> I'm just working with two different machines, both with win7-64bit. So I
>> can't create a correlation between the fails and some specific OSs. The
>> frequency is very varying. But with raised start levels of the route
>> bundles
>> it clearly less happens.
>> Restarting the bundles after the system was initialized works without
>> problems.
>> As I'm working with Equinox the default start level is 4. Don't know
>> about
>> other osgi frameworks.
>>
>> Console output:
>>
>>
>> osgi> !SESSION 2013-05-31 16:47:11.256
>> -----------------------------------------------
>> eclipse.buildId=unknown
>> java.version=1.6.0_45
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32
>> Command-line arguments:  -dev
>>
>> file:C:/Users/my/workspace/.metadata/.plugins/org.eclipse.pde.core/TesterService/dev.properties
>> -os win32 -ws win32 -arch x86 -consoleLog -console
>>
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:38      Using
>> OsgiCamelContextNameStrategy
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:40      Using
>> OsgiManagementNameStrategy
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:42      Using
>> OsgiClassResolver
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:44      Using
>> OsgiFactoryFinderResolver
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:46      Using
>> OsgiPackageScanClassResolver
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:48      Using
>> OsgiComponentResolver
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:50      Using
>> OsgiLanguageResolver
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:52      Using
>> OsgiDataFormatResolver
>> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiDefaultCamelContext:626   
>> Adding
>> routes from builder: Routes: []
>> 16:47:13.176  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1398  
>> Apache
>> Camel 2.10.4 (CamelContext: 14-camel-2) is starting
>> 16:47:13.207  DEBUG  o.a.c.management.DefaultManagementAgent:262
>>  Starting
>> JMX agent on server: com.sun.jmx.mbeanserver.JmxMBeanServer@1e4a47e
>> 16:47:13.207  INFO   o.a.c.m.ManagementStrategyFactory:43           JMX
>> enabled.
>> 16:47:13.238  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>> org.apache.camel:context=my-PC/14-14-camel-2,type=context,name="14-camel-2"
>> 16:47:13.238  DEBUG  o.a.camel.support.TimerListenerManager:113     Added
>> TimerListener:
>> org.apache.camel.management.mbean.ManagedCamelContext@112da40
>> 16:47:13.269  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiTypeConverter(0x120540c)
>> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=EndpointRegistry(0x14e45b3)
>> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultExecutorServiceManager(0x111bfbc)
>> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=SharedProducerServicePool(0x15e92d7)
>> 16:47:13.285  DEBUG  o.a.camel.impl.SharedProducerServicePool:105
>> Starting
>> service pool: org.apache.camel.impl.SharedProducerServicePool@15e92d7
>> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultInflightRepository(0xe5355f)
>> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultShutdownStrategy(0x14275d4)
>> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
>> Registered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiPackageScanClassResolver(0x163956)
>> 16:47:13.285  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:59     
>> Setting
>> up OSGi ServiceRegistry
>> 16:47:13.300  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1590  
>> Apache
>> Camel 2.10.4 (CamelContext: 14-camel-2) is shutting down
>> 16:47:13.300  DEBUG  o.a.camel.support.TimerListenerManager:126    
>> Removed
>> TimerListener:
>> org.apache.camel.management.mbean.ManagedCamelContext@e0e515
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>> org.apache.camel:context=my-PC/14-14-camel-2,type=context,name="14-camel-2"
>> 16:47:13.300  DEBUG  o.a.camel.impl.DefaultInflightRepository:93
>>  Shutting
>> down with no inflight exchanges.
>> 16:47:13.300  DEBUG  o.a.camel.impl.SharedProducerServicePool:109
>> Stopping
>> service pool: org.apache.camel.impl.SharedProducerServicePool@15e92d7
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiPackageScanClassResolver(0x163956)
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultInflightRepository(0xe5355f)
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=EndpointRegistry(0x14e45b3)
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=SharedProducerServicePool(0x15e92d7)
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiTypeConverter(0x120540c)
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultExecutorServiceManager(0x111bfbc)
>> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
>> Unregistered MBean with ObjectName:
>>
>> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultShutdownStrategy(0x14275d4)
>> 16:47:13.300  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1656  
>> Apache
>> Camel 2.10.4 (CamelContext: 14-camel-2) is shutdown in 0.000 seconds.
>> Uptime
>> 0.124 seconds.
>>
>> !ENTRY my.test.TesterService 4 0 2013-05-31 16:47:13.300
>> !MESSAGE FrameworkEvent ERROR
>> !STACK 0
>> org.osgi.framework.BundleException: Exception in
>> my.test.TesterService.Activator.start() of bundle my.test.TesterService.
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>>         at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>         at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> Caused by: org.apache.camel.FailedToCreateRouteException: Failed to
>> create
>> route route1:
>> Route[[From[cxf:http://localhost:1350/caller?wsdlURL=bundle.
>> ..
>> because of Failed to resolve endpoint:
>> cxf://
>> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
>> due to: No component found with scheme: cxf
>>         at
>> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1575)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
>>         at
>> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
>>         at my.test.TesterService.Activator.start(Activator.java:17)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>>         ... 12 more
>> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
>> resolve endpoint:
>> cxf://
>> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
>> due to: No component found with scheme: cxf
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:485)
>>         at
>>
>> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
>>         at
>>
>> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
>>         at
>>
>> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
>>         at
>>
>> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
>>         at
>>
>> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
>>         at
>>
>> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
>>         at
>> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
>>         at
>> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
>>         ... 22 more
>> Root exception:
>> org.apache.camel.FailedToCreateRouteException: Failed to create route
>> route1: Route[[From[cxf:http://localhost:1350/caller?wsdlURL=bundle...
>> because of Failed to resolve endpoint:
>> cxf://
>> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
>> due to: No component found with scheme: cxf
>>         at
>> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1575)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
>>         at
>> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
>>         at my.test.TesterService.Activator.start(Activator.java:17)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>>         at
>>
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>>         at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>         at
>>
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
>> resolve endpoint:
>> cxf://
>> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
>> due to: No component found with scheme: cxf
>>         at
>>
>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:485)
>>         at
>>
>> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
>>         at
>>
>> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
>>         at
>>
>> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
>>         at
>>
>> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
>>         at
>>
>> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
>>         at
>>
>> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
>>         at
>> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
>>         at
>> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
>>         ... 22 more
>>
>> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
>> addExtensions
>> INFO: Adding the extensions from bundle
>> org.apache.camel.camel-cxf-transport
>> (90) [org.apache.camel.component.cxf.transport.CamelTransportFactory]
>> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
>> addExtensions
>> INFO: Adding the extensions from bundle
>> org.apache.cxf.cxf-rt-transports-http (92)
>> [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]
>> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
>> addExtensions
>> INFO: Adding the extensions from bundle
>> org.apache.cxf.cxf-rt-bindings-soap
>> (109) [org.apache.cxf.binding.soap.SoapBindingFactory,
>> org.apache.cxf.binding.soap.SoapTransportFactory]
>> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
>> addExtensions
>> INFO: Adding the extensions from bundle
>> org.apache.cxf.cxf-rt-transports-http-jetty (113)
>> [org.apache.cxf.transport.http_jetty.JettyDestinationFactory,
>> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory,
>> org.apache.cxf.transport.http.ContinuationProviderFactory]
>> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
>> addExtensions
>> INFO: Adding the extensions from bundle
>> org.apache.cxf.cxf-rt-frontend-jaxws
>> (118) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
>> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
>> addExtensions
>> INFO: Adding the extensions from bundle
>> org.apache.cxf.cxf-rt-bindings-xml
>> (132) [org.apache.cxf.binding.xml.XMLBindingFactory,
>> org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
>> 16:47:13.722  DEBUG  o.a.a.b.container.BlueprintExtender:84
>> Starting
>> blueprint extender...
>> 16:47:13.738  INFO   o.a.a.b.container.BlueprintExtender:124        No
>> quiesce support is available, so blueprint components will not
>> participate
>> in quiesce operations
>> 16:47:13.738  DEBUG  o.a.a.b.container.BlueprintExtender:127
>> Blueprint extender started
>> 16:47:13.738  INFO   org.apache.camel.impl.osgi.Activator:84        Camel
>> activator starting
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.httpcomponents.httpclient
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: my.test.settings
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.equinox.ds
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: my.test.TesterService.service
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.osgi.services
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.httpcomponents.httpcore
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: javax.persistence
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.equinox.util
>> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: javax.mail
>> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: my.test.testengine
>> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: wsdl4j
>> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: derby
>> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: javax.activation
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.persistence.antlr
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.commons.logging
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: my.test.core.service
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: javax.servlet
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.persistence.core
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-stream
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/stream in bundle
>> org.apache.camel.camel-stream
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.springframework.expression
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-jaxb
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:164       Found
>> entry: META-INF/services/org/apache/camel/dataformat/jaxb in bundle
>> org.apache.camel.camel-jaxb
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.servlet
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-cxf-transport
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-core
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-transports-http
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.aries.proxy.api
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-frontend-simple
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.springframework.context
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-http
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/http in bundle
>> org.apache.camel.camel-http
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/https in bundle
>> org.apache.camel.camel-http
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-cxf
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/cxf in bundle
>> org.apache.camel.camel-cxf
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/cxfbean in bundle
>> org.apache.camel.camel-cxf
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/cxfrs in bundle
>> org.apache.camel.camel-cxf
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-spring
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/spring-event in
>> bundle
>> org.apache.camel.camel-spring
>> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/spel in bundle
>> org.apache.camel.camel-spring
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.ws.xmlschema.core
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: com.springsource.org.apache.commons.httpclient
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-jetty
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/jetty in bundle
>> org.apache.camel.camel-jetty
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.server
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: ch.qos.logback.classic
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.springframework.core
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.springframework.beans
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.equinox.event
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.security
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-api
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-bindings-soap
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.aries.util
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.jmx
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.continuation
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-transports-http-jetty
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: ch.qos.logback.core
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.commons.codec
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-databinding-jaxb
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.servlets
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-frontend-jaxws
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.io
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.aries.blueprint
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-core-osgi
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: javax.ws.rs.javax.ws.rs-api
>> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.http
>> 16:47:13.816  INFO   org.apache.camel.impl.osgi.Activator:87        Camel
>> activator started
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/bean in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/browse in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/class in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/dataset in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/direct in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/direct-vm in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/file in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/language in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/log in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/mock in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/properties in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/ref in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/seda in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/stub in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/test in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/timer in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/validator in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/vm in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
>> entry: META-INF/services/org/apache/camel/component/xslt in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/bean in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/constant in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/file in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/header in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/property in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/ref in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/simple in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/tokenize in bundle
>> org.apache.camel.camel-core
>> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
>> entry: META-INF/services/org/apache/camel/language/xpath in bundle
>> org.apache.camel.camel-core
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.client
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-frontend-jaxrs
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: my.test.TesterService.service.impl
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: javax.xml.ws
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.apache.cxf.cxf-rt-bindings-xml
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.springframework.transaction
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.jetty.util
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: slf4j.api
>> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97       
>> Bundle
>> started: org.eclipse.osgi
>>
>> !ENTRY org.eclipse.osgi 4 0 2013-05-31 16:47:13.847
>> !MESSAGE Bundle my.test.TesterService_1.0.0.qualifier [14] is not active.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506p5733569.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>

For this test I set all start levels to default (to provoke the exception). 
But is there another way beside start levels to handle this problem?
As far as I know start lvls shouldn't be used to determine the startup
order.

Regards.




--
View this message in context: http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506p5733669.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No component found with scheme: XY

Posted by Raul Kripalani <ra...@evosent.com>.
It can be seen in your logs that your bundle my.test.core.service starts
before camel-cxf. That's clearly the cause of the problem.

Increasing the start level of my.test.core.service to a number above
camel-cxf's will help.

Regards,
Raúl.
On 31 May 2013 15:58, "Smith-John" <mi...@gmail.com> wrote:

> Raul Kripalani wrote
> > Hi,
> >
> > I've seen this before too, but I never had the time to drill into it.
> >
> > It generally works fine, but in 1 out of 50 cases, most of my bundles
> fail
> > to start claiming that X component was not found. Route start levels are
> > higher than camel-core and component bundles. And there's no Spring or
> > Blueprint participating with their asynchronous context starting, hence
> > all
> > activations are done synchronously. So the race condition cannot be
> coming
> > from there...
> >
> > How often do you see it? More frequently on some machines or OSes than
> > others?
> > Does it resolve OK if you restart the failed bundle after the rest of the
> > system initializes?
> > What is the start level of your route bundle? And camel-core's (default
> > should be 50)?
> >
> > Can you enable DEBUG logging on package org.apache.camel.impl.osgi?
> > That'll
> > help us see the work of camel-core's Activator, who is in charge of
> > listening for bundle activations and introspecting them to discover
> > components, data formats, languages, etc.
> >
> > Regards,
> >
> > *Raúl Kripalani*
> > Enterprise Architect, Open Source Integration specialist, Program
> > Manager | Apache
> > Camel Committer
> > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
> > http://blog.raulkr.net | twitter: @raulvk
> >
> > On Thu, May 30, 2013 at 3:11 PM, Smith-John &lt;
>
> > micha89@
>
> > &gt; wrote:
> >
> >> Hi,
> >>
> >> I have a problem using camel (2.10.4) within a OSGi environment
> >> (equinox).
> >>
> >> Sometimes I'm getting errors like "No component found with scheme: cxf"
> >> (or
> >> stream or jetty or...).
> >> Of course the components are there. After removing for example
> >> org.apache.camel.component.cxf from imports and adding it again to it I
> >> can
> >> start it without problems. But sometime later the same errors appear.
> >>
> >> Is this something like a race condition problem? For the moment my
> >> workaround is to increase the start level of my bundles that use the
> >> camel
> >> components. But I'm not sure if this is a safe way to fix the problem.
> Is
> >> there an other solution to fix the problem?
> >>
> >> I'm working with JavaDSL and start the camelContext in a activator like:
> >>
> >> public void start(BundleContext bundleContext) throws Exception {
> >>                 OsgiServiceRegistry r = new
> >> OsgiServiceRegistry(bundleContext);
> >>                 DefaultCamelContext c = new
> >> OsgiDefaultCamelContext(bundleContext, r);
> >>                 c.addRoutes(new myRoute());
> >>                 c.start();
> >>
> >>
> >> Regards.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506.html
> >> Sent from the Camel - Users mailing list archive at Nabble.com.
> >>
>
>
> Hi,
>
> I'm just working with two different machines, both with win7-64bit. So I
> can't create a correlation between the fails and some specific OSs. The
> frequency is very varying. But with raised start levels of the route
> bundles
> it clearly less happens.
> Restarting the bundles after the system was initialized works without
> problems.
> As I'm working with Equinox the default start level is 4. Don't know about
> other osgi frameworks.
>
> Console output:
>
>
> osgi> !SESSION 2013-05-31 16:47:11.256
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_45
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32
> Command-line arguments:  -dev
>
> file:C:/Users/my/workspace/.metadata/.plugins/org.eclipse.pde.core/TesterService/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog -console
>
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:38      Using
> OsgiCamelContextNameStrategy
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:40      Using
> OsgiManagementNameStrategy
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:42      Using
> OsgiClassResolver
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:44      Using
> OsgiFactoryFinderResolver
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:46      Using
> OsgiPackageScanClassResolver
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:48      Using
> OsgiComponentResolver
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:50      Using
> OsgiLanguageResolver
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:52      Using
> OsgiDataFormatResolver
> 16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiDefaultCamelContext:626    Adding
> routes from builder: Routes: []
> 16:47:13.176  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1398   Apache
> Camel 2.10.4 (CamelContext: 14-camel-2) is starting
> 16:47:13.207  DEBUG  o.a.c.management.DefaultManagementAgent:262
>  Starting
> JMX agent on server: com.sun.jmx.mbeanserver.JmxMBeanServer@1e4a47e
> 16:47:13.207  INFO   o.a.c.m.ManagementStrategyFactory:43           JMX
> enabled.
> 16:47:13.238  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
> org.apache.camel:context=my-PC/14-14-camel-2,type=context,name="14-camel-2"
> 16:47:13.238  DEBUG  o.a.camel.support.TimerListenerManager:113     Added
> TimerListener:
> org.apache.camel.management.mbean.ManagedCamelContext@112da40
> 16:47:13.269  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiTypeConverter(0x120540c)
> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=EndpointRegistry(0x14e45b3)
> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultExecutorServiceManager(0x111bfbc)
> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=SharedProducerServicePool(0x15e92d7)
> 16:47:13.285  DEBUG  o.a.camel.impl.SharedProducerServicePool:105
> Starting
> service pool: org.apache.camel.impl.SharedProducerServicePool@15e92d7
> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultInflightRepository(0xe5355f)
> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultShutdownStrategy(0x14275d4)
> 16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335
> Registered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiPackageScanClassResolver(0x163956)
> 16:47:13.285  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:59      Setting
> up OSGi ServiceRegistry
> 16:47:13.300  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1590   Apache
> Camel 2.10.4 (CamelContext: 14-camel-2) is shutting down
> 16:47:13.300  DEBUG  o.a.camel.support.TimerListenerManager:126     Removed
> TimerListener: org.apache.camel.management.mbean.ManagedCamelContext@e0e515
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
> org.apache.camel:context=my-PC/14-14-camel-2,type=context,name="14-camel-2"
> 16:47:13.300  DEBUG  o.a.camel.impl.DefaultInflightRepository:93
>  Shutting
> down with no inflight exchanges.
> 16:47:13.300  DEBUG  o.a.camel.impl.SharedProducerServicePool:109
> Stopping
> service pool: org.apache.camel.impl.SharedProducerServicePool@15e92d7
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiPackageScanClassResolver(0x163956)
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultInflightRepository(0xe5355f)
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=EndpointRegistry(0x14e45b3)
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=SharedProducerServicePool(0x15e92d7)
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiTypeConverter(0x120540c)
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultExecutorServiceManager(0x111bfbc)
> 16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242
> Unregistered MBean with ObjectName:
>
> org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultShutdownStrategy(0x14275d4)
> 16:47:13.300  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1656   Apache
> Camel 2.10.4 (CamelContext: 14-camel-2) is shutdown in 0.000 seconds.
> Uptime
> 0.124 seconds.
>
> !ENTRY my.test.TesterService 4 0 2013-05-31 16:47:13.300
> !MESSAGE FrameworkEvent ERROR
> !STACK 0
> org.osgi.framework.BundleException: Exception in
> my.test.TesterService.Activator.start() of bundle my.test.TesterService.
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>         at
>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>         at
>
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>         at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>         at
>
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
> route route1: Route[[From[cxf:http://localhost:1350/caller?wsdlURL=bundle.
> ..
> because of Failed to resolve endpoint:
> cxf://
> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
> due to: No component found with scheme: cxf
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1575)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
>         at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
>         at my.test.TesterService.Activator.start(Activator.java:17)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>         ... 12 more
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint:
> cxf://
> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
> due to: No component found with scheme: cxf
>         at
>
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:485)
>         at
>
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
>         at
>
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
>         at
>
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
>         at
>
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
>         at
>
> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
>         at
>
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
>         ... 22 more
> Root exception:
> org.apache.camel.FailedToCreateRouteException: Failed to create route
> route1: Route[[From[cxf:http://localhost:1350/caller?wsdlURL=bundle...
> because of Failed to resolve endpoint:
> cxf://
> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
> due to: No component found with scheme: cxf
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1575)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
>         at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>         at
>
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
>         at my.test.TesterService.Activator.start(Activator.java:17)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>         at
>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>         at
>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
>         at
>
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
>         at
>
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
>         at
>
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>         at
>
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint:
> cxf://
> http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
> due to: No component found with scheme: cxf
>         at
>
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:485)
>         at
>
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
>         at
>
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
>         at
>
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
>         at
>
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
>         at
>
> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
>         at
>
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
>         ... 22 more
>
> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
> addExtensions
> INFO: Adding the extensions from bundle
> org.apache.camel.camel-cxf-transport
> (90) [org.apache.camel.component.cxf.transport.CamelTransportFactory]
> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
> addExtensions
> INFO: Adding the extensions from bundle
> org.apache.cxf.cxf-rt-transports-http (92)
> [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]
> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
> addExtensions
> INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap
> (109) [org.apache.cxf.binding.soap.SoapBindingFactory,
> org.apache.cxf.binding.soap.SoapTransportFactory]
> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
> addExtensions
> INFO: Adding the extensions from bundle
> org.apache.cxf.cxf-rt-transports-http-jetty (113)
> [org.apache.cxf.transport.http_jetty.JettyDestinationFactory,
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory,
> org.apache.cxf.transport.http.ContinuationProviderFactory]
> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
> addExtensions
> INFO: Adding the extensions from bundle
> org.apache.cxf.cxf-rt-frontend-jaxws
> (118) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
> 31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
> addExtensions
> INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml
> (132) [org.apache.cxf.binding.xml.XMLBindingFactory,
> org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
> 16:47:13.722  DEBUG  o.a.a.b.container.BlueprintExtender:84
> Starting
> blueprint extender...
> 16:47:13.738  INFO   o.a.a.b.container.BlueprintExtender:124        No
> quiesce support is available, so blueprint components will not participate
> in quiesce operations
> 16:47:13.738  DEBUG  o.a.a.b.container.BlueprintExtender:127
> Blueprint extender started
> 16:47:13.738  INFO   org.apache.camel.impl.osgi.Activator:84        Camel
> activator starting
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.httpcomponents.httpclient
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: my.test.settings
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.equinox.ds
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: my.test.TesterService.service
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.osgi.services
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.httpcomponents.httpcore
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: javax.persistence
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.equinox.util
> 16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: javax.mail
> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: my.test.testengine
> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: wsdl4j
> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: derby
> 16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: javax.activation
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.persistence.antlr
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.commons.logging
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: my.test.core.service
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: javax.servlet
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.persistence.core
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-stream
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/stream in bundle
> org.apache.camel.camel-stream
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.springframework.expression
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-jaxb
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:164       Found
> entry: META-INF/services/org/apache/camel/dataformat/jaxb in bundle
> org.apache.camel.camel-jaxb
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.servlet
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-cxf-transport
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-core
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-transports-http
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.aries.proxy.api
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-frontend-simple
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.springframework.context
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-http
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/http in bundle
> org.apache.camel.camel-http
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/https in bundle
> org.apache.camel.camel-http
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-cxf
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/cxf in bundle
> org.apache.camel.camel-cxf
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/cxfbean in bundle
> org.apache.camel.camel-cxf
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/cxfrs in bundle
> org.apache.camel.camel-cxf
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-spring
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/spring-event in bundle
> org.apache.camel.camel-spring
> 16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/spel in bundle
> org.apache.camel.camel-spring
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.ws.xmlschema.core
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: com.springsource.org.apache.commons.httpclient
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-jetty
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/jetty in bundle
> org.apache.camel.camel-jetty
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.server
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: ch.qos.logback.classic
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.springframework.core
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.springframework.beans
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.equinox.event
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.security
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-api
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-bindings-soap
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.aries.util
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.jmx
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.continuation
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-transports-http-jetty
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: ch.qos.logback.core
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.commons.codec
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-databinding-jaxb
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.servlets
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-frontend-jaxws
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.io
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.aries.blueprint
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-core-osgi
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: javax.ws.rs.javax.ws.rs-api
> 16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.http
> 16:47:13.816  INFO   org.apache.camel.impl.osgi.Activator:87        Camel
> activator started
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/bean in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/browse in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/class in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/dataset in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/direct in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/direct-vm in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/file in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/language in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/log in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/mock in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/properties in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/ref in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/seda in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/stub in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/test in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/timer in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/validator in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/vm in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
> entry: META-INF/services/org/apache/camel/component/xslt in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/bean in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/constant in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/file in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/header in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/property in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/ref in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/simple in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/tokenize in bundle
> org.apache.camel.camel-core
> 16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
> entry: META-INF/services/org/apache/camel/language/xpath in bundle
> org.apache.camel.camel-core
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.client
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-frontend-jaxrs
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: my.test.TesterService.service.impl
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: javax.xml.ws
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.apache.cxf.cxf-rt-bindings-xml
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.springframework.transaction
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.jetty.util
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: slf4j.api
> 16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
> started: org.eclipse.osgi
>
> !ENTRY org.eclipse.osgi 4 0 2013-05-31 16:47:13.847
> !MESSAGE Bundle my.test.TesterService_1.0.0.qualifier [14] is not active.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506p5733569.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: No component found with scheme: XY

Posted by Smith-John <mi...@gmail.com>.
Raul Kripalani wrote
> Hi,
> 
> I've seen this before too, but I never had the time to drill into it.
> 
> It generally works fine, but in 1 out of 50 cases, most of my bundles fail
> to start claiming that X component was not found. Route start levels are
> higher than camel-core and component bundles. And there's no Spring or
> Blueprint participating with their asynchronous context starting, hence
> all
> activations are done synchronously. So the race condition cannot be coming
> from there...
> 
> How often do you see it? More frequently on some machines or OSes than
> others?
> Does it resolve OK if you restart the failed bundle after the rest of the
> system initializes?
> What is the start level of your route bundle? And camel-core's (default
> should be 50)?
> 
> Can you enable DEBUG logging on package org.apache.camel.impl.osgi?
> That'll
> help us see the work of camel-core's Activator, who is in charge of
> listening for bundle activations and introspecting them to discover
> components, data formats, languages, etc.
> 
> Regards,
> 
> *Raúl Kripalani*
> Enterprise Architect, Open Source Integration specialist, Program
> Manager | Apache
> Camel Committer
> http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
> http://blog.raulkr.net | twitter: @raulvk
> 
> On Thu, May 30, 2013 at 3:11 PM, Smith-John &lt;

> micha89@

> &gt; wrote:
> 
>> Hi,
>>
>> I have a problem using camel (2.10.4) within a OSGi environment
>> (equinox).
>>
>> Sometimes I'm getting errors like "No component found with scheme: cxf"
>> (or
>> stream or jetty or...).
>> Of course the components are there. After removing for example
>> org.apache.camel.component.cxf from imports and adding it again to it I
>> can
>> start it without problems. But sometime later the same errors appear.
>>
>> Is this something like a race condition problem? For the moment my
>> workaround is to increase the start level of my bundles that use the
>> camel
>> components. But I'm not sure if this is a safe way to fix the problem. Is
>> there an other solution to fix the problem?
>>
>> I'm working with JavaDSL and start the camelContext in a activator like:
>>
>> public void start(BundleContext bundleContext) throws Exception {
>>                 OsgiServiceRegistry r = new
>> OsgiServiceRegistry(bundleContext);
>>                 DefaultCamelContext c = new
>> OsgiDefaultCamelContext(bundleContext, r);
>>                 c.addRoutes(new myRoute());
>>                 c.start();
>>
>>
>> Regards.
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>


Hi,

I'm just working with two different machines, both with win7-64bit. So I
can't create a correlation between the fails and some specific OSs. The
frequency is very varying. But with raised start levels of the route bundles
it clearly less happens.
Restarting the bundles after the system was initialized works without
problems. 
As I'm working with Equinox the default start level is 4. Don't know about
other osgi frameworks.

Console output:


osgi> !SESSION 2013-05-31 16:47:11.256
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_45
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32
Command-line arguments:  -dev
file:C:/Users/my/workspace/.metadata/.plugins/org.eclipse.pde.core/TesterService/dev.properties
-os win32 -ws win32 -arch x86 -consoleLog -console

16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:38      Using
OsgiCamelContextNameStrategy
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:40      Using
OsgiManagementNameStrategy
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:42      Using
OsgiClassResolver
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:44      Using
OsgiFactoryFinderResolver
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:46      Using
OsgiPackageScanClassResolver
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:48      Using
OsgiComponentResolver
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:50      Using
OsgiLanguageResolver
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:52      Using
OsgiDataFormatResolver
16:47:13.050  DEBUG  o.a.c.core.osgi.OsgiDefaultCamelContext:626    Adding
routes from builder: Routes: []
16:47:13.176  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1398   Apache
Camel 2.10.4 (CamelContext: 14-camel-2) is starting
16:47:13.207  DEBUG  o.a.c.management.DefaultManagementAgent:262    Starting
JMX agent on server: com.sun.jmx.mbeanserver.JmxMBeanServer@1e4a47e
16:47:13.207  INFO   o.a.c.m.ManagementStrategyFactory:43           JMX
enabled.
16:47:13.238  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=context,name="14-camel-2"
16:47:13.238  DEBUG  o.a.camel.support.TimerListenerManager:113     Added
TimerListener: org.apache.camel.management.mbean.ManagedCamelContext@112da40
16:47:13.269  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiTypeConverter(0x120540c)
16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=EndpointRegistry(0x14e45b3)
16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultExecutorServiceManager(0x111bfbc)
16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=SharedProducerServicePool(0x15e92d7)
16:47:13.285  DEBUG  o.a.camel.impl.SharedProducerServicePool:105   Starting
service pool: org.apache.camel.impl.SharedProducerServicePool@15e92d7
16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultInflightRepository(0xe5355f)
16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultShutdownStrategy(0x14275d4)
16:47:13.285  DEBUG  o.a.c.management.DefaultManagementAgent:335   
Registered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiPackageScanClassResolver(0x163956)
16:47:13.285  DEBUG  o.a.c.core.osgi.OsgiCamelContextHelper:59      Setting
up OSGi ServiceRegistry
16:47:13.300  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1590   Apache
Camel 2.10.4 (CamelContext: 14-camel-2) is shutting down
16:47:13.300  DEBUG  o.a.camel.support.TimerListenerManager:126     Removed
TimerListener: org.apache.camel.management.mbean.ManagedCamelContext@e0e515
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=context,name="14-camel-2"
16:47:13.300  DEBUG  o.a.camel.impl.DefaultInflightRepository:93    Shutting
down with no inflight exchanges.
16:47:13.300  DEBUG  o.a.camel.impl.SharedProducerServicePool:109   Stopping
service pool: org.apache.camel.impl.SharedProducerServicePool@15e92d7
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiPackageScanClassResolver(0x163956)
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultInflightRepository(0xe5355f)
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=EndpointRegistry(0x14e45b3)
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=SharedProducerServicePool(0x15e92d7)
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=OsgiTypeConverter(0x120540c)
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultExecutorServiceManager(0x111bfbc)
16:47:13.300  DEBUG  o.a.c.management.DefaultManagementAgent:242   
Unregistered MBean with ObjectName:
org.apache.camel:context=my-PC/14-14-camel-2,type=services,name=DefaultShutdownStrategy(0x14275d4)
16:47:13.300  INFO   o.a.c.core.osgi.OsgiDefaultCamelContext:1656   Apache
Camel 2.10.4 (CamelContext: 14-camel-2) is shutdown in 0.000 seconds. Uptime
0.124 seconds.

!ENTRY my.test.TesterService 4 0 2013-05-31 16:47:13.300
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in
my.test.TesterService.Activator.start() of bundle my.test.TesterService.
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
	at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
route route1: Route[[From[cxf:http://localhost:1350/caller?wsdlURL=bundle...
because of Failed to resolve endpoint:
cxf://http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
due to: No component found with scheme: cxf
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
	at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
	at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1575)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
	at my.test.TesterService.Activator.start(Activator.java:17)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	... 12 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
cxf://http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
due to: No component found with scheme: cxf
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:485)
	at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
	at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
	at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
	at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
	... 22 more
Root exception:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route[[From[cxf:http://localhost:1350/caller?wsdlURL=bundle...
because of Failed to resolve endpoint:
cxf://http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
due to: No component found with scheme: cxf
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
	at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
	at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1575)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
	at my.test.TesterService.Activator.start(Activator.java:17)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
	at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
cxf://http://localhost:1350/caller?dataFormat=PAYLOAD&loggingFeatureEnabled=true&portName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DInvokePort&serviceName=%7Bhttp%3A%2F%2Fsiserver.org%2Fwsdl%7DcallerService&wsdlURL=bundleresource%3A%2F%2F14.fwk27196165%3A1%2FMETA-INF%2Fcaller.wsdl
due to: No component found with scheme: cxf
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:485)
	at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
	at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
	at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
	at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
	... 22 more

31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
addExtensions
INFO: Adding the extensions from bundle org.apache.camel.camel-cxf-transport
(90) [org.apache.camel.component.cxf.transport.CamelTransportFactory]
31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
addExtensions
INFO: Adding the extensions from bundle
org.apache.cxf.cxf-rt-transports-http (92)
[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]
31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap
(109) [org.apache.cxf.binding.soap.SoapBindingFactory,
org.apache.cxf.binding.soap.SoapTransportFactory]
31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
addExtensions
INFO: Adding the extensions from bundle
org.apache.cxf.cxf-rt-transports-http-jetty (113)
[org.apache.cxf.transport.http_jetty.JettyDestinationFactory,
org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory,
org.apache.cxf.transport.http.ContinuationProviderFactory]
31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws
(118) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
31.05.2013 16:47:13 org.apache.cxf.bus.osgi.CXFExtensionBundleListener
addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml
(132) [org.apache.cxf.binding.xml.XMLBindingFactory,
org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
16:47:13.722  DEBUG  o.a.a.b.container.BlueprintExtender:84         Starting
blueprint extender...
16:47:13.738  INFO   o.a.a.b.container.BlueprintExtender:124        No
quiesce support is available, so blueprint components will not participate
in quiesce operations
16:47:13.738  DEBUG  o.a.a.b.container.BlueprintExtender:127       
Blueprint extender started
16:47:13.738  INFO   org.apache.camel.impl.osgi.Activator:84        Camel
activator starting
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.httpcomponents.httpclient
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: my.test.settings
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.equinox.ds
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: my.test.TesterService.service
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.osgi.services
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.httpcomponents.httpcore
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: javax.persistence
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.equinox.util
16:47:13.738  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: javax.mail
16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: my.test.testengine
16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: wsdl4j
16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: derby
16:47:13.754  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: javax.activation
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.persistence.antlr
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.commons.logging
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: my.test.core.service
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: javax.servlet
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.persistence.core
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-stream
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/stream in bundle
org.apache.camel.camel-stream
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.springframework.expression
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-jaxb
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:164       Found
entry: META-INF/services/org/apache/camel/dataformat/jaxb in bundle
org.apache.camel.camel-jaxb
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.servlet
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-cxf-transport
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-core
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-transports-http
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.aries.proxy.api
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-frontend-simple
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.springframework.context
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-http
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/http in bundle
org.apache.camel.camel-http
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/https in bundle
org.apache.camel.camel-http
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-cxf
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/cxf in bundle
org.apache.camel.camel-cxf
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/cxfbean in bundle
org.apache.camel.camel-cxf
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/cxfrs in bundle
org.apache.camel.camel-cxf
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-spring
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/spring-event in bundle
org.apache.camel.camel-spring
16:47:13.769  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/spel in bundle
org.apache.camel.camel-spring
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.ws.xmlschema.core
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: com.springsource.org.apache.commons.httpclient
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-jetty
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/jetty in bundle
org.apache.camel.camel-jetty
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.server
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: ch.qos.logback.classic
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.springframework.core
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.springframework.beans
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.equinox.event
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.security
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-api
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-bindings-soap
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.aries.util
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.jmx
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.continuation
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-transports-http-jetty
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: ch.qos.logback.core
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.commons.codec
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-databinding-jaxb
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.servlets
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-frontend-jaxws
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.io
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.aries.blueprint
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-core-osgi
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: javax.ws.rs.javax.ws.rs-api
16:47:13.785  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.http
16:47:13.816  INFO   org.apache.camel.impl.osgi.Activator:87        Camel
activator started
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/bean in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/browse in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/class in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/dataset in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/direct in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/direct-vm in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/file in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/language in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/log in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/mock in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/properties in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/ref in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/seda in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/stub in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/test in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/timer in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/validator in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/vm in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:128       Found
entry: META-INF/services/org/apache/camel/component/xslt in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/bean in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/constant in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/file in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/header in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/property in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/ref in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/simple in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/tokenize in bundle
org.apache.camel.camel-core
16:47:13.816  DEBUG  org.apache.camel.impl.osgi.Activator:143       Found
entry: META-INF/services/org/apache/camel/language/xpath in bundle
org.apache.camel.camel-core
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.client
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-frontend-jaxrs
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: my.test.TesterService.service.impl
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: javax.xml.ws
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.apache.cxf.cxf-rt-bindings-xml
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.springframework.transaction
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.jetty.util
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: slf4j.api
16:47:13.832  DEBUG  org.apache.camel.impl.osgi.Activator:97        Bundle
started: org.eclipse.osgi

!ENTRY org.eclipse.osgi 4 0 2013-05-31 16:47:13.847
!MESSAGE Bundle my.test.TesterService_1.0.0.qualifier [14] is not active.




--
View this message in context: http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506p5733569.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No component found with scheme: XY

Posted by Raul Kripalani <ra...@evosent.com>.
Hi,

I've seen this before too, but I never had the time to drill into it.

It generally works fine, but in 1 out of 50 cases, most of my bundles fail
to start claiming that X component was not found. Route start levels are
higher than camel-core and component bundles. And there's no Spring or
Blueprint participating with their asynchronous context starting, hence all
activations are done synchronously. So the race condition cannot be coming
from there...

How often do you see it? More frequently on some machines or OSes than
others?
Does it resolve OK if you restart the failed bundle after the rest of the
system initializes?
What is the start level of your route bundle? And camel-core's (default
should be 50)?

Can you enable DEBUG logging on package org.apache.camel.impl.osgi? That'll
help us see the work of camel-core's Activator, who is in charge of
listening for bundle activations and introspecting them to discover
components, data formats, languages, etc.

Regards,

*Raúl Kripalani*
Enterprise Architect, Open Source Integration specialist, Program
Manager | Apache
Camel Committer
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Thu, May 30, 2013 at 3:11 PM, Smith-John <mi...@gmail.com> wrote:

> Hi,
>
> I have a problem using camel (2.10.4) within a OSGi environment (equinox).
>
> Sometimes I'm getting errors like "No component found with scheme: cxf" (or
> stream or jetty or...).
> Of course the components are there. After removing for example
> org.apache.camel.component.cxf from imports and adding it again to it I can
> start it without problems. But sometime later the same errors appear.
>
> Is this something like a race condition problem? For the moment my
> workaround is to increase the start level of my bundles that use the camel
> components. But I'm not sure if this is a safe way to fix the problem. Is
> there an other solution to fix the problem?
>
> I'm working with JavaDSL and start the camelContext in a activator like:
>
> public void start(BundleContext bundleContext) throws Exception {
>                 OsgiServiceRegistry r = new
> OsgiServiceRegistry(bundleContext);
>                 DefaultCamelContext c = new
> OsgiDefaultCamelContext(bundleContext, r);
>                 c.addRoutes(new myRoute());
>                 c.start();
>
>
> Regards.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/No-component-found-with-scheme-XY-tp5733506.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>