Hi,

I am trying to run Camel as OSgi bundle in Kura with raspberry as the
target device.
Just to get hands on I followed below mentioned steps.

1) Downloaded Kura from *https://github.com/eclipse/kura
<https://github.com/eclipse/kura>* with lwm2m branch since I wanted support
for Lwm2m in Kura.

2) Deployed Kura in raspberry pi as steps mentioned in
*https://wiki.eclipse.org/Kura/Getting_Started
<https://wiki.eclipse.org/Kura/Getting_Started>*

3) After that followed steps @
*http://java.dzone.com/articles/apache-camel-iot-world-eclipse
<http://java.dzone.com/articles/apache-camel-iot-world-eclipse>* to bundle
camel in Kura.

As mentioned I installed all the jar files in raspberry pi and finally
started my- camel-bundle.jar
But in osgi console if I run "ls" command camel bundle is shown as
unsatisfied.
*33      Unsatisfied
org.eclipse.kura.example.camel_osgi
org.eclipse.kura.example.camel_osgi(bid=75)*.

I have attached the *error.txt* file with the output of command ls, ss and
comp.
Request you to help me in debugging this issue.
Since I am new to Camel,Kura,Raspberry pi kindly guide me in making this up
and providing pointers or any kind of help
with respect to this.

Thanks in advance.

Thanks and Regards,
Parul
osgi> ls
All Components:
ID      State                   Component Name                  Located in 
bundle
1       Active          org.eclipse.equinox.event                       
org.eclipse.equinox.event(bid=7)
2       Active          org.eclipse.kura.deployment.agent                       
org.eclipse.kura.deployment.agent(bid=49)
3       Active          
org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport                     
org.eclipse.kura.core(bid=51)
4       Active          org.eclipse.kura.system.SystemService                   
org.eclipse.kura.core(bid=51)
5       Active          org.eclipse.kura.data.DataService                       
org.eclipse.kura.core(bid=51)
6       Active          org.eclipse.kura.ssl.SslManagerService                  
org.eclipse.kura.core(bid=51)
7       Active          org.eclipse.kura.db.DbService                   
org.eclipse.kura.core(bid=51)
8       Active          org.eclipse.kura.system.SystemAdminService              
        org.eclipse.kura.core(bid=51)
9       Active          org.eclipse.kura.certificate.CertificatesService        
                org.eclipse.kura.core.certificates(bid=52)
10      Active          org.eclipse.kura.cloud.app.command.CommandCloudApp      
                org.eclipse.kura.core.cloud(bid=53)
11      Active          org.eclipse.kura.cloud.CloudCallService                 
org.eclipse.kura.core.cloud(bid=53)
12      Active          org.eclipse.kura.cloud.CloudService                     
org.eclipse.kura.core.cloud(bid=53)
13      Active          org.eclipse.kura.core.comm.CommConnectionFactory        
                org.eclipse.kura.core.comm(bid=54)
14      Active          org.eclipse.kura.configuration.ConfigurationService     
                org.eclipse.kura.core.configuration(bid=55)
15      Active          org.eclipse.kura.crypto.CryptoService                   
org.eclipse.kura.core.crypto(bid=56)
16      Active          org.eclipse.kura.core.deployment                        
org.eclipse.kura.core.deployment(bid=57)
17      Active          org.eclipse.kura.log.LoggerService                      
org.eclipse.kura.core.log(bid=58)
18      Active          org.eclipse.kura.clock.ClockService                     
org.eclipse.kura.linux.clock(bid=60)
19      Active          org.eclipse.kura.command.CommandService                 
org.eclipse.kura.linux.command(bid=61)
20      Active          org.eclipse.kura.net.NetworkService                     
org.eclipse.kura.linux.net(bid=62)
21      Active          org.eclipse.kura.position.PositionService               
        org.eclipse.kura.linux.position(bid=63)
