[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

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.

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

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

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

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

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

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

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

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"

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

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

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

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,