Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] Kura and mToolkit

Looking at the target, it doesn't seem as if there is a socket 3939 open. The following bundles are active an the target (grepped by "ecf"):

---
karaf@root()> bundle:list -s | grep org.eclipse.ecf
119 | Active   |  80 | 3.8.0.v20160823-2221   | org.eclipse.ecf
120 | Active   |  80 | 5.0.200.v20160823-2221 | org.eclipse.ecf.discovery
121 | Active   |  80 | 3.7.0.v20160823-2221   | org.eclipse.ecf.identity
122 | Active   |  80 | 1.0.0.201610091743     | org.eclipse.ecf.mgmt
123 | Active   |  80 | 1.0.0.201610091743     | org.eclipse.ecf.mgmt.framework
124 | Active   |  80 | 1.0.0.201610091743     | org.eclipse.ecf.mgmt.framework.host
125 | Active   |  80 | 1.0.0.201610091743     | org.eclipse.ecf.mgmt.kura.host
126 | Active   |  80 | 2.0.0.201610091743     | org.eclipse.ecf.mgmt.rsa
127 | Active   |  80 | 1.0.0.201610091743     | org.eclipse.ecf.mgmt.rsa.host
128 | Active   |  80 | 4.4.2.v20160823-2221   | org.eclipse.ecf.osgi.services.remoteserviceadmin
129 | Active   |  80 | 1.0.0.v20160823-2221   | org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy
130 | Active   |  80 | 4.7.500.v20160823-2221 | org.eclipse.ecf.provider
131 | Active   |  80 | 4.2.100.v20160823-2221 | org.eclipse.ecf.provider.remoteservice
132 | Active   |  80 | 8.11.0.v20160823-2221  | org.eclipse.ecf.remoteservice
133 | Active   |  80 | 2.0.100.v20150702-1411 | org.eclipse.ecf.remoteservice.asyncproxy
134 | Active   |  80 | 2.5.100.v20160823-2221 | org.eclipse.ecf.sharedobject

---

On Wed, Oct 12, 2016 at 4:39 PM, Jens Reimann <jreimann@xxxxxxxxxx> wrote:
I just tried it. Installed both features. But I do get an error dialog: "NullPointerException". No details though.

On Tue, Oct 11, 2016 at 8:01 AM, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:
Hi Jens,

If you want to try out the Eclipse UI for the remote IBundleManager:

1) Install the ECF SDK for Eclipse feature from ECF 3.13.2 [1]
2) Add the following install site:  Name:  ECF Kuratest UI  URL:  http://download.eclipse.org/rt/ecf/kuratest/ui
3) Install both features in this repo:  ECF Remote Management API and ECF Remote Management Eclipse Consumer

Once Eclipse is restarted, Window->Show View->Other...->Remote Services->Remote OSGi Bundles

Once the view is open (and assuming the Karaf instance is also running on localhost), click on the green + in the upper right of the Remote OSGi Bundles view, and leave defaults:  localhost:3939

And the Karaf bundles should appear...e.g below.



On 10/10/2016 1:54 AM, Jens Reimann wrote:
That worked like a charm:

karaf@root()> feature:repo-add http://download.eclipse.org/rt/ecf/kuratest/karaf4-features.xml
Adding feature url http://download.eclipse.org/rt/ecf/kuratest/karaf4-features.xml
karaf@root()> feature:install ecf-kura-karaf-bundlemgr

While the installation of the bundlemgr feature ran a lot of bundles did get restarted though. I am not sure why:

---

fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.core_1.0.9.201609080833 [94]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.core.status_1.0.2.201610060910 [99]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.core.crypto_1.0.5.201610060910 [97]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.core.configuration_1.0.9.201610060910 [96]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.emulator.net_1.0.2.201610060910 [104]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.emulator.gpio_1.0.2.201610060910 [103]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.eclipse.kura.emulator.clock_1.0.1.201610060910 [102]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.ops4j.pax.web.pax-web-spi_4.2.6 [113]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.ops4j.pax.web.pax-web-api_4.2.6 [110]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.apache.karaf.webconsole.instance_4.0.5 [62]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.apache.karaf.webconsole.gogo_4.0.5 [60]]
fireBundleChangedEvent event=org.osgi.framework.BundleEvent[source=org.apache.karaf.webconsole.features_4.0.5 [59]]

---

On Mon, Oct 10, 2016 at 5:07 AM, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:
Hi Jens,

