[SCR] Configuration does not get applied to component

2015-10-30 Thread David Leangen

Hi!

I am having a blocking issue with SCR, I believe related to this thread on the 
bndtools list:

  https://groups.google.com/forum/#!topic/bndtools-users/iClisFYreDI 


This time, even if I reorder to put SCR on the top of my bundle list, I still 
get the problem (i.e. the Configuration does not get applied to my component).

I was not able to find an issue filed in JIRA.

Does anybody know about this, or should I file a bug?


Cheers,
=David



Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread info
After a flying start with OSGi'ing my application I'm running into  
some amazements, or frustrations as I seem to spend more time managing  
OSGi than actually creating stuff...


Anyway, my bundle resolves fine, but when it starts I get a  
NoClassDefFoundError on a class that is inside the bundle. I've opend  
the corresponding jar file, and sure, it is there.


What can possibly cause this?

Maurice.




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Richard S. Hall

On 10/30/15 13:46 , i...@cuhka.com wrote:
After a flying start with OSGi'ing my application I'm running into 
some amazements, or frustrations as I seem to spend more time managing 
OSGi than actually creating stuff...


Anyway, my bundle resolves fine, but when it starts I get a 
NoClassDefFoundError on a class that is inside the bundle. I've opend 
the corresponding jar file, and sure, it is there.


What can possibly cause this?


Perhaps you didn't specify your Bundle-ClassPath correctly...

-> richard



Maurice.




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread info
Maybe,but how can that happen? I'm using Gradle with the OSGi plugin,  
so AFAIK it is bnd that creates the Bundle-ClassPath entry. Also, my  
bundle is still quite small, so it only contains a single package. It  
manages to find the activator fine.


Maurice.

Citeren "Richard S. Hall" :


Perhaps you didn't specify your Bundle-ClassPath correctly...

-> richard




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Raymond Auge
May I ask which "OSGi gradle plugin" you are using?

- Ray

On Fri, Oct 30, 2015 at 2:05 PM,  wrote:

> Maybe,but how can that happen? I'm using Gradle with the OSGi plugin, so
> AFAIK it is bnd that creates the Bundle-ClassPath entry. Also, my bundle is
> still quite small, so it only contains a single package. It manages to find
> the activator fine.
>
> Maurice.
>
> Citeren "Richard S. Hall" :
>
> Perhaps you didn't specify your Bundle-ClassPath correctly...
>>
>> -> richard
>>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>


-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)


Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Neil Bartlett
No, bnd does not write Bundle-ClassPath for you. 

Without some actual information (such as manifest, bundle content, stack 
trace?) it's impossible to do more than guess at reasons for the problem. 

Neil


> On 30 Oct 2015, at 18:05, i...@cuhka.com wrote:
> 
> Maybe,but how can that happen? I'm using Gradle with the OSGi plugin, so 
> AFAIK it is bnd that creates the Bundle-ClassPath entry. Also, my bundle is 
> still quite small, so it only contains a single package. It manages to find 
> the activator fine.
> 
> Maurice.
> 
> Citeren "Richard S. Hall" :
> 
>> Perhaps you didn't specify your Bundle-ClassPath correctly...
>> 
>> -> richard
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



RE: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Paulo Renato de Athaydes
You should not mess with the Bundle-Classpath unless you know exactly what 
you're doing.
Have a look at your bundle's Manifest, make sure the Bundle-ClassPath entry is 
not there, or if it is, it's just a dot.
Otherwise you will get the kind of problem you're having.
The osgi plugin (I assume you're using THE osgi plugin, I mean, the one called 
'osgi') definitely won't magically add this to your Bundle.
Renato

> From: njbartl...@gmail.com
> Subject: Re: Bundle can't find its own classes: NoClassDefFoundError
> Date: Fri, 30 Oct 2015 18:16:23 +
> To: users@felix.apache.org
> 
> No, bnd does not write Bundle-ClassPath for you. 
> 
> Without some actual information (such as manifest, bundle content, stack 
> trace?) it's impossible to do more than guess at reasons for the problem. 
> 
> Neil
> 
> 
> > On 30 Oct 2015, at 18:05, i...@cuhka.com wrote:
> > 
> > Maybe,but how can that happen? I'm using Gradle with the OSGi plugin, so 
> > AFAIK it is bnd that creates the Bundle-ClassPath entry. Also, my bundle is 
> > still quite small, so it only contains a single package. It manages to find 
> > the activator fine.
> > 
> > Maurice.
> > 
> > Citeren "Richard S. Hall" :
> > 
> >> Perhaps you didn't specify your Bundle-ClassPath correctly...
> >> 
> >> -> richard
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> > For additional commands, e-mail: users-h...@felix.apache.org
> > 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
> 
  

Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread info
I understand that it is difficult to tell without a stacktrace or  
other information. A classdefnotfound is a very strange exception to  
get. It looks as if it activated the bundle activator from the new  
bundle, then looking in an older version for the rest of the classes.  
Unlikely I guess.


