Re: Build Felix

2007-06-01 Thread Richard S. Hall
I was able to build everything from a clean repository just now, so perhaps it was a transient error or, as Karl suggested, perhaps you should delete your Maven ~/.m2/repository directory... - richard Tom Remoleur wrote: Hello evrybody, I'm currently working on an access point using felix

Re: [OT] Oscar/OSGi JMF

2007-06-05 Thread Richard S . Hall
You're trying to get this to work in Oscar or you are trying to run an Oscar bundle on Felix and are getting this error? - richard On Jun 5, 2007, at 7:01 PM, Stefano Lenzi wrote: Hi All, I'd like to know if someone of you have already tried to use JMF on OSGi. I've a bundle that must use

Re: Bundle Plugin for Maven: adding jar inside bundle jar

2007-06-20 Thread Richard S. Hall
Actually, this issue just came up today on the [EMAIL PROTECTED] mailing list...here is some last message on that thread: http://mail-archives.apache.org/mod_mbox/felix-dev/200706.mbox/[EMAIL PROTECTED] This is an area that will are hoping to put some effort into in the not-so-distant

Re: hprof with Felix

2007-06-21 Thread Richard S. Hall
You probably want to add sun.tools.hprof to the org.osgi.framework.bootdelegation property, which is used to provide bundles implicit access to stuff on the class path...org.osgi.framework.system.packages still requires bundles to explicitly import the package, which is not what you want. -

Re: Shutdown hooks

2007-08-15 Thread Richard S. Hall
The class loader of the Runnable implementation class that you register is the one that will be used to load any classes that your Runnable implementation uses. So, assuming that your Runnable implementation class is from your bundle, then it will be loaded from your bundle class loader, which

Re: osgi.parentClassLoader

2007-08-30 Thread Richard S. Hall
That is Equinox-specific...we had talked briefly about allowing a class loader to be passed into the Felix constructor for delegation purposes, but didn't really have a compelling reason to do so. Anyhow, Felix doesn't separate the framework classes from the application class loader, like

Re: How to check if an optional package is available?

2007-09-12 Thread Richard S. Hall
Bart Elen wrote: Hello, When a package is imported with 'resolution:=optional', we have to check if the package is available or not before we use it. But how do we do this? Someone has experience with this problem? Just try to load a class from that package and catch any exceptions...if

Re: embedding felix with using jar-bundle-files

2007-09-25 Thread Richard S. Hall
If your bundle JAR files are embedded inside your application JAR, then you will likely need to do a getResource() on your class loader to get the resource URL for the embedded bundle JAR files. - richard Achim wrote: Felix Meschberger schrieb: Hi, It seems that from the perspective of

Re: embedding felix with using jar-bundle-files

2007-09-26 Thread Richard S. Hall
Achim wrote: Richard S. Hall schrieb: If your bundle JAR files are embedded inside your application JAR, then you will likely need to do a getResource() on your class loader to get the resource URL for the embedded bundle JAR files. - richard Could you please give me a code snippet

Re: How to determine if a bundle with only service interfaces is still used?

2007-09-26 Thread Richard S. Hall
If you have done a refresh, then the package admin methods to examine importers of packages should be sufficient to see what is still in use. Look into ExportedPackage from PackageAdmin... - richard Bart Elen wrote: Hallo, I use a lot of service dependencies between my bundles with the

Re: Log Service Implementation

2007-09-26 Thread Richard S. Hall
Burak Taysi wrote: Hi, I was looking at the LogService implementation in the Felix Source code. It keeps all the messages in memory and we can add a LogListener to retrieve the messages for the LogService. Was there a reason for this approach? The current log service implementation was

Re: OSGI Bundles and ResourceBundles (i18n)

2007-10-02 Thread Richard S. Hall
Mike, I am not aware of any work in this area, but perhaps others know of something. - richard Mike Seavers wrote: Hello, I want to create a ResourceBundle extension backed by a JackRabbit repository for my OSGI application. The design would allow for an OSGI bundle to be injected with

Re: Felix on a UNC90 platform

