You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Benson Margulies <be...@basistech.com> on 2015/08/22 17:11:05 UTC

What is happening when feature:install does nothing?

karaf@root>feature:list | grep rosa
rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
Uninstalled | rosapi-worker            | Rosette API Worker endpoint
Karaf feature

karaf@root>feature:install rosapi-worker

karaf@root>feature:list | grep rosa
rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
Uninstalled | rosapi-worker            | Rosette API Worker endpoint
Karaf feature

And log:display gives me:

2015-08-22 11:09:23,999 | INFO  | nsole user karaf |
FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
- 4.0.1 | Adding features:
rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
2015-08-22 11:09:24,628 | INFO  | pool-27-thread-1 |
FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
- 4.0.1 | No deployment change.
2015-08-22 11:09:24,638 | INFO  | pool-27-thread-1 |
FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
- 4.0.1 | Done.

and bundle:list does not show the bundles, no surprise.

Re: What is happening when feature:install does nothing?

Posted by Benson Margulies <be...@basistech.com>.
The story here turns out to be a simple wiring error. I accidently
messed up a bundle so that it imported a package that nothing
exported. But I got no wiring errors,  just no results of installing
the feature.


On Sat, Aug 22, 2015 at 1:03 PM, Benson Margulies <be...@basistech.com> wrote:
> On Sat, Aug 22, 2015 at 12:50 PM, Benson Margulies <be...@basistech.com> wrote:
>> On Sat, Aug 22, 2015 at 12:39 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>>> First: your bundle should have the 1.8 requirement: the feature resolver
>>> will fail as the requirement is not satisfied.
>>>
>>> Second: don't you have something in the log ?
>>
>> I'm increasingly uncertain that the 1.8 business is the real
>> explanation; it seems to work (or not) for some other reason. And
>> there is positively nothing in the log.
>
> 2015-08-22 16:59:59,895 | INFO  | nsole user karaf |
> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
> - 4.0.1 | Adding features:
> rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
> 2015-08-22 17:00:01,284 | INFO  | pool-33-thread-1 |
> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
> - 4.0.1 | No deployment change.
> 2015-08-22 17:00:01,359 | INFO  | pool-33-thread-1 |
> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
> - 4.0.1 | Done.
>
> And it's still 'uninstalled' after that.
>
> Now I'm experiencing this inside my docker container that has java 1.8
> absolutely ... one possibility is that this is a new problem with
> 4.0.1, I'm about to back down to 4.0.0 and see if anything gets
> better.
>
>
>
>>
>>
>>
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 08/22/2015 05:22 PM, Benson Margulies wrote:
>>>>
>>>> I answered my own question, and now I think I'll try to figure out why
>>>> no diagnosis!
>>>>
>>>> My feature includes a bundle that requires Java 1.8, and I wasn't
>>>> using Java 1.8.
>>>>
>>>>
>>>> On Sat, Aug 22, 2015 at 11:11 AM, Benson Margulies <be...@basistech.com>
>>>> wrote:
>>>>>
>>>>> karaf@root>feature:list | grep rosa
>>>>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>>>>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>>>>> Karaf feature
>>>>>
>>>>> karaf@root>feature:install rosapi-worker
>>>>>
>>>>> karaf@root>feature:list | grep rosa
>>>>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>>>>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>>>>> Karaf feature
>>>>>
>>>>> And log:display gives me:
>>>>>
>>>>> 2015-08-22 11:09:23,999 | INFO  | nsole user karaf |
>>>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>>>> - 4.0.1 | Adding features:
>>>>> rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
>>>>> 2015-08-22 11:09:24,628 | INFO  | pool-27-thread-1 |
>>>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>>>> - 4.0.1 | No deployment change.
>>>>> 2015-08-22 11:09:24,638 | INFO  | pool-27-thread-1 |
>>>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>>>> - 4.0.1 | Done.
>>>>>
>>>>> and bundle:list does not show the bundles, no surprise.
>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com

Re: What is happening when feature:install does nothing?

Posted by Benson Margulies <be...@basistech.com>.
On Sat, Aug 22, 2015 at 12:50 PM, Benson Margulies <be...@basistech.com> wrote:
> On Sat, Aug 22, 2015 at 12:39 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>> First: your bundle should have the 1.8 requirement: the feature resolver
>> will fail as the requirement is not satisfied.
>>
>> Second: don't you have something in the log ?
>
> I'm increasingly uncertain that the 1.8 business is the real
> explanation; it seems to work (or not) for some other reason. And
> there is positively nothing in the log.

2015-08-22 16:59:59,895 | INFO  | nsole user karaf |
FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
- 4.0.1 | Adding features:
rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
2015-08-22 17:00:01,284 | INFO  | pool-33-thread-1 |
FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
- 4.0.1 | No deployment change.
2015-08-22 17:00:01,359 | INFO  | pool-33-thread-1 |
FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
- 4.0.1 | Done.

And it's still 'uninstalled' after that.

Now I'm experiencing this inside my docker container that has java 1.8
absolutely ... one possibility is that this is a new problem with
4.0.1, I'm about to back down to 4.0.0 and see if anything gets
better.