Anyway, I removed the felix-cache folder and I'm reinstalling all  
bundles again. It seems to be ok at this moment.


Maurice.

Citeren Neil Bartlett :


No, bnd does not write Bundle-ClassPath for you.

Without some actual information (such as manifest, bundle content,  
stack trace?) it's impossible to do more than guess at reasons for  
the problem.


Neil




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread info
Yes, indeed I'm using THE osgi plugin, and I didn't do any  
Bundle-Classpath editing, nor did bnd. Anyway, after 'ctrl-alt-del' of  
my Felix it all seems to be ok. While I still don't grasp while it  
occurs, what can make it hapen, I can continue.


Maurice.
Citeren Paulo Renato de Athaydes :

You should not mess with the Bundle-Classpath unless you know  
exactly what you're doing.
Have a look at your bundle's Manifest, make sure the  
Bundle-ClassPath entry is not there, or if it is, it's just a dot.

Otherwise you will get the kind of problem you're having.
The osgi plugin (I assume you're using THE osgi plugin, I mean, the  
one called 'osgi') definitely won't magically add this to your Bundle.

Renato




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Richard S. Hall

On 10/30/15 15:19 , i...@cuhka.com wrote:
Yes, indeed I'm using THE osgi plugin, and I didn't do any 
Bundle-Classpath editing, nor did bnd. Anyway, after 'ctrl-alt-del' of 
my Felix it all seems to be ok. While I still don't grasp while it 
occurs, what can make it hapen, I can continue.


If I had to guess then, I'd say you somehow updated your bundle and got 
it in a strange state and didn't do a refresh of the framework after 
updating.


-> richard



Maurice.
Citeren Paulo Renato de Athaydes :

You should not mess with the Bundle-Classpath unless you know exactly 
what you're doing.
Have a look at your bundle's Manifest, make sure the Bundle-ClassPath 
entry is not there, or if it is, it's just a dot.

Otherwise you will get the kind of problem you're having.
The osgi plugin (I assume you're using THE osgi plugin, I mean, the 
one called 'osgi') definitely won't magically add this to your Bundle.

Renato




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Raymond Auge
Further info on "THE OSGi gradle plugin"

This plugin is maintained by the gradle team and it was only recently
(gradle 2.8) upgraded from bnd 2.1.0 to 2.4.0 [1].

So you are already several generations behind what is being discussed in
any of the osgi development communities, and may be suffering from any
number of bnd issues that have long since been resolved.

It may serve you well to chose an alternative "osgi gradle plugin" (perhaps
the official bnd gradle plugin [2]).

Just sayin...
- Ray

[1] https://docs.gradle.org/current/release-notes#updated-to-bndlib-2.4.0
[2]
https://github.com/bndtools/bnd/wiki/Gradle-Plugin-for-non-Workspace-builds

On Fri, Oct 30, 2015 at 3:21 PM, Richard S. Hall 
wrote:

> On 10/30/15 15:19 , i...@cuhka.com wrote:
>
>> Yes, indeed I'm using THE osgi plugin, and I didn't do any
>> Bundle-Classpath editing, nor did bnd. Anyway, after 'ctrl-alt-del' of my
>> Felix it all seems to be ok. While I still don't grasp while it occurs,
>> what can make it hapen, I can continue.
>>
>
> If I had to guess then, I'd say you somehow updated your bundle and got it
> in a strange state and didn't do a refresh of the framework after updating.
>
> -> richard
>
>
>
>> Maurice.
>> Citeren Paulo Renato de Athaydes :
>>
>> You should not mess with the Bundle-Classpath unless you know exactly
>>> what you're doing.
>>> Have a look at your bundle's Manifest, make sure the Bundle-ClassPath
>>> entry is not there, or if it is, it's just a dot.
>>> Otherwise you will get the kind of problem you're having.
>>> The osgi plugin (I assume you're using THE osgi plugin, I mean, the one
>>> called 'osgi') definitely won't magically add this to your Bundle.
>>> Renato
>>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>> For additional commands, e-mail: users-h...@felix.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>


