Re: Felix-Resolver: Fragment was not selected for attachment

2018-08-07 Thread Richard S. Hall
On 7/24/18 07:35 , patrick.pus...@telekom.de wrote: Hi all, during resolving of several bundles with the felixResolver I get a ResolutionException: org.apache.felix.resolver.reason.ReasonException: Fragment was not selected for attachment: com.xx.yy version=1.7.0.201806111251 But the

Re: About config properties: felix.auto.install

2017-08-31 Thread Richard S. Hall
The value's format is just a space-delimited list of URLs. To install exploded bundles, the Felix framework supports a URL in the form of:     reference:file:/path/to/exploded/bundle/directory -> richard On 8/30/17 22:11 , duxiutao wrote: Hello felix guys: I have read this from this link

Re: Felix: bundle double update with osgi refresh

2017-05-12 Thread Richard S. Hall
. -> richard regards, Karl Best regards, Alex Среда, 10 мая 2017, 16:55 +03:00 от "Richard S. Hall" <he...@ungoverned.org>: On 5/10/17 08:16 , Alex Sviridov wrote: Hi all I use Apache Felix 5.4.0 and I have two bundles: bundleA and bundleB. BundleB depends on bundleA

Re: Felix: bundle double update with osgi refresh

2017-05-10 Thread Richard S. Hall
On 5/10/17 08:16 , Alex Sviridov wrote: Hi all I use Apache Felix 5.4.0 and I have two bundles: bundleA and bundleB. BundleB depends on bundleA. I update bundleA and after that run the following code to do osgi refresh: Bundle systemBundle = bcx . getBundle ( 0 ); FrameworkWiring

Re: Felix not behaving as per tutorial

2017-05-04 Thread Richard S. Hall
On 5/3/17 15:23 , Dan Hartman wrote: Hi there, I followed the tutorial here: http://felix.apache.org/documentation/subprojects/apache-felix-ipojo/apache-felix-ipojo-gettingstarted/ipojo-hello-word-maven-based-tutorial.html I can't find any felix-1.0.3 directory (nor one appropriately named

Re: may have found a resolver bug

2016-05-26 Thread Richard S. Hall
On 5/26/16 08:48 , Raymond Auge wrote: I didn't because I wasn't sure it was even a real issue. but I can if you like. Always a good idea, since it is more likely to get seen. Thanks. -> richard On Thu, May 26, 2016 at 8:06 AM, Richard S. Hall <he...@ungoverned.org> wrote: Did

Re: may have found a resolver bug

2016-05-26 Thread Richard S. Hall
Did you open an issue in JIRA? On 5/25/16 23:21 , Raymond Auge wrote: Hello everyone, I'm not completely sure, but I think I have found a bug in the felix resolver. It's a little hard to reproduce, but I have done so in a test I've submitted in this PR [1] to bnd (because I was trying to use

Re: Issue with BundleListener/Resolved events

2016-01-12 Thread Richard S. Hall
On 1/12/16 11:59 , Thomas Draier wrote: On Tue, Jan 12, 2016 at 5:45 PM Richard S. Hall <he...@ungoverned.org> wrote: So, are you saying that when you get a resolved event for some arbitrary bundle, you are running into issues because some of its dependencies are not yet t

Re: Issue with BundleListener/Resolved events

2016-01-12 Thread Richard S. Hall
I think you may be reading more into the spec than what is there. Technically, a resolve is atomic so all bundles are effectively resolved at the same time, which means the events occur at the same time, but since we can only deliver one at a time, then you receive them in some arbitrary order

Re: Felix ResolveContext

2015-11-19 Thread Richard S. Hall
On 11/18/15 21:08 , David Leangen wrote: Hi! If I want to use the Felix Resolver, I need a ResolveContext. I noticed that Felix has one, but it is private. How could I get an instance of the Felix ResolveContext so that I may use the Resolve service? You don't. It is tied to the

Re: Uninstalled API bundle, yet implementation still resolves and starts

2015-11-05 Thread Richard S. Hall
what they are doing, which is why 99% of the time I agree with Peter on this subject that you should refresh. -> richard This assumes I have correctly understood the scenario as described by Maurice. Neil On 4 Nov 2015, at 13:31, Richard S. Hall <he...@ungoverned.org> wrote: On 1

Re: Uninstalled API bundle, yet implementation still resolves and starts

