What UserAdmin do you use?

2009-06-18 Thread David Leangen
Hello! What are people using for their UserAdmin implementation these days? Currently, I am using an old impl from KF, but it is not satisfactory for my needs. I require a UserAdmin with proper persistence support. Any hints would be most welcome. Thanks! =David --

Re: Newbie question for ClassCastException

2009-06-18 Thread Richard S. Hall
There is no wildcard. You must explicitly declare which packages you want to expose from the class path by adding it to that property. By default, Felix includes all JRE packages for you, but anything else must be specified by you. -> richard On 6/18/09 2:53 PM, Marc-Andre Houle wrote: Great

Re: Newbie question for ClassCastException

2009-06-18 Thread Marc-Andre Houle
Great, this was the problem. My interface was in the same package as the implementation and the maven bundle plugin took the liberty to include the interface into the jar. Thanks for the help, it woked first time when I realized this one and changed the package name. Now, I have a second error t

Re: registring ressource http

2009-06-18 Thread sana
thanks very much guys :) now it works !! 2009/6/18 Rob Walker > in which case - your alias and path can probably both be "/Vue" when you > register the resource. There are other options, but this is the simplest. It > will only work though if it can find the required resource at the registered >

Re: DS or iPOJO or peaberry

2009-06-18 Thread Richard S. Hall
On 6/18/09 11:18 AM, Guillaume Nodet wrote: I guess what I mean is that iPojo imposes some contraints on the pojo you build and wire together. Whereas the goal of blueprint is to be able to wire any legacy code without introducing any dependency on the OSGi API. IPojo hides some of the OSGi inter

Re: DS or iPOJO or peaberry

2009-06-18 Thread Clement Escoffier
On 18.06.2009, at 17:18, Guillaume Nodet wrote: I guess what I mean is that iPojo imposes some contraints on the pojo you build and wire together. Whereas the goal of blueprint is to be able to wire any legacy code without introducing any dependency on the OSGi API. IPojo hides some of the OSGi

Re: DS or iPOJO or peaberry

2009-06-18 Thread Guillaume Nodet
I guess what I mean is that iPojo imposes some contraints on the pojo you build and wire together. Whereas the goal of blueprint is to be able to wire any legacy code without introducing any dependency on the OSGi API. IPojo hides some of the OSGi internals but if you take a look at http://felix.ap

Re: Newbie question for ClassCastException

2009-06-18 Thread Richard S. Hall
If you are creating an embedded instance of Felix and trying to use services from bundles inside of Felix on the outside in your host application, then you have to make sure there is only one copy of the service interface class and everyone is using it. Typically this is done by putting them on

Re: DS or iPOJO or peaberry

