Re: "partial fragment bundles"?

2018-08-13 Thread Robert Munteanu
On Mon, 2018-08-13 at 16:20 +0200, Jörg Hoh wrote: > Hi Robert, > > this 3rd party library is a bit complicated ... from what I > understood it > hasn't been developed with OSGI in mind (but rather for application > server > use), and fiddles around with classloaders etc. I was told that the > thi

Re: "partial fragment bundles"?

2018-08-13 Thread Jörg Hoh
Hi Robert, this 3rd party library is a bit complicated ... from what I understood it hasn't been developed with OSGI in mind (but rather for application server use), and fiddles around with classloaders etc. I was told that the this library internally internally loads classes from the JVM, effecti

Re: "partial fragment bundles"?

2018-08-13 Thread Robert Munteanu
Hi Jörg, On Fri, 2018-08-10 at 11:06 +0200, Jörg Hoh wrote: > and it turns > it that this library uses both the JVM-provided classes as well as > the > classes provided by the sling bundle, thus failing to run properly. What error do you get? Is it the cheerful uses constraints violation? One pos

Re: "partial fragment bundles"?

2018-08-10 Thread Eduardo Garcia
At first hand, if there is a difference in javax.activation.datahandler package version (JVM vs Sling), you can restrict that to use only the version needed by third-part library to work properly. Best wishes, On 08/10/2018 03:06 AM, Jörg Hoh wrote: > Hi, > > We run an OSGI-based application wi

"partial fragment bundles"?

2018-08-10 Thread Jörg Hoh
Hi, We run an OSGI-based application with Apache Sling, and there we use the org.apache.sling.javax.activation bundle (see [1] for the reason why it has been introduced). Now we are required to update a third-party library, which started to use the javax.activation.datahandler package; and it turn

Re: Fragment bundles and Bundle-Classpath of host

2012-03-15 Thread Neil Bartlett
_value; > > > > > } > > > > > } > > > > > > > > > > > > > > > As you can see, the class (from my test fragment bundle) DIRECTLY > > > > > refers to classes fr

Re: Fragment bundles and Bundle-Classpath of host

2012-03-15 Thread Richard S. Hall
ses are loaded by the same class loader as the classes in the host to which they are attached, so they should have the same visibility to other classes. -> richard Rgds Neil Sent from my iPhone On 14 Mar 2012, at 08:35, Christopher BROWNmailto:br...@reflexe.fr)> wrote: Hello,

Re: Fragment bundles and Bundle-Classpath of host

2012-03-15 Thread Neil Bartlett
)); > > > assertEquals(1, fa.getUsageCount()); > > > } > > > ____ > > > > > > If I drop the use of "MockStringModel" and comment out the direct > > > references to FreeMarker, it works. I use a similar

Re: Fragment bundles and Bundle-Classpath of host

2012-03-15 Thread Richard S. Hall
y the same class loader as the classes in the host to which they are attached, so they should have the same visibility to other classes. -> richard Rgds Neil Sent from my iPhone On 14 Mar 2012, at 08:35, Christopher BROWNwrote: Hello, The software I'm creating uses Felix

Re: Fragment bundles and Bundle-Classpath of host

2012-03-15 Thread Christopher BROWN
ichard S. Hall wrote: >> On 3/14/12 05:00 , Neil Bartlett wrote: >>> >>> It certainly is possible to use fragments this way, it fact it's almost >>> the sole purpose of fragments. So there must be something else going on. >>> Please show what kind of

Re: Fragment bundles and Bundle-Classpath of host

2012-03-15 Thread Christopher BROWN
ard > > >> >> Rgds Neil >> >> Sent from my iPhone >> >> On 14 Mar 2012, at 08:35, Christopher BROWN  wrote: >> >>> Hello, >>> >>> The software I'm creating uses Felix to separate one API bundle (a set >>> of &quo

Re: Fragment bundles and Bundle-Classpath of host

2012-03-14 Thread Richard S. Hall
at we're free to change over time. There's only a few JARs we've " promoted" or shared as proper bundles. Our testing strategy involves binding fragment bundles with tests, and I hit a problem, given the approach outlined above. In short, although the fragment bundle is in

Re: Fragment bundles and Bundle-Classpath of host