2015-11-05 Thread Richard S. Hall
kes in my original response. For clarification, "installing to stale packages" should have been "wiring to stale packages" and "this top" should have been "this topic". Neil On 5 Nov 2015, at 14:31, Richard S. Hall <he...@ungoverned.org> wr

Re: Uninstalled API bundle, yet implementation still resolves and starts

2015-11-04 Thread Richard S. Hall
On 11/4/15 06:52 , i...@cuhka.com wrote: I 'solved' it by restarting the device. I rather don't, as I like solution where I can upgrade functionality without shutting down. You don't need to shut down, you just need to refresh the framework. If you update A and S, the old version of A is

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 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 Richard S. Hall
, 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 <he...@ungoverned.org&

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
one with the opinion that is should not have been moved into OSGi Core. Also, it is another discussion (I am sure this was discussed internally before releasing OSGi Core 5). On Tue, Oct 27, 2015 at 6:08 PM, Richard S. Hall <he...@ungoverned.org> wrote: On 10/27/15 11:27 , Balázs Zsoldos wrote:

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
ave done that for me. It's all about layers and perspective. -> richard On Tue, Oct 27, 2015 at 6:04 PM, Richard S. Hall <he...@ungoverned.org> wrote: On 10/27/15 11:27 , Balázs Zsoldos wrote: @David: I know about the *org.osgi.framework.system.**packages.extra* property, but t

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
nder pattern since framework developers have done that for me. It's all about layers and perspective. -> richard On Tue, Oct 27, 2015 at 6:04 PM, Richard S. Hall <he...@ungoverned.org> wrote: On 10/27/15 11:27 , Balázs Zsoldos wrote: @David: I know about the *org.

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
On 10/27/15 11:27 , Balázs Zsoldos wrote: @David: I know about the *org.osgi.framework.system.**packages.extra* property, but that is about another use-case. *org.osgi.framework.system.**packages.extra *can be used to extend the list of system packages. *org.osgi.framework.system.**packages*

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
On 10/27/15 11:27 , Balázs Zsoldos wrote: @David: I know about the *org.osgi.framework.system.**packages.extra* property, but that is about another use-case. *org.osgi.framework.system.**packages.extra *can be used to extend the list of system packages. *org.osgi.framework.system.**packages*

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
the framework packages. You can certainly create an issue for this... -> richard On Tue, Oct 27, 2015 at 6:33 PM, Richard S. Hall <he...@ungoverned.org> wrote: On 10/27/15 13:27 , Balázs Zsoldos wrote: Also, we used to package some framework services separately (e.

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
don't have too much time to think about it. Create an issue and potentially a patch and then start nagging people. :-) -> richard Christian Am 27.10.2015 um 18:11 schrieb Richard S. Hall: On 10/27/15 11:36 , Christian Schneider wrote: A typical case I have is that I need to remove s

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
that >> implements >>> the extender pattern, as the bundle would not resolve. >> >> >> As an application developer, you don’t need to import anything from >> extender bundles. >> >> I would estimate that 90% of my bundles do not import anything

Re: System packages should not contain osgi.core packages (packages that are exported by the framework)

2015-10-27 Thread Richard S. Hall
I think it is reasonable to allow someone to hide exports from the system bundle, but that doesn't mean that this process couldn't be improved. For example, we could introduce a new variable ${framework-exports} as an alias to what the framework exports, so then in our default properties file

Re: When good version constraints go bad

2015-08-28 Thread Richard S. Hall
On 8/28/15 14:36 , Benson Margulies wrote: Consider three bundles, A, B, and C. A has imports from B and C. All three import Guava. A and B import with a constraint of [18, 19), C takes [15, 16). The container obediently wires A and B to one bundle, and C to the other. Now, no Guava objects

Re: When good version constraints go bad

2015-08-28 Thread Richard S. Hall
On 8/28/15 15:05 , Benson Margulies wrote: On Fri, Aug 28, 2015 at 2:59 PM, Richard S. Hall he...@ungoverned.org wrote: On 8/28/15 14:36 , Benson Margulies wrote: Consider three bundles, A, B, and C. A has imports from B and C. All three import Guava. A and B import with a constraint of [18

Re: cannot delete bundle jar from load directory (locked)

2015-08-21 Thread Richard S. Hall
On 8/21/15 14:24 , Hubert Felber wrote: Windows :-) 1. stop the bundle before deleting its bundle neither stop nor uninstall the bundle helps. It must have to do with the native code running -- is still locked. Did you refresh after uninstalling ? 2. stop using windows, by far the best

Re: Core and Compendium APIS at runtime

2015-05-25 Thread Richard S. Hall
, 2015 at 3:55 PM, Richard S. Hall he...@ungoverned.org wrote: On 5/20/15 05:15 , Milen Dyankov wrote: Thanks for your answer Richard! I am aware if the FAQ however what it basically tells you is it depends ;) Unfortunately, it does depend on your circumstances. There are very few cases