-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)


Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Milen Dyankov
This seems to happen with felix (version 4.6 in my case) from time to time.
Basically I have some symlinks in `felix/bundle` folder pointing to the jar
files generated by my IDE/build tool. Someties (haven't tried to figure out
why) it will not notice the JAR has changed and the only way to force it is
to clean the `felix/felix-cache`. As I'm only using plain felix for demo
purposes it is not a big deal for me (I always clean the cache) but I can
imagine how frustrating it would be if I was to build something serious
this way.

Best,
Milen



On Fri, Oct 30, 2015 at 8:21 PM, Richard S. Hall 
wrote:

> On 10/30/15 15:19 , i...@cuhka.com wrote:
>
>> Yes, indeed I'm using THE osgi plugin, and I didn't do any
>> Bundle-Classpath editing, nor did bnd. Anyway, after 'ctrl-alt-del' of my
>> Felix it all seems to be ok. While I still don't grasp while it occurs,
>> what can make it hapen, I can continue.
>>
>
> If I had to guess then, I'd say you somehow updated your bundle and got it
> in a strange state and didn't do a refresh of the framework after updating.
>
> -> richard
>
>
>
>> Maurice.
>> Citeren Paulo Renato de Athaydes :
>>
>> You should not mess with the Bundle-Classpath unless you know exactly
>>> what you're doing.
>>> Have a look at your bundle's Manifest, make sure the Bundle-ClassPath
>>> entry is not there, or if it is, it's just a dot.
>>> Otherwise you will get the kind of problem you're having.
>>> The osgi plugin (I assume you're using THE osgi plugin, I mean, the one
>>> called 'osgi') definitely won't magically add this to your Bundle.
>>> Renato
>>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>> For additional commands, e-mail: users-h...@felix.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>


-- 
http://about.me/milen


Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Richard S. Hall

On 10/30/15 15:42 , Milen Dyankov wrote:

This seems to happen with felix (version 4.6 in my case) from time to time.
Basically I have some symlinks in `felix/bundle` folder pointing to the jar
files generated by my IDE/build tool. Someties (haven't tried to figure out
why) it will not notice the JAR has changed and the only way to force it is
to clean the `felix/felix-cache`. As I'm only using plain felix for demo
purposes it is not a big deal for me (I always clean the cache) but I can
imagine how frustrating it would be if I was to build something serious
this way.


I'm not exactly sure what you mean, the framework will never notice that 
the bundles have changed and do anything. It only does what it is told.


If you are saying that you are doing an explicit update on a bundle and 
the framework doesn't show the updated content of the bundle, even after 
a framework refresh, then this would be a significant bug. If that is 
the case, then it would be great to get more information. It would 
definitely be surprising, but certainly not out of the realm of possibility.


-> richard


Best,
Milen



On Fri, Oct 30, 2015 at 8:21 PM, Richard S. Hall 
wrote:


On 10/30/15 15:19 , i...@cuhka.com wrote:


Yes, indeed I'm using THE osgi plugin, and I didn't do any
Bundle-Classpath editing, nor did bnd. Anyway, after 'ctrl-alt-del' of my
Felix it all seems to be ok. While I still don't grasp while it occurs,
what can make it hapen, I can continue.


If I had to guess then, I'd say you somehow updated your bundle and got it
in a strange state and didn't do a refresh of the framework after updating.

-> richard




Maurice.
Citeren Paulo Renato de Athaydes :

You should not mess with the Bundle-Classpath unless you know exactly

what you're doing.
Have a look at your bundle's Manifest, make sure the Bundle-ClassPath
entry is not there, or if it is, it's just a dot.
Otherwise you will get the kind of problem you're having.
The osgi plugin (I assume you're using THE osgi plugin, I mean, the one
called 'osgi') definitely won't magically add this to your Bundle.
Renato




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread info

I'll take a look, thx!
Citeren Raymond Auge :

It may serve you well to chose an alternative "osgi gradle plugin" (perhaps
the official bnd gradle plugin [2]).

Just sayin...
- Ray




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org