I've created a Karaf feature for the ECF Bundle Manager here:

http://download.eclipse.org/rt/ecf/kuratest/karaf4-features.xml

You can install this directly on a Karaf4/Java8 instance.  Note that it requires the Karaf scr feature to be installed.

When installed, it will export an instance of the IBundleManager remote service [1] and print to the karaf console the OSGI Endpoint Description Extender Format (EDEF) xml metadata for the remote service.  This is configurable, and it has defaults/System.out for test purposes.

This feature only creates the IBundleManager, but also available are the managers described here [2], any of which may be easily added.  Other remote services can/could easily be created (e.g. remote configuration, remote access to kura services, etc).

All of these remote services can be exported via an MQTT Provider [3], so a separate server is not necessary.

We also have an Eclipse UI/views for using the IBundleManager.   Please let me know if you would like to try that and I will create and point you at the p2 repos.

Scott

[1] https://github.com/ECF/OSGIRemoteManagement/blob/master/bundles/org.eclipse.ecf.mgmt.framework/src/org/eclipse/ecf/mgmt/framework/IBundleManager.java
[2] https://www.eclipse.org/ecf/NewAndNoteworthy.html
[3] https://github.com/ECF/Mqtt-Provider


On 10/5/2016 11:51 PM, Jens Reimann wrote:
Sounds great. I think there was one Maven plugin to create a KAR from P2 features. .. Here it is [1].

That should work similar to the OSGi DP maven plugin. But it does not create a feature.

So maybe it is time for another Maven plugin ;-)

On Wed, Oct 5, 2016 at 6:14 PM, <slewis@xxxxxxxxxxxxx> wrote:
Hi Jens,

Yes, it's easy enough to create a Karaf feature for these mgmt bundles.
I'm a little preoccupied until this weekend, but will do then and make it
available to you.

BTW, do you know of any good tooling to create karaf features (e.g. from
p2 feature groups)?

In the mean time, you can install the ECF SDK (does not yet include the
mgmt bundles) into Karaf as per here:

https://wiki.eclipse.org/EIG:Install_into_Apache_Karaf

Note that this includes far more than is needed strictly for the mgmt, but
it was put together for general Karaf usage.

Scott

> Hi Scott,
>
> Is there any way to bundle this as a Karaf feature? I would have a working
> Karaf branch now which we could use for testing. This includes support for
> Java 8. I do know the packaging is a bit different.
>
> Cheers
>
> Jens
>
> On Sun, Sep 25, 2016 at 7:03 PM, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:
>
>> On 9/4/2016 11:47 PM, Jens Reimann wrote:
>>
>>> That looks cool!
>>>
>>> For [4] I would like to see a table tree instead. Putting states in a
>>> specific column ;-)
>>>
>>> Can you give a list of which bundles are necessary on the server side
>>> in
>>> order to support this?!
>>>
>>
>> I've created such a list as a feature [1] and created a p2 repository
>> based upon this feature [2].
>>
>> Note:   The remote management impl depends upon Java8, which currently
>> requires the Kura+equinox v 3.11 branch.
>>
>> The bundle here [3] registers and exports (using RSA) the IBundleManager
>> remote service.
>>
>> Scott
>>
>> [1] https://github.com/ECF/OSGIRemoteManagement/blob/master/
>> releng/org.eclipse.ecf.mgmt.kura.host.feature/feature.xml
>> [2] https://github.com/ECF/OSGIRemoteManagement/tree/master/
>> releng/org.eclipse.ecf.mgmt.kura.host.feature/builds/20160925
>> [3] https://github.com/ECF/OSGIRemoteManagement/tree/master/
>> bundles/org.eclipse.ecf.mgmt.kura.host
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Jens Reimann
> Senior Software Engineer / EMEA ENG Middleware
> Werner-von-Siemens-Ring 14
> 85630 Grasbrunn
> Germany
> phone: +49 89 2050 71286
> _____________________________________________________________________________
>
> Red Hat GmbH, www.de.redhat.com,
> Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB
> 153243,
> Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
> Michael O'Neill
> _______________________________________________
> 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



--
Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill


_______________________________________________
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
--
Jens Reimann Senior Software Engineer / EMEA ENG Middleware Werner-von-Siemens-Ring 14 85630 Grasbrunn Germany phone: +49 89 2050 71286 _____________________________________________________________________________ Red Hat GmbH, www.de.redhat.com, Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill
_______________________________________________
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



--
Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill



--
Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill

Back to the top