Re: Core and Compendium APIS at runtime

2015-05-20 Thread Richard S. Hall
On 5/20/15 05:15 , Milen Dyankov wrote: Thanks for your answer Richard! I am aware if the FAQ however what it basically tells you is it depends ;) Unfortunately, it does depend on your circumstances. There are very few cases in software engineering where you can say, always do it like

Re: Core and Compendium APIS at runtime

2015-05-20 Thread Richard S. Hall
things downs just leads to other messiness (see .NET and its strong versions). As I said before, there is no free lunch. Developing software is complicated and you have to work hard to keep it from getting messy. - richard Best, Milen On Wed, May 20, 2015 at 3:55 PM, Richard S. Hall he

Re: Core and Compendium APIS at runtime

2015-05-20 Thread Richard S. Hall
on their own requirements. Some people might want their bundle to be self-contained to make it easier to use or want to limit third-party dependencies, etc. It just depends. :-) - richard On Wed, May 20, 2015 at 5:47 PM, Richard S. Hall he...@ungoverned.org wrote: On 5/20/15 11:37 , Milen Dyankov

Re: Core and Compendium APIS at runtime

2015-05-17 Thread Richard S. Hall
On 5/17/15 12:57 , Milen Dyankov wrote: Hi, I recently stumbled upon something that makes me wonder about OSGI specs APIs. As Metatype was the one API that made me start thinking about the issue, I'll use it as an example but the question is about APIs in general. So while attempting to

Re: Felix autostart Dependencies

2015-04-27 Thread Richard S. Hall
On 4/27/15 04:02 , Moss, Robin wrote: Hello, Sorry if this has been asked before but I've not had much lucking finding information about it. I'm trying to configure felix to use auto deploy to install,start a set of plugins that are needed for auto.start bundles later on. In my case I'm

Re: Missing Framework Event on Bundle start failure

2015-03-17 Thread Richard S. Hall
On 3/17/15 04:34 , Anders Engström wrote: Hi! I'm deploying bundles at runtime in a Felix container and was expecting the container to generate a FrameworkEvent (of type ERROR) if a call to `Bundle#start()` fails with an exception. In my case the call to `start` triggers a `BundleException`

Re: Same code in bundle and system bundle results in verify error

2015-01-12 Thread Richard S. Hall
On 1/12/15 11:42 , Benson Margulies wrote: My idea that this has to do with system bundle versus not is wrong. I'm still debugging. Is it a single package you are talking about or is it a couple of packages with uses constraints among them? - richard

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-09 Thread Richard S. Hall
On 12/9/14 01:55 , Felix Meschberger wrote: Hi Am 09.12.2014 um 03:02 schrieb Richard Hall he...@ungoverned.org: On 12/8/14 20:47 , Benson Margulies wrote: On Mon, Dec 8, 2014 at 8:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 12/8/14 18:07 , Benson Margulies wrote

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-09 Thread Richard S. Hall
all start levels up to the initial start level have completed activating. - richard On Dec 8, 2014 9:10 PM, Benson Margulies ben...@basistech.com mailto:ben...@basistech.com wrote: On Mon, Dec 8, 2014 at 9:02 PM, Richard S. Hall he...@ungoverned.org mailto:he...@ungoverned.org wrote

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-09 Thread Richard S. Hall
On 12/9/14 08:16 , Richard S. Hall wrote: On 12/9/14 01:55 , Felix Meschberger wrote: Hi Am 09.12.2014 um 03:02 schrieb Richard Hall he...@ungoverned.org: On 12/8/14 20:47 , Benson Margulies wrote: On Mon, Dec 8, 2014 at 8:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 12/8/14 18

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-08 Thread Richard S. Hall
On 12/8/14 18:07 , Benson Margulies wrote: FrameworkStartLevel#setStartLevel takes listeners, which looks really useful. Can I call it instead of Framework#start? They don't do the same thing, but certainly you can use either... - richard

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-08 Thread Richard S. Hall
On 12/8/14 20:47 , Benson Margulies wrote: On Mon, Dec 8, 2014 at 8:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 12/8/14 18:07 , Benson Margulies wrote: FrameworkStartLevel#setStartLevel takes listeners, which looks really useful. Can I call it instead of Framework#start? They don't

