Re: Console calling OSGi bundle returns “cannot be cast to…”

2013-02-17 Thread Richard S. Hall
On 2/16/13 22:02, Dhiego Abrantes de Oliveira Martins wrote: What do you mean with 'framework' ? OSGi framework...in this case Felix framework. - richard regards, Dhiego. 2013/2/12 Richard S. Hall he...@ungoverned.org You are loading the class from two different class loaders, thus

Re: Console calling OSGi bundle returns “cannot be cast to…”

2013-02-16 Thread Dhiego Abrantes de Oliveira Martins
What do you mean with 'framework' ? regards, Dhiego. 2013/2/12 Richard S. Hall he...@ungoverned.org You are loading the class from two different class loaders, thus they are not compatible with each other. You cannot import packages from bundles when you are on the outside of the

Console calling OSGi bundle returns “cannot be cast to…”

2013-02-12 Thread Imóveis Nacionais
I have 2 bundles, one that supplys a service and the other that calls the service. When both are installed and started in felix framework everything works. Now, I would like to drop/forget the client bundle and create a console app to launch felix, install server bundle and call the service.

Re: Console calling OSGi bundle returns “cannot be cast to…”

2013-02-12 Thread Richard S. Hall
You are loading the class from two different class loaders, thus they are not compatible with each other. You cannot import packages from bundles when you are on the outside of the framework, such as you are trying to do by moving your client to the outside. The only way you can get this to