>
>
>
>>
>> Regards
>> JB
>>
>>
>> On 08/22/2015 05:22 PM, Benson Margulies wrote:
>>>
>>> I answered my own question, and now I think I'll try to figure out why
>>> no diagnosis!
>>>
>>> My feature includes a bundle that requires Java 1.8, and I wasn't
>>> using Java 1.8.
>>>
>>>
>>> On Sat, Aug 22, 2015 at 11:11 AM, Benson Margulies <be...@basistech.com>
>>> wrote:
>>>>
>>>> karaf@root>feature:list | grep rosa
>>>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>>>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>>>> Karaf feature
>>>>
>>>> karaf@root>feature:install rosapi-worker
>>>>
>>>> karaf@root>feature:list | grep rosa
>>>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>>>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>>>> Karaf feature
>>>>
>>>> And log:display gives me:
>>>>
>>>> 2015-08-22 11:09:23,999 | INFO  | nsole user karaf |
>>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>>> - 4.0.1 | Adding features:
>>>> rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
>>>> 2015-08-22 11:09:24,628 | INFO  | pool-27-thread-1 |
>>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>>> - 4.0.1 | No deployment change.
>>>> 2015-08-22 11:09:24,638 | INFO  | pool-27-thread-1 |
>>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>>> - 4.0.1 | Done.
>>>>
>>>> and bundle:list does not show the bundles, no surprise.
>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com

Re: What is happening when feature:install does nothing?

Posted by Benson Margulies <be...@basistech.com>.
On Sat, Aug 22, 2015 at 12:39 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> First: your bundle should have the 1.8 requirement: the feature resolver
> will fail as the requirement is not satisfied.
>
> Second: don't you have something in the log ?

I'm increasingly uncertain that the 1.8 business is the real
explanation; it seems to work (or not) for some other reason. And
there is positively nothing in the log.



>
> Regards
> JB
>
>
> On 08/22/2015 05:22 PM, Benson Margulies wrote:
>>
>> I answered my own question, and now I think I'll try to figure out why
>> no diagnosis!
>>
>> My feature includes a bundle that requires Java 1.8, and I wasn't
>> using Java 1.8.
>>
>>
>> On Sat, Aug 22, 2015 at 11:11 AM, Benson Margulies <be...@basistech.com>
>> wrote:
>>>
>>> karaf@root>feature:list | grep rosa
>>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>>> Karaf feature
>>>
>>> karaf@root>feature:install rosapi-worker
>>>
>>> karaf@root>feature:list | grep rosa
>>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>>> Karaf feature
>>>
>>> And log:display gives me:
>>>
>>> 2015-08-22 11:09:23,999 | INFO  | nsole user karaf |
>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>> - 4.0.1 | Adding features:
>>> rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
>>> 2015-08-22 11:09:24,628 | INFO  | pool-27-thread-1 |
>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>> - 4.0.1 | No deployment change.
>>> 2015-08-22 11:09:24,638 | INFO  | pool-27-thread-1 |
>>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>>> - 4.0.1 | Done.
>>>
>>> and bundle:list does not show the bundles, no surprise.
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Re: What is happening when feature:install does nothing?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
First: your bundle should have the 1.8 requirement: the feature resolver 
will fail as the requirement is not satisfied.

Second: don't you have something in the log ?

Regards
JB

On 08/22/2015 05:22 PM, Benson Margulies wrote:
> I answered my own question, and now I think I'll try to figure out why
> no diagnosis!
>
> My feature includes a bundle that requires Java 1.8, and I wasn't
> using Java 1.8.
>
>
> On Sat, Aug 22, 2015 at 11:11 AM, Benson Margulies <be...@basistech.com> wrote:
>> karaf@root>feature:list | grep rosa
>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>> Karaf feature
>>
>> karaf@root>feature:install rosapi-worker
>>
>> karaf@root>feature:list | grep rosa
>> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
>> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
>> Karaf feature
>>
>> And log:display gives me:
>>
>> 2015-08-22 11:09:23,999 | INFO  | nsole user karaf |
>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>> - 4.0.1 | Adding features:
>> rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
>> 2015-08-22 11:09:24,628 | INFO  | pool-27-thread-1 |
>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>> - 4.0.1 | No deployment change.
>> 2015-08-22 11:09:24,638 | INFO  | pool-27-thread-1 |
>> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
>> - 4.0.1 | Done.
>>
>> and bundle:list does not show the bundles, no surprise.

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

Re: What is happening when feature:install does nothing?

Posted by Benson Margulies <be...@basistech.com>.
I answered my own question, and now I think I'll try to figure out why
no diagnosis!

My feature includes a bundle that requires Java 1.8, and I wasn't
using Java 1.8.


On Sat, Aug 22, 2015 at 11:11 AM, Benson Margulies <be...@basistech.com> wrote:
> karaf@root>feature:list | grep rosa
> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
> Karaf feature
>
> karaf@root>feature:install rosapi-worker
>
> karaf@root>feature:list | grep rosa
> rosapi-worker                   | 0.0.1.SNAPSHOT   | x        |
> Uninstalled | rosapi-worker            | Rosette API Worker endpoint
> Karaf feature
>
> And log:display gives me:
>
> 2015-08-22 11:09:23,999 | INFO  | nsole user karaf |
> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
> - 4.0.1 | Adding features:
> rosapi-worker/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
> 2015-08-22 11:09:24,628 | INFO  | pool-27-thread-1 |
> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
> - 4.0.1 | No deployment change.
> 2015-08-22 11:09:24,638 | INFO  | pool-27-thread-1 |
> FeaturesServiceImpl              | 6 - org.apache.karaf.features.core
> - 4.0.1 | Done.
>
> and bundle:list does not show the bundles, no surprise.