Re: org.osgi.framework.system.packages.extra

2014-11-17 Thread Richard S. Hall
On 11/17/14 10:27 , Benson Margulies wrote: In several places, http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html says: This is achieved using the org.osgi.framework.system.packages.extra configuration property previously presented. It does not

Re: OSGI Security in Felix

2014-10-06 Thread Richard S. Hall
On 10/6/14 06:13 , Andrew Scully wrote: Hello, I'm looking into domain security in OSGI. I've assembled a fairly complete picture of what this would involve, but I have a question which I would appreciate your thoughts on. It would also be useful to me to check that I have correctly understood

Re: Export packages of OSGi core by default

2014-09-01 Thread Richard S. Hall
On 9/1/14, 11:01 , Balázs Zsoldos wrote: The system bundle exports in Felix are defined by the defaults.properties file found inside the JAR, so it’s not necessary to use the Export-Package header from the manifest. I know. I saw it. The packages are also defined in the Export-Package MANIFEST

Re: Felix and VLC

2014-06-12 Thread Richard S. Hall
On 6/12/14, 03:39 , Erik Jansman wrote: Hello, For a project I'm working on creating a VLC bundle in Felix. I'm starting to wonder if trying to get VLC in a bundle is the right choice. I'm running into what appears to be an import/export package problem. VLC needs the

Re: Felix 4.2.1 and 4.4.0 regression wrt native code (Win7)

2014-06-12 Thread Richard S. Hall
On 6/12/14, 05:01 , Benoît Thiébault wrote: Hi again, I checked what version of Felix did break it: - Everything worked fine with Felix 4.0.3 that was released the 28th of December 2012 - Version 4.2.0, released on the 11th of February 2013, broke it Isn’t this modification responsible for

Re: Felix 4.2.1 and 4.4.0 regression wrt native code (Win7)

2014-06-12 Thread Richard S. Hall
and the bundle are the same. Only Felix version changes. We have tried to look at other classes that were modified in Felix since 4.0.3 but could not find anything conclusive yet Le 12 juin 2014 18:40, Richard S. Hall he...@ungoverned.org a écrit : On 6/12/14, 05:01 , Benoît Thiébault wrote: Hi

Re: Felix 4.2.1 and 4.4.0 regression wrt native code (Win7)

2014-06-12 Thread Richard S. Hall
... - richard Kind regards, Ben Le 12 juin 2014 à 21:48, Richard S. Hall he...@ungoverned.org a écrit : Perhaps you start the JVM up suspended with debug enabled and set a break point up at R4LibraryClause.match() and see precisely why it is failing? The code in there is pretty self explanatory

Re: Watching Felix bundle startup order

2014-04-25 Thread Richard S. Hall
I assume you have a framework.start() in there that you are not showing us? - richard On 4/25/14, 10:42 , Keith Hughes wrote: Hi folks, I have a strange bug and suspect it may be due to bundle startup order in Felix.So I am trying to log bundle startup order. I tried adding a bundle listener

Re: Watching Felix bundle startup order

2014-04-25 Thread Richard S. Hall
We're glad to have helped... ;-) On 4/25/14, 11:41 , Keith Hughes wrote: Found my problem. Very sorry. On Fri, Apr 25, 2014 at 8:42 AM, Keith Hughes keith.mhug...@gmail.comwrote: Hi folks, I have a strange bug and suspect it may be due to bundle startup order in Felix.So I am trying to

Re: ipojo late injection

2014-03-26 Thread Richard S. Hall
I'm guessing you'd want to use iPOJO API, which allows you to describe a component dynamically: http://felix.apache.org/documentation/subprojects/apache-felix-ipojo/apache-felix-ipojo-userguide/apache-felix-ipojo-api.html - richard On 3/26/14, 16:37 , alejandro.e...@miranda.com wrote: Hello

Re: OpenJPA Support in Apache Felix