2012-03-14 Thread Neil Bartlett
we require, as we want to be > able to keep them as hidden implementation details that we're free to > change over time. There's only a few JARs we've " promoted" or shared > as proper bundles. > > Our testing strategy involves binding fragment bundles with t

Fragment bundles and Bundle-Classpath of host

2012-03-14 Thread Christopher BROWN
able to keep them as hidden implementation details that we're free to change over time. There's only a few JARs we've " promoted" or shared as proper bundles. Our testing strategy involves binding fragment bundles with tests, and I hit a problem, given the approach ou

Re: problem for dependency to google guice fragment bundles due to deployment order

2011-05-22 Thread Richard S. Hall
se installation order is taken into account when determining priority of candidates (older bundles have higher priority). So, in short, if it is working even when it complains, then there is nothing to worry about. -> richard On 5/21/11 14:39, Eric Yung wrote: Hi, I have tried to use

Re: problem for dependency to google guice fragment bundles due to deployment order

2011-05-22 Thread Eric Yung
y). >>> >>> So, in short, if it is working even when it complains, then there is >>> nothing to worry about. >>> >>> -> richard >>> >>> On 5/21/11 14:39, Eric Yung wrote: >>>> Hi, >>>> >>>>

Re: problem for dependency to google guice fragment bundles due to deployment order

2011-05-22 Thread Richard S. Hall
le and several fragment bundles. But I found a strange behavior when starting the Felix framework when the Guice bundles and my bundle deployed in the /bundle directory and the my bundle is deployed before the Guice bundles. The framework may complain about the following error but it does NOT

Re: problem for dependency to google guice fragment bundles due to deployment order

2011-05-21 Thread Eric Yung
en it complains, then there is nothing > to worry about. > > -> richard > > On 5/21/11 14:39, Eric Yung wrote: >> Hi, >> >> I have tried to use the Google Guice 3.0 bundles in Felix 3.2.1, the bundles >> includes one main bundle and several fragmen

Re: problem for dependency to google guice fragment bundles due to deployment order

2011-05-21 Thread Richard S. Hall
ain bundle and several fragment bundles. But I found a strange behavior when starting the Felix framework when the Guice bundles and my bundle deployed in the /bundle directory and the my bundle is deployed before the Guice bundles. The framework may complain about the following error but it d

problem for dependency to google guice fragment bundles due to deployment order

2011-05-21 Thread Eric Yung
Hi, I have tried to use the Google Guice 3.0 bundles in Felix 3.2.1, the bundles includes one main bundle and several fragment bundles. But I found a strange behavior when starting the Felix framework when the Guice bundles and my bundle deployed in the /bundle directory and the my bundle is

Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-04 Thread Guo Du
On Fri, Dec 4, 2009 at 11:30 AM, Charles Moulliard wrote: > Why such info is not provided to the console's user That's what I want as well :) > Surprisingly, using equinox as osgi platform on Apache Felix Karaf allow to > bind the same Hibernate bundles without any issues !! equinox implemen

Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-04 Thread Charles Moulliard
Thx. Adding the property : felix.log.level= 4 in config.properties file of Apache Felix Karaf helps me It should be interesting to add it by default as non commented property in the file otherwise people have to dig Internet ??? Here is the result : DEBUG: Excluding fragment com.springsource.or

Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-04 Thread Guo Du
On Fri, Dec 4, 2009 at 8:13 AM, Charles Moulliard wrote: > I have tested with logging defined as DEBUG or TRACE but no particular info > has been reported in the log. > > For me, that was working before. I tried one of my fragment bundle and it works on 2.0.0 and 2.0.1. If you provide log informa

Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-04 Thread Charles Moulliard
bernate.ejb/ > > 3.4.0.GA > > > > and the two bundles involved > > > > [ 86] [Installed ] [] [ ] [ 60] JBoss Hibernate > > Entity > > Manager (3.4.0.GA) // Fragment bundle > > [ 89] [Active ] [] [

Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-03 Thread Chris Custine
] JBoss Hibernate > Entity > Manager (3.4.0.GA) // Fragment bundle > [ 89] [Active ] [] [ ] [ 60] JBoss Hibernate > Object-Relational Mapper (3.3.2.GA) // its host > > using the command > > osgi:refresh 89 > > does not affect the host bundle. Th