2007-10-10 Thread Richard S. Hall
David, I think this is great that you wrote about your experiences...we should document these types of experiences on our web site. I think we should create a Felix and alternative VMs web page on our site, perhaps yours could be the first contribution. Sound good? Perhaps other people

Re: Felix on a UNC90 platform

2007-10-10 Thread Richard S. Hall
David, As a potential placeholder for such an alternative VM page, I created the following on our wiki: http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+and+Alternative+Java+VMs Which generates the following static page:

Re: Felix UserAdmin

2007-10-11 Thread Richard S. Hall
Rodrigo Madera wrote: Hello community, Some time ago I posted a message asking if anyone knew an implementation for UserAdmin. I see that the OSGi spec requires UserAdmin to exist, but Felix doesn't have one. The OSGi spec does not require a UserAdmin to exist...I am fairly certain that

Re: Felix on a UNC90 platform

2007-10-11 Thread Richard S. Hall
David Lindelöf wrote: On Wed, 2007-10-10 at 13:25 -0400, Richard S. Hall wrote: As a potential placeholder for such an alternative VM page, I created the following on our wiki: http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+and+Alternative+Java+VMs Which generates

Re: Problem using service binder with embedded felix

2007-10-24 Thread Richard S. Hall
Original versions of the Service Binder did not include Import-Package statements for the org.osgi.framework packages in its manifest (since this wasn't necessary under Oscar). So, check SB's manifest and see if you need to add them, if so, extract, add, and rearchive. Otherwise, build the SB

Re: more bugs in the tutorial

2007-11-15 Thread Richard S. Hall
Better late than never...I finally remembered to do this...thanks for the feedback. - richard Bart Elen wrote: When someone is updating the website: there is another typo in the example on page: http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+OSGi+Bundle+Repository+(OBR)

Re: Accessing Bundle resources through classloader

2007-12-01 Thread Richard S. Hall
Did you try running your old bundle on Felix? It should work. The main difference between Felix and Oscar is that Felix is more strict about how classes are accessed. Oscar automatically allowed access to classes on the class path, Felix does not. Generally, to get old bundles to work on

Re: Problem with log4j on felix and jamvm

2007-12-04 Thread Richard S. Hall
), and the start method of an activator calling new SimpleDateFormat just never returns. I agree with you that I have to solve the URL handler issue in felix 1.0.1 . But I have no clue how to proceed. Best regards, Anne -Message d'origine- De : Richard S. Hall [mailto:[EMAIL PROTECTED

Re: Question on serializing/deserializing an osgi-loaded class

2007-12-07 Thread Richard S. Hall
Matt, I would guess that serializing a class and then trying to deserialize it without access to the original class would cause issues. I wrote a quick and dirty program that creates a simple class loader to manually load a class and then serializes the class to a file and then deserializes

Re: Install and start bundles from another bundle

2007-12-11 Thread Richard S. Hall
Elvy wrote: Hi, I am developing a GUI application as a bundle. This GUI is somehow like eclipse, it is a place where plugins can register to. Because it is Swing based, I have to do all the GUI initialization from the EDT. I thus call an InvokeAndWait() from my BundleActivator and do it all

Re: Install and start bundles from another bundle

2007-12-11 Thread Richard S. Hall
different BundleContexts? I think it does, but since I'm new to OSGi, I'm not certain yet... Yes, you can use your bundle context at any time from any thread. - richard Richard S. Hall wrote: Elvy wrote: Hi, I am developing a GUI application as a bundle. This GUI is somehow like

Re: Class.forName() inside JIDE (a cots) take huge time to return

2007-12-13 Thread Richard S. Hall
Elvy, So, for now you can work from trunk, but we are going to try to get a 1.0.2 release out pretty soon, which will include this fix, so look for it. - richard Karl Pauls wrote: yes, this should be fixed in trunk. regards, Karl On 12/13/07, Richard S. Hall [EMAIL PROTECTED] wrote

Re: org.apache.felix.shell activator doesn't show embedded bundles.

2007-12-13 Thread Richard S. Hall
I don't think I have enough information to help. Could you describe your setup more precisely and how your are installing and starting bundles? - richard Montoya, Wilberto wrote: I'm working embedding Felix in my application and then running a Derby server. The application works fine I has