2014-03-24 Thread Richard S. Hall
This code looks to be based on a fairly old version of the framework...I would guess version 3.x, which is prior to OSGi R4.3. You need to do some updates to get this to work with the latest framework releases (now version 4.4). Further, I think that OSGi R4.3 introduced some changes that

Re: AW: OpenJPA Support in Apache Felix

2014-03-24 Thread Richard S. Hall
. We use CQ 5.5 with Apache Felix 3.0.8. Regards, Dirk -Ursprüngliche Nachricht- Von: Richard S. Hall [mailto:he...@ungoverned.org] Gesendet: Montag, 24. März 2014 19:01 An: users@felix.apache.org Betreff: Re: OpenJPA Support in Apache Felix This code looks to be based on a fairly old

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Richard S. Hall
, Richard S. Hall he...@ungoverned.org wrote: On 3/17/14, 09:07 , Stefan Egli wrote: Hi Richard, (see below) On 3/17/14 1:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran into the famous deadlock with Java 6 where the same class is being

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Richard S. Hall
On 3/19/14, 11:00 , Richard S. Hall wrote: On 3/19/14, 10:47 , Stefan Egli wrote: Hi, I wrote a test which reproduces the deadlock on Java 6 (MacOS). It's attached to FELIX-4462 ([0]). Unfortunately I only managed to get it fail when running from Eclipse, not via 'mvn clean test'. I had

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Richard S. Hall
://issues.apache.org/jira/browse/FELIX-4462 On 3/17/14 4:22 PM, Richard S. Hall he...@ungoverned.org wrote: On 3/17/14, 09:07 , Stefan Egli wrote: Hi Richard, (see below) On 3/17/14 1:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Richard S. Hall
On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran into the famous deadlock with Java 6 where the same class is being loaded from two different bundles (also see FELIX-3953). This happened on a startup of a CQ instance. I'll add more analysis details but my question is: what is the

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Richard S. Hall
On 3/17/14, 09:07 , Stefan Egli wrote: Hi Richard, (see below) On 3/17/14 1:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran into the famous deadlock with Java 6 where the same class is being loaded from two different bundles (also

Re: Class loader related issue...

2014-03-12 Thread Richard S. Hall
On 3/12/14, 10:30 , Henry, Cedric wrote: Hello, I have a system using Felix and one of the bundles contains an SMTP client based on the JavaMail library. That system is installed on different machines, and for some of them I have a situation as the one mentioned in

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-05 Thread Richard S. Hall
On 3/5/14, 12:03 , Guillaume Nodet wrote: Try the following: addcommand ($.context loadClass java.lang.System) Or: g! addcommand system ((bundle 0) loadClass java.lang.System) You need to give it a class loader for doing the loadClass... - richard 2014-03-05 17:42 GMT+01:00 Daniel

Re: Problem with compiling Felix 3.1.1

2014-02-14 Thread Richard S. Hall
The framework isn't a bundle, so you could try just the normal mvn clean install... On 2/14/14, 04:31 , Elros wrote: Hi Felix users, I need to compile the version of Apache Felix 3.1.1 on my Mac Air with JVM 1.7.0_51. When i try to do the command mvn -Dpackaging=bundle install the process of

Re: Updating the System Bundle

2014-01-02 Thread Richard S. Hall
On 1/2/14, 10:07 , Daniel McGreal wrote: Hi all, Updating the system bundle has the effect of restarting the OSGi framework (requires support from the launcher). - http://wiki.osgi.org/wiki/System_Bundle Does the Felix launcher support updating itself? I notice there's no bundle.jar in

Re: Withdraw GOGO-Shell

2013-12-28 Thread Richard S. Hall
On 12/27/13, 11:25 , Ulrich wrote: Am trying to get familiar with OSGi. Therefore have right now installed Felix to my Eclipse Kepler installation following the description as is published in http://felix.apache.org/site/integrating-felix-with-eclipse.html. But unfortunatly when starting Felix

Re: [Discuss]About Unable to acquire global lock for resolve

2013-12-18 Thread Richard S. Hall
deals with class loader locks, not the global lock (which is a Felix framework-specific thing). - richard On 18 Dec 2013, at 13:57, Felix Meschberger fmesc...@adobe.com wrote: Hi Am 17.12.2013 um 14:25 schrieb Richard S. Hall he...@ungoverned.org: On 12/17/13, 04:36 , Tang Yong wrote: Hi

Re: [Discuss]About Unable to acquire global lock for resolve

2013-12-17 Thread Richard S. Hall
On 12/17/13, 04:36 , Tang Yong wrote: Hi All, I met an issue as the following, ... Caused by: org.osgi.framework.BundleException: Unable to acquire global lock for resolve. at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3832) at

