Hi there,

I try to create a Beanio sample in blueprint, however my bundle does not come 
up. The camel-beanio feature is installed. Config details below.
Any ideas why this is waiting for a namespace handler/how to resolve this?

013-01-28 13:52:35,755 | DEBUG | l Console Thread | BlueprintExtender           
     | rint.container.BlueprintExtender  303 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Found blueprint application in bundle 
beanio with paths: [bundle://81.2:0/OSGI-INF/blueprint/blueprint.xml, 
bundle://81.2:0/OSGI-INF/blueprint/mappings.xml]
2013-01-28 13:52:35,756 | DEBUG | l Console Thread | BlueprintExtender          
      | rint.container.BlueprintExtender  317 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Scheduling creation of blueprint 
bundle beanio asynchronously
2013-01-28 13:52:35,757 | DEBUG | l Console Thread | ContextLoaderListener      
      | .activator.ContextLoaderListener  679 | 73 - 
org.springframework.osgi.extender - 1.2.1 | Scanning bundle [BeanIOTest 
(beanio)] for configurations...
2013-01-28 13:52:35,757 | DEBUG | l Console Thread | ContextLoaderListener      
      | .activator.ContextLoaderListener  685 | 73 - 
org.springframework.osgi.extender - 1.2.1 | Creating an application context for 
bundle [BeanIOTest (beanio)]
2013-01-28 13:52:35,757 | DEBUG | l Console Thread | ContextLoaderListener      
      | .activator.ContextLoaderListener  696 | 73 - 
org.springframework.osgi.extender - 1.2.1 | No application context created for 
bundle [BeanIOTest (beanio)]
2013-01-28 13:52:35,757 | DEBUG | l Console Thread | Activator                  
      | apache.camel.impl.osgi.Activator   97 | 68 - 
org.apache.camel.camel-core - 2.10.3 | Bundle started: beanio
2013-01-28 13:52:35,758 | DEBUG | rint Extender: 1 | BlueprintContainerImpl     
      | container.BlueprintContainerImpl  272 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Running blueprint container for 
bundle beanio in state Unknown
2013-01-28 13:52:35,758 | DEBUG | rint Extender: 1 | BlueprintEventDispatcher   
      | ntainer.BlueprintEventDispatcher  136 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Sending blueprint container event 
BlueprintEvent[type=CREATING] for bundle beanio
2013-01-28 13:52:35,759 | DEBUG | nt Dispatcher: 1 | BlueprintListener          
      | raf.shell.osgi.BlueprintListener   85 | 39 - 
org.apache.karaf.shell.osgi - 2.3.0 | Blueprint app state changed to Creating 
for bundle 81
2013-01-28 13:52:35,759 | DEBUG | lixDispatchQueue | beanio                     
      | ?                                   ? | 81 - beanio - 1.0.0.SNAPSHOT | 
BundleEvent STARTED - beanio
2013-01-28 13:52:35,770 | INFO  | rint Extender: 1 | BlueprintContainerImpl     
      | container.BlueprintContainerImpl  294 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Bundle beanio is waiting for 
namespace handlers [http://www.beanio.org/2012/03]
2013-01-28 13:52:35,770 | DEBUG | rint Extender: 1 | BlueprintEventDispatcher   
      | ntainer.BlueprintEventDispatcher  136 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Sending blueprint container event 
BlueprintEvent[type=GRACE_PERIOD, 
dependencies=[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://www.beanio.org/2012/03))]]
 for bundle beanio
2013-01-28 13:52:35,770 | DEBUG | nt Dispatcher: 1 | BlueprintListener          
      | raf.shell.osgi.BlueprintListener   85 | 39 - 
org.apache.karaf.shell.osgi - 2.3.0 | Blueprint app state changed to 
GracePeriod for bundle 81
2013-01-28 13:52:37,282 | DEBUG | l Console Thread | ServiceRecipe              
      | lueprint.container.ServiceRecipe  245 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Retrieving service for bundle 
org.apache.karaf.shell.console [14] and service registration 
org.apache.felix.framework.ServiceRegistrationImpl@3a04416b
2013-01-28 13:52:37,282 | DEBUG | l Console Thread | ServiceRecipe              
      | viceRecipe$TriggerServiceFactory  503 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Method entry: getService, args 
org.apache.karaf.shell.console.commands.BlueprintCommand@1bb24442
2013-01-28 13:52:37,283 | DEBUG | l Console Thread | BlueprintContainerImpl     
      | container.BlueprintContainerImpl  723 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Instantiating component shell-109
2013-01-28 13:52:37,285 | DEBUG | l Console Thread | BlueprintContainerImpl     
      | container.BlueprintContainerImpl  723 | 7 - 
org.apache.aries.blueprint.core - 1.0.1 | Instantiating component 
blueprintBundleContext

karaf@root> 

karaf@root> info
Karaf
  Karaf version               2.3.0
  Karaf home                  /Users/thomas/apache-karaf-2.3.0
  Karaf base                  /Users/thomas/apache-karaf-2.3.0
  OSGi Framework              org.apache.felix.framework - 4.0.3

JVM
  Java Virtual Machine        Java HotSpot(TM) 64-Bit Server VM version 
20.12-b01-434
  Version                     1.6.0_37
  Vendor                      Apple Inc.
  Uptime                      9 minutes
  Total compile time          18.125 seconds
Threads
  Live threads                32
  Daemon threads              27
  Peak                        34
  Total started               59
Memory
  Current heap size           76,126 kbytes
  Maximum heap size           466,048 kbytes
  Committed heap size         223,936 kbytes
  Pending objects             0
  Garbage collector           Name = 'PS Scavenge', Collections = 5, Time = 
0.175 seconds
  Garbage collector           Name = 'PS MarkSweep', Collections = 1, Time = 
0.132 seconds
Classes
  Current classes loaded      3,764
  Total classes loaded        3,765
  Total classes unloaded      1
Operating system
  Name                        Mac OS X version 10.8.2
  Architecture                x86_64
  Processors                  2
karaf@root> 


Camel 2.10.3

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/blueprint";
       xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0 
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
       http://camel.apache.org/schema/blueprint 
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd";>

  <camelContext trace="false" id="ctxBeanIo" 
xmlns="http://camel.apache.org/schema/blueprint";>
    <dataFormats>
        <beanio streamName="employeeFile" 
mapping="file:///users/thomas/mappings.xml" id="myBeanio"/>
    </dataFormats>
    <route>
        <description>setup beanio data format</description>
        <from uri="direct:unmarshal"/>
        <unmarshal ref="myBeanio"/>
        <split>
            <simple>body</simple>
            <to uri="mock:beanio-unmarshal"/>
        </split>
    </route>
    <route>
        <from uri="direct:marshal"/>
        <marshal ref="myBeanio"/>
        <to uri="mock:beanio-marshal"/>
    </route>
</camelContext>

</blueprint>




Reply via email to