Re: Activator not found

2007-12-13 Thread Richard S. Hall
First, it is probably not a good idea to have your activator in a package that you export, since this is unlikely to be part of your public API. Regarding the CNFE, I am not sure. If you look in your bundle, is that class actually there? You could send me your bundle privately and I could

Re: Class Loader

2007-12-21 Thread Richard S. Hall
that stands out in your mind? Thanks Garrett -Original Message- From: Richard S. Hall [mailto:[EMAIL PROTECTED] Sent: Thursday, December 20, 2007 8:26 AM To: users@felix.apache.org Cc: Headley, Garrett Subject: Re: Class Loader You exact scenario still isn't clear to me, even after

Re: Custom Felix launcher and auto-property

2008-01-04 Thread Richard S. Hall
François Fornaciari wrote: Hello, As the auto-property processing has been moved to the launcher, what is the new way to specify to a custom Felix launcher to start a list of bundles at startup? I mean, I can no more use the felix.auto.start property to set the bundle locations. Moreover, it

Re: Custom Felix launcher and auto-property

2008-01-07 Thread Richard S. Hall
concerning the processing of the auto-property has been externalized and thus can be reused, I think that this solution requires small modifications for all developers who have to use the last Felix. I have myself done only minimal changes. Thank you again. François Richard S. Hall wrote

Re: Problem while dynamically installing a new bundle

2008-01-08 Thread Richard S. Hall
Arnaud Floesser wrote: Actually my loader works fine. The problem comes from my bundle jar that is not correcly created... I thought that might be the case. :-) Just a word of warning, the approach for embedding will change in the 1.0.2 release of Felix, so you might have to make some

Re: OBR best practice

2008-01-08 Thread Richard S. Hall
It sounds like what you want is some way to install applications. OBR was not intended to support applications...I figured this would be a layer above OBR. I think that some people have experimented with approaches for deploying sets of bundles, perhaps they can respond. As a simple

Re: how to use the LogService

2008-01-09 Thread Richard S. Hall
Elvy wrote: Hi all, I'd like to use some kind of LogService but just can't find how to set it up and use it. I feel like it's time to get rid of my calls to System.out :wistle:. Is this service provided by Felix by default? Does I have to add it myself to the config.properties? Not, it is

Re: how to use the LogService

2008-01-09 Thread Richard S. Hall
Elvy wrote: which implementations exist? Is there any one better than the others? Well, there is at least a simple implementation in Felix, but you will have to build from source, since we are still working on an official release...hopefully coming soon now. - richard - Tell me

Re: Bundle in RESOLVED state even after a class has been loaded by that bundle

2008-01-11 Thread Richard S. Hall
Sahoo wrote: Hi Angelo, I am confused. Please help me understand something here. If what you said were the intention of the spec, why does the spec require Bundle.loadClass() to cause the corresponding bundle to go to ACTIVE state when the bundle uses LAZY activation policy [1]? Seems like

Re: Bundle in RESOLVED state even after a class has been loaded by that bundle

2008-01-11 Thread Richard S. Hall
Sahoo wrote: Richard S. Hall wrote: In R4.1, class loading is currently the only defined trigger that causes deferred activation. It's exactly this choice of trigger that had confused me earlier. I am not sure why Bundle.loadClass was chosen as the trigger for deferred activation. Any way

Re: Is OSGI a good choice?

2008-01-14 Thread Richard S. Hall
minakari wrote: I have some questions about OSGI, What? What should be done (business/technical need?) Why? why should OSGI be done? does it make anything better? Who? who should do it? Where? hardware/software requirements When? during project or for a completely new project? or can a project

Re: JVM Choice

2008-01-16 Thread Richard S. Hall
Ali,Unfortunately, I cannot offer you any specific advice, but from my understanding, Felix has been run on Mika, J9, and JamVM...perhaps others. We set up the "alternative JVMs" page to encourage people to contribute their experiences, but it is still a work in progress.- richardOn Jan 7, 2008,

Re: Felix strange when console is constrained?