2009-06-18 Thread Richard S. Hall
On 6/18/09 10:56 AM, Guillaume Nodet wrote: Yeah, dependency injection, the fact that you can inject much more things than just simple values (collections, maps, arrays. This doesn't make sense to me. Dependency injection is covered by iPOJO. Property injection is no DI, it is configuratio

Re: DS or iPOJO or peaberry

2009-06-18 Thread Guillaume Nodet
Yeah, dependency injection, the fact that you can inject much more things than just simple values (collections, maps, arrays. You can also define custom converters to handle legacy code. On Thu, Jun 18, 2009 at 16:50, Richard S. Hall wrote: > On 6/18/09 10:35 AM, Guillaume Nodet wrote: >> >> FWIW,

Re: DS or iPOJO or peaberry

2009-06-18 Thread Richard S. Hall
On 6/18/09 10:35 AM, Guillaume Nodet wrote: FWIW, Spring-DM is being standardized as Blueprint services. You can find an implementation of the spec (soon to be published) at http://svn.apache.org/repos/asf/geronimo/sandbox/blueprint/ Blueprint is much more powerfull wrt dependency injection t

Re: registring ressource http

2009-06-18 Thread Rob Walker
in which case - your alias and path can probably both be "/Vue" when you register the resource. There are other options, but this is the simplest. It will only work though if it can find the required resource at the registered path + resource path within the bundle JAR that calls registerResour

Newbie question for ClassCastException

2009-06-18 Thread Marc-Andre Houle
I'm sure I am presently asking a really simple question that have been seen a thousand times. But since I don't know where to start with OSGI, I'll ask the question here in hope that one person would help me. We need to build a plugin management for a web application running wicket. It is already

Re: DS or iPOJO or peaberry

2009-06-18 Thread Guillaume Nodet
FWIW, Spring-DM is being standardized as Blueprint services. You can find an implementation of the spec (soon to be published) at http://svn.apache.org/repos/asf/geronimo/sandbox/blueprint/ Blueprint is much more powerfull wrt dependency injection than DS / iPojo. The runtime is < 300k, so it's

Re: registring ressource http

2009-06-18 Thread sana
/Vue is a package contained in my jar , and image.jpg is in /Vue > > > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >

Re: DS or iPOJO or peaberry

2009-06-18 Thread Dmitry Skavish
> > > Unfortunately we can't do bytecode manipulations, so iPOJO is out of the > > question. And I am not really happy with all this iPOJO magic with > private > > fields. > > iPOJO does the manipulation at packaging time (think of it as another > compiler). There is an online manipulator as well b

Re: registring ressource http

2009-06-18 Thread Rob Walker
sana wrote: how can i put image.jpg in my bundle ? jar -? - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: registring ressource http

2009-06-18 Thread sana
how can i put image.jpg in my bundle ? 2009/6/18 Rob Walker > Sana - as the guys say, this will only work if the following resource > exists in the bundle calling registerResource(): > > > /home/sst/Documents/Versions/21-05-09+saufActionParam/MyPoint/src/Vue/image.jpg > > The handling for defaul

Re: registring ressource http

2009-06-18 Thread Rob Walker
Sana - as the guys say, this will only work if the following resource exists in the bundle calling registerResource(): /home/sst/Documents/Versions/21-05-09+saufActionParam/MyPoint/src/Vue/image.jpg The handling for default Http context is to strip the alias from the resource path (i.e leaving

Re: Is it possible to share an object between the host application and an embedded felix instance?

2009-06-18 Thread Markus Michel
Inside my host application I'm using felix 1.8.0. BR, Markus 2009/6/18 Karl Pauls > what version of felix are you using? > > regards, > > Karl > > On Thu, Jun 18, 2009 at 12:22 PM, Markus > Michel wrote: > > I already used this tutorial to create my service. At the end of the > > document I fo

Re: Is it possible to share an object between the host application and an embedded felix instance?

2009-06-18 Thread Karl Pauls
what version of felix are you using? regards, Karl On Thu, Jun 18, 2009 at 12:22 PM, Markus Michel wrote: > I already used this tutorial to create my service. At the end of the > document I found a link to the library transloader, which should solve my > problem. But after trying out this > libr

Re: Is it possible to share an object between the host application and an embedded felix instance?

2009-06-18 Thread Markus Michel
I already used this tutorial to create my service. At the end of the document I found a link to the library transloader, which should solve my problem. But after trying out this library I'm still getting nearly the same error message: org.osgi.framework.BundleException: Activator start error in bu

Re: registring ressource http

2009-06-18 Thread Toni Menzel
Hi Sana, the second parameter (resource) is a bundle resource path and not a file path/folder. Are those resources in you bundle ? If you have "/Vue/img1.jpg,/Vue/img2.jpg" in your bundle, you can refer to it exactly this way. On 6/18/09, sana wrote: > hello, > > i 'm trying to registre a pictur

Re: registring ressource http

2009-06-18 Thread Alin Dreghiciu
I suppose the path you send as second param is a file system path. That will not work only if you have your custom http context and looks up resources in the file system. Here is the part from the specs: "The second parameter is an internal prefix to map this resource to the bundle’s name-space. W

registring ressource http

2009-06-18 Thread sana
hello, i 'm trying to registre a picture like a http ressource http.registerResources("/Vue","/home/sst/Documents/Versions/21-05-09+saufActionParam/MyPoint/src/Vue", null); and i want to use it in the background of my servlet . pw.print(""); pw.print(""); pw.print("");

Re: Is it possible to share an object between the host application and an embedded felix instance?

2009-06-18 Thread Karl Pauls
Yes, have a look at: http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html regards, Karl On Thu, Jun 18, 2009 at 9:26 AM, Markus Michel wrote: > Hi there! > > Inside my host application I tried implement a simple pushService, which > shall be used to transfer an insta

Is it possible to share an object between the host application and an embedded felix instance?

2009-06-18 Thread Markus Michel
Hi there! Inside my host application I tried implement a simple pushService, which shall be used to transfer an instance of a class named Vehicle to the OSGi world, by providing a set and get method. To be able to use the service I exported both the service interface and the Vehicle class to a jar

Re: DS or iPOJO or peaberry

2009-06-18 Thread Karl Pauls
On Thu, Jun 18, 2009 at 4:45 AM, Dmitry Skavish wrote: > On Mon, Jun 15, 2009 at 10:13 AM, Todor Boev wrote: > >> Dmitry Skavish wrote: >> >>> Hello all, >>> I am trying to understand the differences between those technologies, but >>> I >>> could not find any article which compares all them side