Re: Using XStream in OSGi Project

2013-01-24 Thread Jordi Deu-Pons
Hi Dhiego, that means that the class loader of the XStream bundle don't have access to your Project2 class loader. You need to register a composed class loader to XStream. Have a look to this code:

Re: Using XStream in OSGi Project

2013-01-24 Thread Dhiego Abrantes de Oliveira Martins
Thanks Jodi! Is the best approach to work with xstream? Can I just start xstream bundle? I'm was trying to find some approach more 'automatic', like: a) embbed into project1 Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com

Re: Using XStream in OSGi Project

2013-01-24 Thread Dhiego Abrantes de Oliveira Martins
Thanks Jordi! Is the best approach to work with xstream? Can I just start xstream bundle? I'm was trying to find some approach more 'automatic', like: a) embbed xstream libs into project1; or just install xstream bundles in container to project1 use it automatically; The classloader solution is

Is it safe to use the same dictionary to register multiple services ?

2013-01-24 Thread Christopher BROWN
Hello, I am implementing a bit of code with Apache Felix and in a specific code block, I register multiple services, all with the same non-default service ranking. I read the registering services part of the OSGi 4.3 specifications, and it seems to suggest that implementations will copy the

osgi.identity namespace issues with Apache Aries subsystem impl and Felix-4.1.0-Snapshot

2013-01-24 Thread Christian Berger
Hi, I've got some trouble while I was playing with Apache Aries Subsystem and Felix 4.1.0-Snapshot. After further investigation, I was able to find out that my instance of BundleRevision doesn't belong to the namespace osgi.identity. So my question is: Are you still implementing the new

Re: Using XStream in OSGi Project

2013-01-24 Thread Jordi Deu-Pons
The classloader solution is a workaround? I don't think it's a workaround. Because of the OSGi class loading mechanism, there is a need to use the correct class loader when you are unserializing your class instance. I don't known if there is a better way to do this. -- a10! i fins aviat.

Re: Is it safe to use the same dictionary to register multiple services ?

2013-01-24 Thread Richard S. Hall
On 1/24/13 06:42 , Christopher BROWN wrote: Hello, I am implementing a bit of code with Apache Felix and in a specific code block, I register multiple services, all with the same non-default service ranking. I read the registering services part of the OSGi 4.3 specifications, and it seems to

Re: osgi.identity namespace issues with Apache Aries subsystem impl and Felix-4.1.0-Snapshot

2013-01-24 Thread Richard S. Hall
On 1/24/13 07:44 , Christian Berger wrote: Hi, I've got some trouble while I was playing with Apache Aries Subsystem and Felix 4.1.0-Snapshot. After further investigation, I was able to find out that my instance of BundleRevision doesn't belong to the namespace osgi.identity. So my

Re: Felix Event Admin Service and Configuraion Change Events

2013-01-24 Thread Felix Meschberger
Hi, There seems to never have been a release of this bundle -- apparently nobody ever needed it ... interesting... So you can get it from the source repository and build it yourself. (Maybe it is not update to date the recently added LOCATION_CHANGED event is missing. Regards Felix Am