2008-01-21 Thread Richard S. Hall
Patrick Forhan wrote: When I run a Felix container for a Swing application from inside Eclipse or JProfiler, I find that it freezes during startup. My experience is that there will be no output or activity in the console. Upon typing ps or another command three or four times, things loosen up

Re: NoClassDefFoundError: org/osgi/framework/BundleActivator

2008-01-22 Thread Richard S. Hall
Han Liu wrote: Hi I am using 1.0.1 and this happened in both the 'java -jar bin/felix.jar' and start felix in embered application Angelo metioned the last line break but if i write any thing else such as Import-Package: aaa.bbb.ccc the felix will tell me aaa.bbb.ccc can't be found.

Re: NoClassDefFoundError: org/osgi/framework/BundleActivator

2008-01-22 Thread Richard S. Hall
Han Liu wrote: 3 How to install a bundle in program without typing command in the shell. If you want to automatically install bundles, you can use FileInstall that automatically installs bundles that are placed into a given directory: http://www.aqute.biz/Code/FileInstall This

Re: Use Felix the java.beans package?

2008-01-22 Thread Richard S. Hall
ribeiant wrote: Thanks for answer. I would like to know if the Framework use the java.beans. I have one Problem and I have found that java.beans could be the reason of this problem. My Problem is that with some bundles, that in the java-code initialize an array with null (int arr = new int[0]),

Re: [EMAIL PROTECTED] could not load int

2008-01-23 Thread Richard S. Hall
) java.lang.NoClassDefFoundError: [EMAIL PROTECTED] could not load int - I will try with the svn version Thanks Antonio Richard S. Hall wrote: ribeiant wrote: Than k for answer Can you tell me where can I find this version? There hasn't been a release yet, so you either

Re: Missing FelixConstants.AUTO_START_PROP

2008-01-29 Thread Richard S. Hall
Mike, Actually, I just updated the documentation yesterday...check the LE doc now and you will see the correct information. The short answer is, as Felix said, the functionality was moved out of the core and into the default launcher, so if you are dependent on the auto-start/install

Re: Bundle and OBR plugins

2008-01-30 Thread Richard S. Hall
Stuart McCulloch wrote: On 30/01/2008, Patrick Shea [EMAIL PROTECTED] wrote: The problem with using executions is that it forces you to add the obr plugin to all bundle projects and that could be a lot. No that's not quite right - you can add this execution to a single parent pom

Re: Fragment bundle as Require-Bundle

2008-02-06 Thread Richard S. Hall
Richard S. Hall wrote: Sahoo wrote: As per the R4 spec section 3.14, a fragment bundle does not have its own class loader. I infer that there is no point in specifying a fragment bundle in the Require-Bundle header. Question is what happens if a bundle specifies a fragment bundle in Require

Re: java.lang.ClassNotFoundException: de.fsforth.gpio.GPIO

2008-02-06 Thread Richard S. Hall
ribeiant wrote: Hi We have found a solution. We have imported the pakage de.fsforth.gpio in the manifest and added it in the org.osgi.framework.system.packages properties. I don't know , if is the correct solution, but it's work:-) Yes, that sounds like the correct solution...I was

Re: Fragment bundle as Require-Bundle

2008-02-06 Thread Richard S. Hall
Sahoo wrote: As per the R4 spec section 3.14, a fragment bundle does not have its own class loader. I infer that there is no point in specifying a fragment bundle in the Require-Bundle header. Question is what happens if a bundle specifies a fragment bundle in Require-Bundle manifest? Does

Re: Using Services Provided by Bundles

2008-02-06 Thread Richard S. Hall
Daniel Dewael wrote: Hi guys, First thanks for Felix, this is really a great endeavor and an enabling technology that will change a lot of things for us, Java developers. Thanks. [Comments below...] I am trying to implement the Using Services Provided by Bundles example shown on the

Re: class not getting unloaded when bundle is uninstalled

2008-02-14 Thread Richard S. Hall
Richard S. Hall wrote: Sahoo wrote: I shall look closely at my test case, but I am a bit surprised, because if the test were incorrect, how was I seeing classes being gced while using other implementations? This is the basic flow of my test case: 1. I start the framework from a Java class. 2

Re: problems running tutorial examples

