Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] Running web bundle over concierge

Yes but my point is that 'services' doesn’t list DeploymentAdmin … So it’s not registered neither as a DS nor a good ol’ service, which sounds bogus. So does having only 3 registered services fwiw.

Benjamin


Le 22 juil. 2014 à 11:39, Cristiano De Alti <cristiano.dealti@xxxxxxxxxxxx> a écrit :

The DeploymentAdmin is not a DeclarativeService/Component but just a regular Bundle (org.apache.felix.deploymentadmin_0.9.5). It does not show up in the list of components ('ls') but only in the list of bundles ('ss').

I'd be curious about 'comp 28' if the 'comp' command is available in the Concierge OSGi console.

Ciao,
  Cristiano
 
On 22/07/2014 10:21, Benjamin Cabé wrote:
I would be really curious to see the result of "comp 2", for example. How come "org.eclipse.kura.deployment.agent" is listed as active whereas there doesn't seem to be a DeploymentAdmin service available… 

Benjamin


De : Harini Sirisena <harini.sirisena@xxxxxxxxx>
Répondre à : Kura Developers mailing list <kura-dev@xxxxxxxxxxx>
Date : Tue, 22 Jul 2014 09:15:08 +0530
À : David Woodard <david.woodard@xxxxxxxxxxxx>
Cc : Kura Developers mailing list <kura-dev@xxxxxxxxxxx>
Objet : Re: [kura-dev] Running web bundle over concierge

Hi David,

Thanks for the reply. I have pasted the result I got for concierge and equinox below. I am launching kura using the start script inside opt/eclipse/kura/bin folder. From the results it's clear that although the kura bundles resolved over concierge the services did not start. I suspect this is due to missing equinox bundles in my concierge launch configuration. Any suggestions?

Concierge> bundles
Bundles:
[ 0] (active) org.eclipse.concierge
[ 1] (active) Concierge Shell
[ 2] (resolved) Apache Log4j
[ 3] (active) slf4j-api
[ 4] (resolved) slf4j-log4j12
[ 5] (active) javax.usb API from javax-usb
[ 6] (active) bundle.name
[ 7] (active) osgi.cmpn
[ 8] (active) Eclipse Paho MQTT Client
[ 9] (active) HSQLDB
[10] (active) Apache ServiceMix :: Bundles :: protobuf-java
[11] (active) Apache Commons Net
[12] (active) Commons IO
[13] (active) javax.usb Common from javax-usb
[14] (active) Servlet API Bundle
[15] (active) Apache Commons FileUpload
[16] (active) User
[17] (active) Jetty :: Utilities
[18] (active) Jetty :: IO Utility
[19] (active) Jetty :: Continuation
[20] (active) Jetty :: Http Utility
[21] (active) Jetty :: Server Core
[22] (active) Jetty :: Security
[23] (active) Jetty :: Servlet Handling
[24] (active) Http Services Servlet
[25] (active) Jetty Http Service
[26] (active) org.eclipse.kura.deployment.agent
[27] (active) org.eclipse.kura.api
[28] (active) org.eclipse.kura.core
[29] (active) org.eclipse.kura.core.cloud
[30] (active) org.eclipse.kura.core.comm
[31] (active) org.eclipse.kura.core.configuration
[32] (active) org.eclipse.kura.core.crypto
[33] (active) org.eclipse.kura.core.deployment
[34] (active) org.eclipse.kura.core.net
[35] (active) org.eclipse.kura.linux.clock
[36] (active) org.eclipse.kura.linux.command
[37] (active) org.eclipse.kura.linux.net
[38] (active) org.eclipse.kura.linux.position
[39] (active) org.eclipse.kura.linux.usb
[40] (active) org.eclipse.kura.linux.watchdog
[41] (active) org.eclipse.kura.net.admin
[42] (active) org.eclipse.kura.web


Concierge> services
Services:
Concierge System Bundle
    [Service 1] [org.osgi.service.resolver.Resolver]
[org.eclipse.equinox.http.servlet-1.1.300.v20120522-1841]
    [Service 2] [org.osgi.service.http.HttpService, org.eclipse.equinox.http.servlet.ExtendedHttpService]
[org.eclipse.equinox.http.jetty-3.0.0.v20120522-1841]
    [Service 3] [org.osgi.service.cm.ManagedServiceFactory]