Re: Updating the implementation bundle

2013-12-09 Thread Richard S. Hall
On 12/9/13, 02:37 , Snorre Lothar von Gohren Edwin wrote: Hi I have split up my bundles with an API bundle, and an implementation bundle. Right now im trying to update the implementation bundle to be able to to other things. But for some reason, even if the new version displays in the list of

Re: Stale BundleWiringImpl (ClassLoader) used for sun.reflect.ConstructorAccessorImpl

2013-11-26 Thread Richard S. Hall
/refresh. - richard -Karl From: Richard S. Hall [he...@ungoverned.org] Sent: Saturday, November 23, 2013 3:25 PM To: users@felix.apache.org Subject: Re: Stale BundleWiringImpl (ClassLoader) used for sun.reflect.ConstructorAccessorImpl On 11/23/13, 13

Re: Getting Felix to support OSGi Core R5 (Was: Re: Running aries subsystem 1.0.0 on felix 4.2.1 failed)

2013-11-26 Thread Richard S. Hall
November 2013 15:28, Richard S. Hall he...@ungoverned.org wrote: On 11/20/13, 06:06 , David Bosschaert wrote: It's been a while but I started implementing some of these. I added patches to the following 3 bugs: * FELIX-3868 * FELIX-4080 * FELIX-4083 Would be great if someone could review them

Re: Stale BundleWiringImpl (ClassLoader) used for sun.reflect.ConstructorAccessorImpl

2013-11-23 Thread Richard S. Hall
On 11/23/13, 13:29 , Karl Rieb wrote: Hi, We are using felix framwork 3.0.4 and are having problems when one of our bundle upgrades. We noticed the same issue also occurs if we uninstall, then later re-install the bundle. The bundle has an embedded dependency (e.g. a non-OSGi jar) that

Re: Is the OBR documentation out of date?

2013-11-22 Thread Richard S. Hall
I think the API is largely the same...the main difference is the API was moved out of the org.osgi.service.obr package and into the org.apache.felix.bundlerepository package because OSGi wasn't/isn't releasing a spec around this, so we couldn't really continue to use their namespace. -

Re: Getting Felix to support OSGi Core R5 (Was: Re: Running aries subsystem 1.0.0 on felix 4.2.1 failed)

2013-11-20 Thread Richard S. Hall
On 11/20/13, 06:06 , David Bosschaert wrote: It's been a while but I started implementing some of these. I added patches to the following 3 bugs: * FELIX-3868 * FELIX-4080 * FELIX-4083 Would be great if someone could review them and apply :) Thanks! I'll try to look into them. - richard

Re: obr:deploy and bundle versions

2013-11-14 Thread Richard S. Hall
too much pain. For now I would advise people against using a qualifier at all. Eclipse seems to survive with qualifiers. - richard -Stijn -Original Message- From: Richard S. Hall [mailto:he...@ungoverned.org] Sent: woensdag 6 november 2013 18:38 To: users@felix.apache.org Subject: Re

Re: Gogo and CommandProcessor, etc interfaces

2013-11-14 Thread Richard S. Hall
Yes, it was basically decided that there wasn't much reason to spec Gogo, since there wasn't any real prospect for getting multiple implementations. So, as of now, it won't be spec'ed and thus the implementation should not be using the spec package name space. - richard On 11/14/13 11:11 ,

Re: obr:deploy and bundle versions

2013-11-11 Thread Richard S. Hall
much pain. For now I would advise people against using a qualifier at all. Eclipse seems to survive with qualifiers. - richard -Stijn -Original Message- From: Richard S. Hall [mailto:he...@ungoverned.org] Sent: woensdag 6 november 2013 18:38 To: users@felix.apache.org Subject: Re

Re: felix.bootdelegation.implicit

2013-11-05 Thread Richard S. Hall
On 11/5/13 11:45 , Elliot Huntington wrote: The Felix documentation states: felix.bootdelegation.implicit - Specifies whether the framework should try to guess when to implicitly boot delegate to ease integration with external code. The default value is true. The documentation treats boot

Re: Mangen