22      Active          org.eclipse.kura.usb.UsbService                 
org.eclipse.kura.linux.usb(bid=64)
23      Active          org.eclipse.kura.bluetooth.BluetoothService             
        org.eclipse.kura.linux.bluetooth(bid=65)
24      Active          org.eclipse.kura.watchdog.WatchdogService               
        org.eclipse.kura.linux.watchdog(bid=66)
25      Active          org.eclipse.kura.net.CellularMonitorService             
        org.eclipse.kura.net.admin(bid=67)
26      Active          org.eclipse.kura.net.EthernetMonitorService             
        org.eclipse.kura.net.admin(bid=67)
27      Active          org.eclipse.kura.net.admin.NetworkAdminService          
        org.eclipse.kura.net.admin(bid=67)
28      Active          org.eclipse.kura.net.WifiMonitorService                 
org.eclipse.kura.net.admin(bid=67)
29      Active          org.eclipse.kura.net.dns.DnsMonitorService              
        org.eclipse.kura.net.admin(bid=67)
30      Active          org.eclipse.kura.net.admin.NetworkConfigurationService  
                org.eclipse.kura.net.admin(bid=67)
31      Active          org.eclipse.kura.web.Console                    
org.eclipse.kura.web(bid=68)
33      Unsatisfied             org.eclipse.kura.example.camel_osgi             
        org.eclipse.kura.example.camel_osgi(bid=75)

==========================================================================================================================


osgi> comp 33
        Component[
        name = org.eclipse.kura.example.camel_osgi
        activate = activate
        deactivate = deactivate
        modified = 
        configuration-policy = optional
        factory = null
        autoenable = true
        immediate = true
        implementation = org.eclipse.kura.example.camel_osgi.CamelOsgi
        state = Unsatisfied
        properties = 
        serviceFactory = false
        serviceInterface = null
        references = null
        located in bundle = 
org.eclipse.kura.example.camel_osgi_1.0.0.201506291149 [75]
]
Dynamic information :
  The component is satisfied
  All component references are satisfied
  Component configurations :
    Configuration properties:
      component.name = org.eclipse.kura.example.camel_osgi
      component.id = 32
    Instances:


======================================================================================================================
osgi> ss
"Framework is launched."


id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.8.1.v20120830-144521
1       ACTIVE      org.eclipse.equinox.cm_1.0.400.v20120522-1841
2       ACTIVE      org.eclipse.equinox.common_3.6.100.v20120522-1841
3       ACTIVE      org.eclipse.equinox.registry_3.5.200.v20120522-1841
4       ACTIVE      org.eclipse.equinox.http.registry_1.1.200.v20120522-2049
5       ACTIVE      org.eclipse.equinox.console_1.0.0.v20120522-1841
6       ACTIVE      org.eclipse.equinox.ds_1.4.0.v20120522-1841
7       ACTIVE      org.eclipse.equinox.event_1.2.200.v20120522-2049
8       ACTIVE      org.eclipse.equinox.io_1.0.400.v20120522-2049
9       ACTIVE      org.eclipse.equinox.metatype_1.2.0.v20120522-1841
10      ACTIVE      org.eclipse.equinox.util_1.0.400.v20120522-2049
11      ACTIVE      org.eclipse.osgi.services_3.3.100.v20120522-1822
12      ACTIVE      org.eclipse.osgi.util_3.2.300.v20120522-1822
13      ACTIVE      org.apache.felix.gogo.command_0.8.0.v201108120515
14      ACTIVE      org.apache.felix.gogo.runtime_0.8.0.v201108120515
15      ACTIVE      org.apache.felix.gogo.shell_0.8.0.v201110170705
16      ACTIVE      org.knowhowlab.osgi.monitoradmin_1.0.2
17      ACTIVE      org.apache.felix.dependencymanager_3.0.0
18      ACTIVE      org.apache.felix.deploymentadmin_0.9.5
19      ACTIVE      osgi.cmpn_4.3.0.201111022214
20      ACTIVE      org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
21      ACTIVE      org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
22      ACTIVE      org.eclipse.jetty.continuation_8.1.3.v20120522
23      ACTIVE      org.eclipse.jetty.http_8.1.3.v20120522
24      ACTIVE      org.eclipse.jetty.io_8.1.3.v20120522
25      ACTIVE      org.eclipse.jetty.security_8.1.3.v20120522
26      ACTIVE      org.eclipse.jetty.server_8.1.3.v20120522
27      ACTIVE      org.eclipse.jetty.servlet_8.1.3.v20120522
28      ACTIVE      org.eclipse.jetty.util_8.1.3.v20120522
29      ACTIVE      javax.servlet_3.0.0.v201112011016
30      ACTIVE      org.apache.commons.fileupload_1.2.2.v20111214-1400
31      ACTIVE      org.apache.commons.io_2.4.0
32      ACTIVE      slf4j.api_1.6.4
                    Fragments=33