Re: Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-03 Thread Richard S. Hall
ent bundle [ 89] [Active ] [] [ ] [ 60] JBoss Hibernate Object-Relational Mapper (3.3.2.GA) // its host using the command osgi:refresh 89 does not affect the host bundle. The list of packages of the fragment bundles are not at all exported. Regards, Charles Moulliard Sen

Apache Felix 2.0.1 - Fragment-Host - The list of packages of the fragment bundles are not at all exported.

2009-12-03 Thread Charles Moulliard
host bundle. The list of packages of the fragment bundles are not at all exported. Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http

Re: updating fragment bundles

2009-05-19 Thread Richard S. Hall
On 5/19/09 2:09 PM, derekv wrote: FilippoDiotalevi wrote: per specification: "When an attached fragment bundle is updated, the content of the previous fragment must remain attached to its host bundle. The new content of the updated fragment must not be allowed to attach to the host bundle

Re: updating fragment bundles

2009-05-19 Thread derekv
ferent host bundle. > " > So does the File Install service refresh the host bundle automatically in order for it to pick up the changes in the fragment bundle? Sure would be nice if it did. thanks. -- View this message in context: http://www.nabble.com/updating-fragment-bundles-tp23

Re: updating fragment bundles

2009-05-19 Thread Filippo Diotalevi
On Tue, May 19, 2009 at 7:46 PM, derekv wrote: > > Lets say i have bundle A and fragment bundle B that is associated with bundle > A. > Lets say i am using the File Install service. > If i need to update a class in fragment bundle B can i simply drop the new > jar file in the folder and everything

Re: updating fragment bundles

2009-05-19 Thread Richard S. Hall
This is fairly similar to performing any update. If a bundle is wired to some bundle, updating the target of the wire will not be seen by the source unless a refresh is performed. This is no different for packages or fragments. So, to answer your question, you will need to refresh. However, I

updating fragment bundles

2009-05-19 Thread derekv
: http://www.nabble.com/updating-fragment-bundles-tp23621182p23621182.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands

Re: fragment bundles

2008-04-15 Thread Richard S. Hall
peter.doornbosch wrote: Hi Richard, On 15 Apr , 2008, at 18:19 , Richard S. Hall wrote: peter.doornbosch wrote: Could it be the case the Felix does not support Fragment bundles? It is definitely the case that Felix does NOT support fragment bundles yet. :-) I see ;-). In that case, may

Re: fragment bundles

2008-04-15 Thread peter.doornbosch
Hi Richard, On 15 Apr , 2008, at 18:19 , Richard S. Hall wrote: peter.doornbosch wrote: Could it be the case the Felix does not support Fragment bundles? It is definitely the case that Felix does NOT support fragment bundles yet. :-) I see ;-). In that case, may i suggest that felix

Re: fragment bundles

2008-04-15 Thread Richard S. Hall
peter.doornbosch wrote: Could it be the case the Felix does not support Fragment bundles? It is definitely the case that Felix does NOT support fragment bundles yet. :-) We have started to make some inroads in this direction, but I personally don't expect to put any serious amount of

fragment bundles

2008-04-15 Thread peter.doornbosch
Hi, Could it be the case the Felix does not support Fragment bundles? Regards, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fragment Bundles with maven-bundle-plugin

2007-09-27 Thread Rodrigo Madera
Thanks for the answer. But I'm really in love with Apache Felix. If fragment bundles are not yet implemented, I'll wait and figure out myself in another way. Right now I'm struggling with Apache libraries, but every other aspect is working nicely. Apache Felix is a very nice p

Re: Fragment Bundles with maven-bundle-plugin

2007-09-26 Thread Stuart McCulloch
Hi Rodrigo, On 26/09/2007, Rodrigo Madera <[EMAIL PROTECTED]> wrote: > > Hello, > > Does anyone have an example of how to create fragment bundles with > maven-bundle-plugin? > > I have a bundle called Greeter-1.0.jar that needs some .properties files > that wi

Fragment Bundles with maven-bundle-plugin

2007-09-25 Thread Rodrigo Madera
Hello, Does anyone have an example of how to create fragment bundles with maven-bundle-plugin? I have a bundle called Greeter-1.0.jar that needs some .properties files that will be read using Java standard ResourceBundles. I read that this can be accomplished by using fragment bundles to add the