Concierge>


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      mqtt-client_0.4.0
38    ACTIVE      org.hsqldb.hsqldb_2.3.0
39    ACTIVE      org.apache.servicemix.bundles.protobuf-java_2.4.1.1
40    ACTIVE      com.codeminders.hidapi_1.1.0
41    ACTIVE      org.eclipse.soda.dk.comm_1.2.0
42    ACTIVE      javax.usb.api_1.0.2
43    ACTIVE      javax.usb.common_1.0.2
44    ACTIVE      org.apache.commons.net_3.1.0.v201205071737
45    ACTIVE      org.tigris.mtoolkit.iagent.rpc_3.0.0.20110411-0918
46    ACTIVE      com.gwt.user_0.2.0
47    ACTIVE      org.eclipse.kura.deployment.agent_0.2.0.201407200931
48    ACTIVE      org.eclipse.kura.api_0.2.0.201407200931
49    ACTIVE      org.eclipse.kura.core_0.2.0.201407200931
50    ACTIVE      org.eclipse.kura.core.cloud_0.2.0.201407200931
51    ACTIVE      org.eclipse.kura.core.comm_0.2.0.201407200931
52    ACTIVE      org.eclipse.kura.core.configuration_0.2.0.201407200931
53    ACTIVE      org.eclipse.kura.core.crypto_0.2.0.201407200931
54    ACTIVE      org.eclipse.kura.core.deployment_0.2.0.201407200931
55    ACTIVE      org.eclipse.kura.core.net_0.2.0.201407200931
56    ACTIVE      org.eclipse.kura.linux.clock_0.2.0.201407200931
57    ACTIVE      org.eclipse.kura.linux.command_0.2.0.201407200931
58    ACTIVE      org.eclipse.kura.linux.net_0.2.0.201407200931
59    ACTIVE      org.eclipse.kura.linux.position_0.2.0.201407200931
60    ACTIVE      org.eclipse.kura.linux.usb_0.2.0.201407200931
61    ACTIVE      org.eclipse.kura.linux.watchdog_0.2.0.201407200931
62    ACTIVE      org.eclipse.kura.net.admin_0.2.0.201407200931
63    ACTIVE      org.eclipse.kura.web_0.2.0.qualifier
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=47)
3    Active        org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport            org.eclipse.kura.core(bid=49)
4    Active        org.eclipse.kura.db.DbService            org.eclipse.kura.core(bid=49)
5    Active        org.eclipse.kura.ssl.SslManagerService            org.eclipse.kura.core(bid=49)
6    Active        org.eclipse.kura.system.SystemAdminService            org.eclipse.kura.core(bid=49)
7    Active        org.eclipse.kura.data.DataService            org.eclipse.kura.core(bid=49)
8    Active        org.eclipse.kura.system.SystemService            org.eclipse.kura.core(bid=49)
9    Active        org.eclipse.kura.cloud.CloudCallService            org.eclipse.kura.core.cloud(bid=50)
10    Active        org.eclipse.kura.cloud.CloudService            org.eclipse.kura.core.cloud(bid=50)
11    Active        org.eclipse.kura.cloud.app.command.CommandCloudApp            org.eclipse.kura.core.cloud(bid=50)
12    Active        org.eclipse.kura.core.comm.CommConnectionFactory            org.eclipse.kura.core.comm(bid=51)
13    Active        org.eclipse.kura.configuration.ConfigurationService            org.eclipse.kura.core.configuration(bid=52)
14    Active        org.eclipse.kura.crypto.CryptoService            org.eclipse.kura.core.crypto(bid=53)
15    Active        org.eclipse.kura.core.deployment            org.eclipse.kura.core.deployment(bid=54)
16    Active        org.eclipse.kura.clock.ClockService            org.eclipse.kura.linux.clock(bid=56)
17    Active        org.eclipse.kura.command.CommandService            org.eclipse.kura.linux.command(bid=57)
18    Active        org.eclipse.kura.net.NetworkService            org.eclipse.kura.linux.net(bid=58)
19    Active        org.eclipse.kura.position.PositionService            org.eclipse.kura.linux.position(bid=59)
20    Active        org.eclipse.kura.usb.UsbService            org.eclipse.kura.linux.usb(bid=60)
21    Active        org.eclipse.kura.watchdog.WatchdogService            org.eclipse.kura.linux.watchdog(bid=61)
22    Active        org.eclipse.kura.net.CellularMonitorService            org.eclipse.kura.net.admin(bid=62)
23    Active        org.eclipse.kura.net.admin.NetworkConfigurationService            org.eclipse.kura.net.admin(bid=62)
24    Active        org.eclipse.kura.net.WifiMonitorService            org.eclipse.kura.net.admin(bid=62)
25    Active        org.eclipse.kura.net.dns.DnsMonitorService            org.eclipse.kura.net.admin(bid=62)
26    Active        org.eclipse.kura.net.EthernetMonitorService            org.eclipse.kura.net.admin(bid=62)
27    Active        org.eclipse.kura.net.admin.NetworkAdminService            org.eclipse.kura.net.admin(bid=62)
28    Active        org.eclipse.kura.web.Console            org.eclipse.kura.web(bid=63)
osgi>