2013-11-01 Thread Richard S. Hall
On 10/31/13, 17:04 , Jason Tesser wrote: I am looking for the download to http://felix.apache.org/documentation/subprojects/apache-felix-manifest-generator-mangen.html Where can I find it? I don't believe there ever was an official release, so you'd have to build it yourself. However, this

Re: Noob Help

2013-10-25 Thread Richard S. Hall
Try to exclude it in your Import-Package in your pom.xml (e.g., !oracle.xml.*). - richard On 10/25/13, 00:15 , Wade Girard wrote: I have been experimenting with felix and learning OSGi for the last week. I really like what it has to offer and believe that I can use it for an upcoming

Re: adopt to OSGi

2013-10-17 Thread Richard S. Hall
On 10/17/13 00:31 , Peter Cheung wrote: Dear AllI have a app, which is a debugger, it works with qemu and bochs. I am planning to support more VM, so I want to independent the middle part to OSGi. I am not sure i am doing it correctly: 1) I changed my app to start felix immediately after

Re: Problem about upgrading of OSGi framework

2013-10-08 Thread Richard S. Hall
It looks like you deploying a system bundle extension. What is in its manifest? - richard On 10/8/13 02:26 , gavin.yao wrote: Hi: When upgrading to Felix Framework 4.2.1, I run into BundleException, however, old version: 3.2.2 has not this problem. Here's the full stack trace: Could

Re: Help with Unresolved constraint error

2013-10-03 Thread Richard S. Hall
On 10/3/13 10:24 , Rajan Parthasarathy wrote: Hello, I'm running into an Unresolved constraint in bundle error, and hoping to get some insight into it. I'm using Felix system bundle 4.0.3. The application uses an OBR, with a thread that periodically checks for updates. Bundles are updated

Re: Help with Unresolved constraint error

2013-10-03 Thread Richard S. Hall
Message- From: Richard S. Hall [mailto:he...@ungoverned.org] Sent: Thursday, October 03, 2013 1:10 PM To: users@felix.apache.org Subject: Re: Help with Unresolved constraint error On 10/3/13 10:24 , Rajan Parthasarathy wrote: Hello, I'm running into an Unresolved constraint in bundle error

Re: Help with Unresolved constraint error

2013-10-03 Thread Richard S. Hall
more tests (adding new bundles, etc.) but if you see anything wonky with this approach, please let me know. Yes, I believe that is the correct approach. - richard Thanks again for all the help, Raj -Original Message- From: Richard S. Hall [mailto:he...@ungoverned.org] Sent: Thursday

Re: iPOJO and dynamic requires

2013-10-02 Thread Richard S. Hall
On 10/2/13 08:42 , Bengt Rodehav wrote: I'm creating a dynamic processing component using iPOJO and Camel. The idea is to dynamically specify (via config admin) a number of processor id's. In runtime I want to find the matching processors (the processors are Camel processors published as OSGi

Re: Which classloader load Fragment(Fragment-Host: system.bundle; extension:=framework), boot classloader?? or system classloader??

2013-09-25 Thread Richard S. Hall
On 9/25/13 05:25 , gavin.yao wrote: Hi : Which classloader load Fragment(Fragment-Host: system.bundle; extension:=framework), boot classloader?? or system classloader?? I believe this would be the class loader that loaded the framework classes, which is typically the application class

Re: iPOJO service requirement via callbacks: specification discovery

2013-09-25 Thread Richard S. Hall
On 9/25/13 10:59 , Debeerst Benjamin wrote: Hello all, First of all I'd like to say how wonderful iPOJO works. Thanks for all the hard work going into that project (and all the others at Apache Felix). (Most of the time) there's good warnings or errors on why a requirement could not be

Re: Weird cast problem when embedding the Jetty web service into Felix

2013-09-24 Thread Richard S. Hall
On 9/24/13 16:06 , Fulvio Risso wrote: I'm currently embedding Jetty in the felix framework, using the examples provided on the felix website: http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html and

Re: How to improve the start time of Apache Felix

2013-09-23 Thread Richard S. Hall
On 9/23/13 03:19 , Roland wrote: Roland wrote [...]It would be nice if the wires also can be cached persistently in some way. I'm no Felix-expert and do not know the exact implementation, but I'm assuming that Felix creats a hash table of wire-objects to resolve dependencies at runtime.

Re: How to improve the start time of Apache Felix

2013-09-23 Thread Richard S. Hall
simpler). Richard S. Hall wrote [...], it made little difference. [...] It's a pity because of the result. But good that you tried it once. Well, it could be that my approach was too naive. Needless to say, I was surprised. - richard -- View this message in context: http://apache-felix