33      RESOLVED    slf4j.log4j12_1.6.0
                    Master=32
34      RESOLVED    log4j_1.2.17
                    Fragments=35
35      RESOLVED    log4j.apache-log4j-extras_1.1.0
                    Master=34
36      ACTIVE      org.json_1.0.0.v201011060100
37      ACTIVE      org.eclipse.paho.client.mqttv3_1.0.1
38      ACTIVE      org.hsqldb.hsqldb_2.3.0
39      ACTIVE      com.google.protobuf_2.6.0
40      ACTIVE      com.codeminders.hidapi_1.1.1
41      ACTIVE      org.eclipse.soda.dk.comm_1.2.1
42      ACTIVE      javax.usb.api_1.0.2
43      ACTIVE      javax.usb.common_1.0.2
44      ACTIVE      javax.usb.linux_1.0.3
45      ACTIVE      jdk.dio_1.0.1
46      ACTIVE      org.apache.commons.net_3.1.0.v201205071737
47      ACTIVE      org.tigris.mtoolkit.iagent.rpc_3.0.0.20110411-0918
48      ACTIVE      com.gwt.user_0.2.0
49      ACTIVE      org.eclipse.kura.deployment.agent_1.0.2
50      ACTIVE      org.eclipse.kura.api_1.0.4
51      ACTIVE      org.eclipse.kura.core_1.0.4
52      ACTIVE      org.eclipse.kura.core.certificates_1.0.0
53      ACTIVE      org.eclipse.kura.core.cloud_1.0.4
54      ACTIVE      org.eclipse.kura.core.comm_1.0.1
55      ACTIVE      org.eclipse.kura.core.configuration_1.0.3
56      ACTIVE      org.eclipse.kura.core.crypto_1.0.2
57      ACTIVE      org.eclipse.kura.core.deployment_1.0.2
58      ACTIVE      org.eclipse.kura.core.log_1.0.0
59      ACTIVE      org.eclipse.kura.core.net_1.0.4
60      ACTIVE      org.eclipse.kura.linux.clock_1.0.3
61      ACTIVE      org.eclipse.kura.linux.command_1.0.3
62      ACTIVE      org.eclipse.kura.linux.net_1.0.5.201506291010
63      ACTIVE      org.eclipse.kura.linux.position_1.0.3
64      ACTIVE      org.eclipse.kura.linux.usb_1.0.4
65      ACTIVE      org.eclipse.kura.linux.bluetooth_1.0.1
66      ACTIVE      org.eclipse.kura.linux.watchdog_1.0.2
67      ACTIVE      org.eclipse.kura.net.admin_1.0.5.201506291010
68      ACTIVE      org.eclipse.kura.web_1.0.4
70      ACTIVE      org.apache.camel.camel-core_2.15.2
71      ACTIVE      org.apache.camel.camel-core-osgi_2.15.2
72      ACTIVE      org.apache.camel.camel-kura_2.15.2
74      ACTIVE      org.apache.camel.camel-stream_2.15.2
75      ACTIVE      org.eclipse.kura.example.camel_osgi_1.0.0.201506291149
osgi> 

Reply via email to