2008-02-14 Thread Richard S. Hall
Sagara Gunathunga wrote: Hi All , I'm new to Felix I got some problems with examples of the tutorials. ( 1) First I tried for Apache Felix Application Demonstration [1], I downloaded source code from Felix SVN server [2] . All 4 projects compiled and packaged well with the Maven . Then I

Re: ClassLoader question

2008-02-21 Thread Richard S. Hall
I understand that you resolved the issue, but I am not sure that this is the best approach in the long run. I have some suggestions for different approaches too, but these are not good for the long run either. 1. Since the default class path for a bundle is ., you should be able to load

Re: Felix and Java Web Start

2008-02-26 Thread Richard S. Hall
Vincente Cobra wrote: Hi everybody, I am looking for examples on how to deploy a Java Web Start application using Felix framework. For now, I am using JPF(http://jpf.sourceforge.net). JPF is a simple plugin framework. I don't have any problems with it but I would like to use a standard

Re: Howto TestDebug Felix Bundles with Maven under Netbeans

2008-02-28 Thread Richard S. Hall
Sebastian Docktor wrote: Hi, I played a little with the felix-framework and created a few Bundles. But I always have to copy them manual to a running felix version in order to test them. Is there a way to copystartload them from Maven? In our svn repo we have a Maven plugin started that

Re: Uniquely identifying Bundles

2008-02-28 Thread Richard S. Hall
Chris Graham wrote: I have been playing around with OSGi and Felix a bit. One interesting thing I have noticed is that when a Bundle is installed the 'location' parameter (usually a URL) is used to identify it in the framework. I was wondering if anyone knew why this is used and not the

Re: BundleException: unresolved package while following tutorial

2008-02-29 Thread Richard S. Hall
Well, you shouldn't be importing that package, because no one exports it...it is a private package of the example1 bundle. The only import should be org.osgi.framework, just like is shown in the web page. Are you sure you are getting that when you DON'T import the package? Because it

Re: BundleException: unresolved package while following tutorial

2008-02-29 Thread Richard S. Hall
Could you send a jar tf of your bundle so we can see what is inside of it? - richard jaredmac wrote: To clarify, the manifest that I jar up now looks like this: Bundle-Name: Service listener example Bundle-Description: A bundle that displays messages at startup and when service events occur

Re: BundleException: unresolved package while following tutorial

2008-02-29 Thread Richard S. Hall
In short, it sounds like you packaged the bundle incorrectly. I would guess that your JAR does not contain the class at all or that it is in the wrong package. - richard jaredmac wrote: Richard S. Hall wrote: Well, you shouldn't be importing that package, because no one exports

Re: BundleException: unresolved package while following tutorial

2008-02-29 Thread Richard S. Hall
Yep, that is just what I wrote in another message. :-) - richard jaredmac wrote: Oh boy, my mistake. In my various attempts I had left an error in my JAR command, resulting in the paths within the jar as classes/tutorial/example1 rather than tutorial/example1. Naturally the

Re: Suggestions for tutorials

2008-02-29 Thread Richard S. Hall
jaredmac wrote: After an initial hiccup, I've found these tutorials immensely helpful, and thought I'd offer a few suggestions to make better still. Tutorial Example 1 * Is missing the note about the trailing carriage return (which is rightfully in every other tutorial). Actually, I just

Call for Papers Opens for ApacheCon US 2008

2008-03-01 Thread Richard S. Hall
Call for Papers Opens for ApacheCon US 2008 !REMINDER: this will be a short CFP, ending on 3 April, so please be sure to get your CFP submissions in soon! The Apache Software Foundation (ASF) invites submissions to its official users' conference, ApacheCon US 2008, held 3 November through 7

Re: non-jar as bundle unit

2008-03-03 Thread Richard S. Hall
Well, you can install exploded bundles, i.e., a directory with a META-INF/MANIFEST.MF file, using a URL like reference:file:/path/to/directory/ but that is about it. This probably won't help you. You could achieve what you want if you are willing to create a hacked version of Felix. -

Re: embedding classes / packages in a bundle