Re: Exported package names cannot be zero length. (?)

2013-09-19 Thread Richard S. Hall
Sounds like you need to see what the value of the ...system.packages (and ...system.packages.extras) property is when you start in your test container. - richard On 9/19/13 11:05 , Roland wrote: Hello Felix experts... Recently, I got the following error in my *test-container* (pax exam):

Re: Changing Felix log level at runtime

2013-09-16 Thread Richard S. Hall
On 9/16/13 12:50 , Christopher BROWN wrote: Hi, I provide my own implementation of the Felix logger (I'm not referring the OSGi log service here, I'm aware of the difference). I set it up using the HashMap I provided to the Felix constructor (I'm using Felix in embedded mode), using the two

Re: New to Felix: How to resolve OSGI dependency for maven project

2013-09-14 Thread Richard S. Hall
Did you try installing all of your bundles into the framework and making sure they really do resolve? You might get a better error message, if there is an actual resolve error, if you try to resolve them in the framework. - richard On 9/12/13 17:45 , Jamescott wrote: Hello, I have a maven

Re: After installing Java 8 developer preview, Felix 3.2.2 no longer exports javax.sql

2013-09-13 Thread Richard S. Hall
-jre sections). Is that correct? Thanks, Christopher On 12 September 2013 18:14, Richard S. Hall he...@ungoverned.org wrote: On 9/12/13 11:56 , Christopher BROWN wrote: Hello, An application using Felix 3.2.2 on MacOS X has started failing with the following exception: org.osgi.framework

Re: About the status of Felix Repository Subproject

2013-09-12 Thread Richard S. Hall
On 9/12/13 03:09 , Tang Yong wrote: Hi Felix, Good Afternoon(My local time)! About the status of Felix Repository Subproject, I have two questions as following and looking forward to obtaining some answsers: 1. Who are leading the subproject, Richard? Not really, we don't really have

Re: Filtering the default provided system packages

2013-09-12 Thread Richard S. Hall
On 9/12/13 10:59 , Christian Schneider wrote: That would be really helpful. Using CXF also requires to not export some system packages. Currently we have to completely redefine the system packages. So it would be nice to be able to just specify which packages to add (already works) and which

Re: After installing Java 8 developer preview, Felix 3.2.2 no longer exports javax.sql

2013-09-12 Thread Richard S. Hall
On 9/12/13 11:56 , Christopher BROWN wrote: Hello, An application using Felix 3.2.2 on MacOS X has started failing with the following exception: org.osgi.framework.BundleException: Unresolved constraint in bundle system.sdk-project [5]: Unable to resolve 5.0: missing requirement [5.0] package;

Re: getBundle(1) throws NPE

2013-09-10 Thread Richard S. Hall
I guess I don't recall, is this a framework issue or an OBR issue? If it is a bug in the framework, did you open an issue for it? - richard On 9/10/13 11:08 , Roland wrote: same issue as

Re: START_TRANSIENT_ERROR is 10 but BundleException typ is set to 0

2013-09-06 Thread Richard S. Hall
On 9/6/13 04:45 , Roland wrote: Hello Felix-experts, I got a BundleException Cannot start bundle xyz because its start level is 3, which is greater than the framework's start level of 1. After the exception was thrown I checked the Exception-type and I got 0 but I expected START_TRANSIENT_ERROR

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Richard S. Hall
On 9/6/13 05:27 , Roland wrote: Is it possible to start the framework and the cached bundles concurrently? I'm not optimistic: https://issues.apache.org/jira/browse/FELIX-3034 - richard -- View this message in context:

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 08:42 , Roland wrote: Hello Felix-experts! The org.apache.felix.utils.log.Logger can only be instanciated without using the fallbacklogger (stdout,stderr) if a bundle exports the LogService interface, isn't it? How can I set felix.log.logger at runtime after calling the

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 08:59 , Roland wrote: Does it mean that I should export the LogService-interface with FRAMEWORK_SYSTEMPACKAGES_EXTRA? Otherwise it makes no sense to me. Not sure what you mean, the framework doesn't use a logging service, it uses an instance of org.apache.felix.framework.Logger. -

  1   2   3   4   5   6   7   8   9   10   >