Re: Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread Morgan Hautman
Hi,

Omg I didn't know the bundle:watch trick, I was
stopping/uninstalling/re-installing/re-starting all the time. This will
save me a lot of dev time!

Regards,
Morgan

2016-07-14 7:41 GMT+02:00 Jean-Baptiste Onofré :

> Hi Oli,
>
> I'm not Eclipse user (I'm using IntelliJ).
>
> What I'm doing is to develop "classic" OSGi bundle. I have a Karaf started
> (by a IntelliJ launcher), where I have the bundle:watch enabled. Than, it's
> automatically deployed/updated in Karaf.
>
> Regards
> JB
>
>
> On 07/14/2016 07:31 AM, Oliver Libutzki wrote:
>
>> Thanks for your answers.
>>
>> Maybe it's better to ask another way.
>>
>> What's the recommended way to develop OSGi-Bundles for Karaf with
>> Eclipse? PDE? Bndtools? Is it recommended to use a "palin" OSGi
>> container (Felix/Equinox) while developing in order to have short
>> turnaround cycles?
>>
>> Kind regards
>> Oliver
>>
>> Christian Schneider schrieb:
>>
>>> Currently there is no good Eclipse integration for karaf.
>>>
>>> Bndtools might be an option soon. They are currently working on maven
>>> and karaf supoort. Not sure how long it will take but it is something
>>> to keep an eye on.
>>>
>>> Christian
>>>
>>> On 13.07.2016 14:58, Oliver Libutzki wrote:
>>>
 Hi everyone,

 is there a way to start Karaf from Eclipse? I just don't want to
 install all the bundles I develop to the local Maven Repository in
 order to use them.

 I stumbled upon EIK (https://github.com/apache/karaf-eik), but the
 last commit is from August 2014, so EIK seems to be dead.

 Thanks for your help.

 Kind regards
 Oliver

>>>
>>>
>>> --
>>> Christian Schneider
>>> http://www.liquid-reality.de
>>>
>>> Open Source Architect
>>> http://www.talend.com
>>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


Re: Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread Jean-Baptiste Onofré

Hi Oli,

I'm not Eclipse user (I'm using IntelliJ).

What I'm doing is to develop "classic" OSGi bundle. I have a Karaf 
started (by a IntelliJ launcher), where I have the bundle:watch enabled. 
Than, it's automatically deployed/updated in Karaf.


Regards
JB

On 07/14/2016 07:31 AM, Oliver Libutzki wrote:

Thanks for your answers.

Maybe it's better to ask another way.

What's the recommended way to develop OSGi-Bundles for Karaf with
Eclipse? PDE? Bndtools? Is it recommended to use a "palin" OSGi
container (Felix/Equinox) while developing in order to have short
turnaround cycles?

Kind regards
Oliver

Christian Schneider schrieb:

Currently there is no good Eclipse integration for karaf.

Bndtools might be an option soon. They are currently working on maven
and karaf supoort. Not sure how long it will take but it is something
to keep an eye on.

Christian

On 13.07.2016 14:58, Oliver Libutzki wrote:

Hi everyone,

is there a way to start Karaf from Eclipse? I just don't want to
install all the bundles I develop to the local Maven Repository in
order to use them.