2008-03-03 Thread Richard S. Hall
If you are using our maven bundle plugin, then you can just tell it to include any packages you want into the resulting bundle JAR file. The example app itself does this to package all of the Felix packages into the host bundle so that it can run in hosted framework mode. - richard Headley,

Re: embedding classes / packages in a bundle

2008-03-03 Thread Richard S. Hall
Well, you are going to have to decide what you want to be in your bundle. I assume only org.jdesktop.swingx, so you probably want to have your private package include org.jdesktop.swingx.*. I think you should just let javax.swing come from the class path and not try to include this in your

Re: embedding classes / packages in a bundle

2008-03-03 Thread Richard S. Hall
I don't think it is your wording that is causing the problem... If you want to include packages, use Private-Package, however, you run the risk that you will eventually end up including everything in the JRE in your bundle if you are not careful. So, just scope what it is that you want to

Re: File Install bundle

2008-03-05 Thread Richard S. Hall
as patches via JIRA, but if you stick with it and show good coding skills then it shouldn't be long before you become a committer. -- Cheers, Stuart -- Forwarded message -- From: Richard S. Hall [EMAIL PROTECTED] Date: 6 Mar 2008 04:09 Subject: File Install bundle To: [EMAIL

Re: felix and android

2008-03-09 Thread Richard S. Hall
Cristina, Thanks for the documentation contribution...I have started to create a page on this...it is not completed yet, but I will get back to it when I have more time...for the time being I will leave your comment, but when I finish creating the actual page, then I will delete it. Feel

Re: Best practice for non-bundle code to access bundles?

2008-03-12 Thread Richard S. Hall
Did you read the launching and embedding document for the framework? This will give you some ideas. I would give you a pointer, but the web site/wiki seems to be acting up right now. - richard jaredmac wrote: I have an application in which non-bundle code would like to access registered

Re: Best practice for non-bundle code to access bundles?

2008-03-12 Thread Richard S. Hall
Here is the link: http://cwiki.apache.org/FELIX/launching-and-embedding-apache-felix.html - richard jaredmac wrote: I have an application in which non-bundle code would like to access registered services/bundles loaded by Felix. For example, I have Bundle X whose activate() method gets a

Re: Are iPOJO objects really POJOs