Thanks,
Harini


On Mon, Jul 21, 2014 at 8:59 PM, David Woodard <david.woodard@xxxxxxxxxxxx> wrote:
Hello Harini,

Can you run the 'ss' and 'ls' commands in the OSGi console and paste the results? Also, if you are running the Kura emulator, make sure you are connecting to the correct port and no other applications are using that port.

Thanks,
--Dave

On 7/20/14, 10:54 AM, Harini Sirisena wrote:
Hi,

When running the kura web bundle over concierge, the bundle gets resolved and started, however I am getting a 404 error with the message below in the browser,

Problem accessing /kura. Reason:
    ProxyServlet: /kura

The web bundle resolves over concierge when started with the below listed dependencies which includes the kura bundle dependencies,

javax.servlet_3.0.0.v201112011016.jar,
org.apache.commons.io_2.4.0.jar,
org.apache.commons.fileupload_1.2.2.v20111214-1400.jar,
com.gwt.user_0.2.0.jar,
javax.usb.api_1.0.2.jar,
org.eclipse.soda.dk.comm_1.2.0.jar,
osgi.cmpn_4.3.0.201111022214.jar,
o.e.kura.api,
mqtt-client_0.4.0.jar,
org.hsqldb.hsqldb_2.3.0.jar,
o.e.kura.core,
o.e.kura.core.configuration,
o.e.kura.core.net,
osgi.cmpn_4.3.0.201111022214.jar,
o.e.kura.core.deploymentagent,
org.eclipse.jetty.util_8.1.3.v20120522.jar,
org.eclipse.jetty.io_8.1.3.v20120522.jar,
org.eclipse.jetty.continuation_8.1.3.v20120522.jar,
org.eclipse.jetty.http_8.1.3.v20120522.jar,
org.eclipse.jetty.server_8.1.3.v20120522.jar,
org.eclipse.jetty.security_8.1.3.v20120522.jar,
org.eclipse.jetty.servlet_8.1.3.v20120522.jar,
org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar,
org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841.jar

I believe the error is due to a missing dependency. What are the required equinox specific bundles for the kura web bundle to launch? Some equinox bundles (not listed here) do not currently resolve over concierge. This could be an issue in getting the kura web bundle to work over concierge.


Thanks,
Harini Sirisena





_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________ kura-dev mailing list kura-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev

--
Cristiano De Alti
Principal Software Engineer

direct:    +39 0433 485468

EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via Fratelli Solari, 3/a | 33020 Amaro UD | Italy | Tel. +39. 0433 485411  | Fax +39. 0433 485499 |
Cap. Soc. 8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 | REA Udine 196115
www.eurotech.com
____________________________________

Il presente messaggio ed ogni suo allegato sono da intendersi inviati esclusivamente agli effettivi destinatari e potrebbero essere soggetti a restrizioni legali. Se avete ricevuto questo messaggio per errore vi invitiamo a darne immediata notifica al mittente e cancellarlo dal vostro sistema. Qualsiasi altro uso di questo messaggio da parte vostra e' strettamente proibito.
 
This e-mail, and any file attached to it, is meant only for the intended recipient of the transmission and may be a communication privileged by law. If you have received it in error, please notify the sender immediately and delete the original from your system. Any other use of this e-mail by you is strictly forbidden.
____________________________________
 
Per favore, pensate all’ambiente prima di stampare questa e-mail. Please consider the environment before printing this e-mail.
_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


Back to the top