I stumbled upon EIK (https://github.com/apache/karaf-eik), but the
last commit is from August 2014, so EIK seems to be dead.

Thanks for your help.

Kind regards
Oliver



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: More entropy on bundle startup.

2016-07-13 Thread Jean-Baptiste Onofré

Hi Benson,

I guess you are using the deploy folder, so the fileinstall deployer, 
right ?


Regards
JB

On 07/13/2016 10:56 PM, Benson Margulies wrote:

Folks,

We've had a couple of incidents of latent problems stemming from
invalid assumptions on bundle start order. Everything seems to be
fine, then some trivial change reveals that we've failed to ensure
that service 'a' is available before component 'b' needs it. by and
large, we use DS to get this right, but there are a few cases where it
does not serve.

I am wondering: is there some way to get _more_ randomness out of the
startup process, to shake out mistakes like this?

thanks,
benson



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread Oliver Libutzki
Thanks for your answers.

Maybe it's better to ask another way.

What's the recommended way to develop OSGi-Bundles for Karaf with
Eclipse? PDE? Bndtools? Is it recommended to use a "palin" OSGi
container (Felix/Equinox) while developing in order to have short
turnaround cycles?

Kind regards
Oliver

Christian Schneider schrieb:
> Currently there is no good Eclipse integration for karaf.
>
> Bndtools might be an option soon. They are currently working on maven
> and karaf supoort. Not sure how long it will take but it is something
> to keep an eye on.
>
> Christian
>
> On 13.07.2016 14:58, Oliver Libutzki wrote:
>> Hi everyone,
>>
>> is there a way to start Karaf from Eclipse? I just don't want to
>> install all the bundles I develop to the local Maven Repository in
>> order to use them.
>>
>> I stumbled upon EIK (https://github.com/apache/karaf-eik), but the
>> last commit is from August 2014, so EIK seems to be dead.
>>
>> Thanks for your help.
>>
>> Kind regards
>> Oliver
>
>
> -- 
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com



Re: More entropy on bundle startup.

2016-07-13 Thread Nick Baker
I love this idea! We’ve been fighting the same issues as well.

-Nick

On 7/13/16, 4:56 PM, "Benson Margulies"  wrote:

>Folks,
>
>We've had a couple of incidents of latent problems stemming from
>invalid assumptions on bundle start order. Everything seems to be
>fine, then some trivial change reveals that we've failed to ensure
>that service 'a' is available before component 'b' needs it. by and
>large, we use DS to get this right, but there are a few cases where it
>does not serve.
>
>I am wondering: is there some way to get _more_ randomness out of the
>startup process, to shake out mistakes like this?
>
>thanks,
>benson



More entropy on bundle startup.

2016-07-13 Thread Benson Margulies
Folks,

We've had a couple of incidents of latent problems stemming from
invalid assumptions on bundle start order. Everything seems to be
fine, then some trivial change reveals that we've failed to ensure
that service 'a' is available before component 'b' needs it. by and
large, we use DS to get this right, but there are a few cases where it
does not serve.

I am wondering: is there some way to get _more_ randomness out of the
startup process, to shake out mistakes like this?

thanks,
benson


Re: Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread Christian Schneider

Currently there is no good Eclipse integration for karaf.

Bndtools might be an option soon. They are currently working on maven 
and karaf supoort. Not sure how long it will take but it is something to 
keep an eye on.


Christian

On 13.07.2016 14:58, Oliver Libutzki wrote:

Hi everyone,

is there a way to start Karaf from Eclipse? I just don't want to 
install all the bundles I develop to the local Maven Repository in 
order to use them.


I stumbled upon EIK (https://github.com/apache/karaf-eik), but the 
last commit is from August 2014, so EIK seems to be dead.


Thanks for your help.

Kind regards
Oliver



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread David Daniel
I use pax exam and maven to run integration tests. There is also a tutorial
on entire for debugging a running karat instance with bnd tools. There is
not a great way to start a karat instance though as far as I know.
On Jul 13, 2016 8:59 AM, "Oliver Libutzki"  wrote:

> Hi everyone,
>
> is there a way to start Karaf from Eclipse? I just don't want to install
> all the bundles I develop to the local Maven Repository in order to use
> them.
>
> I stumbled upon EIK (https://github.com/apache/karaf-eik), but the last
> commit is from August 2014, so EIK seems to be dead.
>
> Thanks for your help.
>
> Kind regards
> Oliver
>


Re: Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread David Daniel
Entire should be enroute
On Jul 13, 2016 9:02 AM, "David Daniel"  wrote:

> I use pax exam and maven to run integration tests. There is also a
> tutorial on entire for debugging a running karat instance with bnd tools.
> There is not a great way to start a karat instance though as far as I know.
> On Jul 13, 2016 8:59 AM, "Oliver Libutzki" 
> wrote:
>
>> Hi everyone,
>>
>> is there a way to start Karaf from Eclipse? I just don't want to install
>> all the bundles I develop to the local Maven Repository in order to use
>> them.
>>
>> I stumbled upon EIK (https://github.com/apache/karaf-eik), but the last
>> commit is from August 2014, so EIK seems to be dead.
>>
>> Thanks for your help.
>>
>> Kind regards
>> Oliver
>>
>


Karaf Eclipse Integration; Is EIK dead?

2016-07-13 Thread Oliver Libutzki
Hi everyone,

is there a way to start Karaf from Eclipse? I just don't want to install
all the bundles I develop to the local Maven Repository in order to use
them.

I stumbled upon EIK (https://github.com/apache/karaf-eik), but the last
commit is from August 2014, so EIK seems to be dead.

Thanks for your help.

Kind regards
Oliver


Re: Karaf 4.0.5 - Jetty features different versions: pax-jetty and jetty

2016-07-13 Thread Jean-Baptiste Onofré

Hi,

an alias feature is a wrapper feature just containing another feature.

The reason why we did this is that the http, jetty features were in 
Karaf before (not in pax-web). So, we created the pax-web features with 
a different name: pax-web-jetty instead of jetty. However, legacy and 
other projects/applications use the "old" name. So, for backward 
compatibility, we created this "alias"/wrap feature.


Regards
JB

On 07/13/2016 04:56 AM, Allan C. wrote:

Hi JB,

Just seeking clarifications.

1. When you say jetty is an alias feature, what does alias feature means?

2. Is it safe to say pax-jetty depends on jetty and not the other way round?

Thanks in advance.

Regards,
Allan C.

On Tue, Jul 5, 2016 at 9:01 AM, Allan C. > wrote:

Noted. Thanks.

Regards,
Allan C.

On Tue, Jul 5, 2016 at 3:40 AM, Jean-Baptiste Onofré
> wrote:

Thanks Allan,

jetty is an alias feature on top of pax-jetty (for backward
compatibility).

Definitely, we upgraded in pax-web, but forgot to update the
jetty alias feature.

Let me create a Jira to fix that.

Thanks !
Regards
JB

On 07/04/2016 10:20 AM, Allan C. wrote:

I am playing around with 4.0.5 and I noticed that the
versions for the
jetty and pax-jetty are different. In Fuse 6.2.1 (I think it
is based on
Karaf 2.4.0), the versions are the same.

JBossFuse:karaf@root> features:list | grep jetty
[installed  ] [*8.1.17.v20150415* ] jetty
karaf-2.4.0.redhat-621084
  Provide Jetty engine support
[installed  ] [2.15.1.redhat-621084 ] camel-jetty
  camel-2.15.1.redhat-621084

[uninstalled] [2.15.1.redhat-621084 ] camel-jetty9
 camel-2.15.1.redhat-621084

[installed  ] [*8.1.17.v20150415* ] pax-jetty
org.ops4j.pax.web-3.2.5
  Provide Jetty engine support
[installed  ] [3.0.4.redhat-621084  ] cxf-http-jetty
 cxf-3.0.4.redhat-621084

Karaf 4.0.5:

karaf@root(feature)> list | grep jetty
jetty   | *9.2.10.v20150310* |
   | Started | standard-4.0.5  |
jetty   | 8.1.14.v20131031
|  |
Uninstalled | standard-4.0.5  |
cxf-http-jetty  | 3.1.5
|  |
Started | cxf-3.1.5   |
pax-jetty   | *9.2.15.v20160210* |
   | Started | org.ops4j.pax.web-4.2.6 | Provide
Jetty engine support
pax-jetty-spdy  | 4.2.6
|  |
Uninstalled | org.ops4j.pax.web-4.2.6 | Optional
additional feature
to run Jetty with SPDY
pax-http-jetty  | 4.2.6
|  |
Started | org.ops4j.pax.web-4.2.6 |
camel-jetty | 2.16.3
  |  |
Uninstalled | camel-2.16.3|
camel-jetty9| 2.16.3
  |  |
Started | camel-2.16.3|
karaf@root(feature)>

Would it be a concern?

Regards,
Allan C.


--
Jean-Baptiste Onofré
jbono...@apache.org 
http://blog.nanthrax.net
Talend - http://www.talend.com





--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf 4.0.5 - Jetty features different versions: pax-jetty and jetty

2016-07-13 Thread Allan C.
I understand a little bit more after your explanation and digging up and
going through the standard and pax-web features files.

Thanks Achim. Very much appreciated.

Regards,
Allan C.

On Wed, Jul 13, 2016 at 1:08 PM, Achim Nierbeck 
wrote:

> The jetty feature is actually a duplicate feature ... it's required since
> a couple other upstream projects still depend on the jetty feature.
> The don't depend on each other, if you want to use jetty just for your
> webapplications, use the war or http features, those will delegate to the
> corresponding pax web features. As Jetty is the default container for pax
> web you don't need to install it prior to installing other features. If you
> want to use another container instead make sure you did install undertow
> for example prior to installing the other pax-web features.
>
> regards, Achim
>
>
> 2016-07-13 4:56 GMT+02:00 Allan C. :
>
>> Hi JB,
>>
>> Just seeking clarifications.
>>
>> 1. When you say jetty is an alias feature, what does alias feature means?
>>
>> 2. Is it safe to say pax-jetty depends on jetty and not the other way
>> round?
>>
>> Thanks in advance.
>>
>> Regards,
>> Allan C.
>>
>> On Tue, Jul 5, 2016 at 9:01 AM, Allan C.  wrote:
>>
>>> Noted. Thanks.
>>>
>>> Regards,
>>> Allan C.
>>>
>>> On Tue, Jul 5, 2016 at 3:40 AM, Jean-Baptiste Onofré 
>>> wrote:
>>>
 Thanks Allan,

 jetty is an alias feature on top of pax-jetty (for backward
 compatibility).

 Definitely, we upgraded in pax-web, but forgot to update the jetty
 alias feature.

 Let me create a Jira to fix that.

 Thanks !
 Regards
 JB

 On 07/04/2016 10:20 AM, Allan C. wrote:

> I am playing around with 4.0.5 and I noticed that the versions for the
> jetty and pax-jetty are different. In Fuse 6.2.1 (I think it is based
> on
> Karaf 2.4.0), the versions are the same.
>
> JBossFuse:karaf@root> features:list | grep jetty
> [installed  ] [*8.1.17.v20150415* ] jetty
>karaf-2.4.0.redhat-621084
>  Provide Jetty engine support
> [installed  ] [2.15.1.redhat-621084 ] camel-jetty
>  camel-2.15.1.redhat-621084
>
> [uninstalled] [2.15.1.redhat-621084 ] camel-jetty9
> camel-2.15.1.redhat-621084
>
> [installed  ] [*8.1.17.v20150415* ] pax-jetty
>org.ops4j.pax.web-3.2.5
>  Provide Jetty engine support
> [installed  ] [3.0.4.redhat-621084  ] cxf-http-jetty
> cxf-3.0.4.redhat-621084
>
> Karaf 4.0.5:
>
> karaf@root(feature)> list | grep jetty
> jetty   | *9.2.10.v20150310* |
>   | Started | standard-4.0.5  |
> jetty   | 8.1.14.v20131031 |  |
> Uninstalled | standard-4.0.5  |
> cxf-http-jetty  | 3.1.5|  |
> Started | cxf-3.1.5   |
> pax-jetty   | *9.2.15.v20160210* |
>   | Started | org.ops4j.pax.web-4.2.6 | Provide Jetty engine
> support
> pax-jetty-spdy  | 4.2.6|  |
> Uninstalled | org.ops4j.pax.web-4.2.6 | Optional additional feature
> to run Jetty with SPDY
> pax-http-jetty  | 4.2.6|  |
> Started | org.ops4j.pax.web-4.2.6 |
> camel-jetty | 2.16.3   |  |
> Uninstalled | camel-2.16.3|
> camel-jetty9| 2.16.3   |  |
> Started | camel-2.16.3|
> karaf@root(feature)>
>
> Would it be a concern?
>
> Regards,
> Allan C.
>

 --
 Jean-Baptiste Onofré
 jbono...@apache.org
 http://blog.nanthrax.net
 Talend - http://www.talend.com

>>>
>>>
>>
>
>
> --
>
> Apache Member
> Apache Karaf  Committer & PMC
> OPS4J Pax Web  Committer &
> Project Lead
> blog 
> Co-Author of Apache Karaf Cookbook 
>
> Software Architect / Project Manager / Scrum Master
>
>