2008-03-14 Thread Richard S. Hall
For a simple example, if you had a component like this: public class MyComponent { private LogService log; public MyComponent() { } public MyComponent(LogService log) { this.log = log; } public void doBusinessLogic() { log.log(LogService.INFO, Business logic

Re: Any way to disable caching in embedded mode?

2008-03-20 Thread Richard S. Hall
Felix doesn't automatically delete the cache. If you want to do that, just modify your application launcher to delete the directory when it completes, as Karl mention belows. Another option, for debugging purposes is to install your bundle JAR file by reference (e.g.,

Re: obr resolving and system packages

2008-03-20 Thread Richard S. Hall
Did you actually try this or are you just making an assumption? OBR treats the locally installed bundles as a repository too. So, if your local system bundle exports javax.swing, then it should resolve the package correctly...at least that is how it is supposed to work. - richard Hampel,

Re: Bundle installing another Bundle

2008-03-26 Thread Richard S. Hall
The following setup should work: 1. Installer bundle dynamically imports the org.osgi.service.cm package. 2. Config admin bundle exports the CM package (or from a separate bundle). 3. Have your installer bundle install and start the CM bundle. 4. Have your installer bundle get a

Re: AW: obr resolving and system packages

2008-03-27 Thread Richard S. Hall
find it from the system bundle? Thank you again for your help, Michael -Ursprüngliche Nachricht- Von: Richard S. Hall [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 20. März 2008 11:08 An: users@felix.apache.org Betreff: Re: obr resolving and system packages Did you actually try

Re: AW: obr resolving and system packages

2008-03-27 Thread Richard S. Hall
; \ javax.naming; \ . Then the OBR Resolver should find it from the system bundle? Thank you again for your help, Michael -Ursprüngliche Nachricht- Von: Richard S. Hall [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 20. März 2008 11:08 An: users@felix.apache.org

Re: Export-Package and classes in bundle

2008-03-29 Thread Richard S. Hall
Sebastien ARBOGAST wrote: I have a bundle with some service interfaces in com.mycompany.myapp and their implementations in com.mycompany.myapp.implSince I only want to export interfaces and not implementations, I add the following directive to maven-bundle-plugin configuration:

Re: Inconsistent artifactId in examples

2008-03-29 Thread Richard S. Hall
Yes, it is inconsistent (extenderbased.* is also this way), but for the example I assumed it was nicer to have simpler names, thus the resulting JAR file names aren't so long. It also simplifies the metadata since the default symbolic name is the artifactId, so it doesn't need to be

Re: [Fwd: Need help on visibility:=reexport]

2008-03-30 Thread Richard S. Hall
Sahoo wrote: Subject: Need help on visibility:=reexport From: Sahoo [EMAIL PROTECTED] Date: Mon, 17 Mar 2008 18:48:57 +0530 To: users@felix.apache.org To: users@felix.apache.org When a bundle uses Require-Bundle along with visibility:=reexport, does it not automatically re-export all the

Re: non-daemon thread in Felix

2008-04-02 Thread Richard S. Hall
I am basically in agreement with Karl. I don't think we need to do much more than document the fact that you can change the daemon status of Felix by starting it from an appropriately configured thread. In truth, I almost feel like it is reasonable to say that the event dispatching thread

Re: Bundle-ActivationPolicy: lazy and start command

2008-04-03 Thread Richard S. Hall
Jacek Laskowski wrote: On Thu, Apr 3, 2008 at 8:07 PM, Richard S. Hall [EMAIL PROTECTED] wrote: Very simple answer: Felix does not yet implement that R4.1 feature... Sorry for now. :-( Is there something similar already available? No there is not. - richard

Re: NoClassDefFoundError for org.w3c.dom.Node

2008-04-15 Thread Richard S. Hall
Ultimately, it is still likely that you have one of the errors that I mention below. Without more detailed debugging, it is hard to know which. - richard Jan Thomä wrote: Richard S. Hall wrote: Jan Thomä wrote: What I don't get is, when a bundle provides the classes needed

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 time

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: NoClassDefFoundError for org.w3c.dom.Node

2008-04-16 Thread Richard S. Hall
Jan Thomä wrote: 1. Misconfigured environment (e.g., not exporting it from the system bundle). How do i know what packages i have to export from the system bundle. Is there a special rule like when X and Y and Z, you have to put this package into FRAMEWORK_PACKAGES ? I've

Re: maven-osgi-plugin 'gone' ?

2008-04-17 Thread Richard S. Hall
It appears to still be in our trunk, so you can always build it yourself if you cannot find it. It is located in trunk/tools/maven2. - richard Rob Lintern wrote: Hi All, We have a project that depends heavily on the deprecated maven-osgi-plugin. I noticed yesterday, after deleting my local

CBSE deadline extended

2008-04-21 Thread Richard S. Hall
FYI, the deadline for CBSE has been extended to May 15th, so researchers doing work on top of OSGi technology still have an opportunity to publish results...please consider submitting a paper. http://comparch2008.ipd.uka.de/CBSE2008 - richard

Re: IllegalStateException: JarContent is not open when updating a bundle

2008-04-23 Thread Richard S. Hall
Which version of Felix are you using? There were some changes in bundle caching lately... - richard Jan Thomä wrote: Hi, i am updating a bundle in Felix by calling bundle.update() and then the refreshPackages method in the PackageAdmin class. I recently added some code to the bundle that

Re: Look And Feel

2008-04-25 Thread Richard S. Hall
Just a guess, but perhaps you are running into class loading issues. I know that Swing plaf infrastructure makes some assumptions about how it can locate required classes -- they think they can ask any class loader to find them and this won't work if the class loader is a bundle. We try to

Re: isAssignableFrom - class loading issues when reloading bundles

2008-04-29 Thread Richard S. Hall
If I am understanding correctly, something seems fishy here. Simply restarting A should not cause a new class loader to be recreated. I believe you should only see a new class loader if you are updating A, for example. Is your description below accurate or are you updating the bundle? -

Re: isAssignableFrom - class loading issues when reloading bundles

2008-04-29 Thread Richard S. Hall
Mark On Wed, Apr 30, 2008 at 3:37 PM, Richard S. Hall [EMAIL PROTECTED] wrote: If I am understanding correctly, something seems fishy here. Simply restarting A should not cause a new class loader to be recreated. I believe you should only see a new class loader if you are updating

Re: isAssignableFrom - class loading issues when reloading bundles

2008-04-29 Thread Richard S. Hall
(A-interface) then you can start/stop/update A or B as much as you like... Yes, this is another good option and is also described in the FAQ... - richard Mark On Wed, Apr 30, 2008 at 3:37 PM, Richard S. Hall [EMAIL PROTECTED] wrote: If I am understanding correctly, something seems fishy

Re: file install and maven

2008-05-05 Thread Richard S. Hall
We haven't officially released it yet...we probably should, but I know Peter wanted to apply one patch to it and there were some others to be considered. Peter has been busy lately and is currently at JavaOne, I believe. We could potentially get a snapshot available, I suppose. I wasn't sure

Re: file install and maven

2008-05-07 Thread Richard S. Hall
Ok, I deployed a snapshot...please file JIRA issues if you run into any difficulties. Thanks. - richard Richard S. Hall wrote: We haven't officially released it yet...we probably should, but I know Peter wanted to apply one patch to it and there were some others to be considered. Peter has

Re: Are service implementors inherently singletons?

2008-05-07 Thread Richard S. Hall
Stuart McCulloch wrote: 2008/5/8 Clement Escoffier [EMAIL PROTECTED]: Hi, Creating instances like this have an inherent problem. You can't assert that you're the only user of the created instances. that's not necessarily a problem - you may actually want global access :) but it's

Re: Are service implementors inherently singletons?

2008-05-08 Thread Richard S. Hall
Stuart McCulloch wrote: 2008/5/8 Richard S. Hall [EMAIL PROTECTED]: Stuart McCulloch wrote: 2008/5/8 Clement Escoffier [EMAIL PROTECTED]: Hi, Creating instances like this have an inherent problem. You can't assert that you're the only user of the created instances

Re: obr for felix bundles?

2008-05-09 Thread Richard S. Hall
There currently is not. We definitely need this. It basically involves determining at least two things: 1. How should we go about generating the repo? * We have the capability to generate OBR repository files, but how do we get one generated for our current set of released

Re: Bundle classpath resource URLs

2008-05-12 Thread Richard S. Hall
Mark Derricutt wrote: Hey all, I notice when I get a Resource URL from a bundle it has a URL looking like bundle://25.1:3/some/object/here - the 25 clearly points to the bundle id, but I'm not sure what the 1:3 points to - is there any documentation on this URL scheme anywhere? There is

Re: Felix OBR newbie question.

2008-05-17 Thread Richard S. Hall
import it...in fact your client bundle should be importing the package no matter what, since bundles should import everything not in java.*... So, it still sounds like something is odd. - richard Thank you! 2008/5/16 Richard S. Hall [EMAIL PROTECTED]: Mathieu Plourde wrote: Hello all

Re: Felix OBR newbie question.

2008-05-17 Thread Richard S. Hall
Richard S. Hall [EMAIL PROTECTED]: Mathieu Plourde wrote: Everything solved! Good, however... - My client bundle was not supposed to import org.apache.felix.bundlerepository, even though I needed the jar in the classpath. That solved the inconsistency problems

Re: Problems with BundleContext.installBundle(String location, InputStream stream)

2008-05-23 Thread Richard S. Hall
In general, you want to have your bundle provide some sort of factory service, from which you can create instances of your desired UPnP control point component. Angelo does a good job of describing this in detail for ManagedServiceFactory. Another, similar approach, is to use iPOJO to define

Re: obr for felix bundles?

2008-05-27 Thread Richard S. Hall
location repository.xml file) upon deplyoment of the SNAPSHOTs... WDYT ? Regards Felix Am Freitag, den 16.05.2008, 10:40 -0400 schrieb Richard S. Hall: If I understand correctly, Clement is proposing something like this: releases/ bundleA-v1/ bundleA-v2/ bundleB-v1

  1   2   3   4   5   6   7   8   9   10   >