How to use JAAS on a HttpService registered servlet.

2011-12-01 Thread Jordi Deu-Pons
Hi, I cannot fully understand how to use JAAS from a servlet that I'm registering in a HttpService. I've succeeded doing the authentication. For this I pass a custom HttpContext when I'm registering the servlet. But now I don't understand how can I get the different Roles of the

Bouncy Castle JCE with Felix

2011-12-01 Thread Caspar MacRae
Hi, I've an issue with Bouncy Castle JCE running with Felix (I found this while trying to extend our custom Karaf distro, it seems to be a problem with Karaf 2.2.0 (Felix 3.0.8) through to 2.2.4 (Felix 3.0.9) but doesn't happen when I use Equinox. Could not create framework:

Re: Bouncy Castle JCE with Felix

2011-12-01 Thread Guillaume Nodet
It definitely looks like a bug in Felix. Please raise a JIRA for it. On Thu, Dec 1, 2011 at 17:08, Caspar MacRae ear...@gmail.com wrote: Hi, I've an issue with Bouncy Castle JCE running with Felix (I found this while trying to extend our custom Karaf distro, it seems to be a problem with

Re: Bouncy Castle JCE with Felix

2011-12-01 Thread Caspar MacRae
Thanks Guillaume, issue created at https://issues.apache.org/jira/browse/FELIX-3250 On 1 December 2011 16:18, Guillaume Nodet gno...@gmail.com wrote: It definitely looks like a bug in Felix. Please raise a JIRA for it. On Thu, Dec 1, 2011 at 17:08, Caspar MacRae ear...@gmail.com wrote:

Re: Bouncy Castle JCE with Felix

2011-12-01 Thread Caspar MacRae
Karl Pauls set me straight on that ticket: my mistake, I was using semi-colons instead of commas to delimit the packages On 1 December 2011 16:30, Caspar MacRae ear...@gmail.com wrote: Thanks Guillaume, issue created at https://issues.apache.org/jira/browse/FELIX-3250 On 1 December 2011

Re: karaf best practices: bundle hot swap?

2011-12-01 Thread Andrei Pozolotin
Achim: wow, cave sounds cool; thank you for pointing out; Andrei. Original Message Subject: Re: karaf best practices: bundle hot swap? From: Achim Nierbeck bcanh...@googlemail.com To: user@karaf.apache.org Date: Thu 01 Dec 2011 01:52:26 AM CST Hi Andrei, 2011/11/30

Re: karaf and tibco ems

2011-12-01 Thread mikevan
surya, I think I know what the issue is, but to confirm it, could you please send the full exception you are getting to this user-group? - Original Message - From: surya aditya [via Karaf] ml-node+s922171n3552646...@n3.nabble.com To: mikevan mvangeert...@comcast.net Sent:

Re: karaf and tibco ems

2011-12-01 Thread mikevan
First, try to manually verify that the tibco jar file you're using actually contains the correct class: com.tibco.tibjms.naming. TibjmsInitialContextFactory .  Once you've done that, if the class is present, verify that the package has been properly exported into your environment by

Re: karaf and tibco ems

2011-12-01 Thread surya aditya
I verified the class exists in jar. on executing the 'exports'. I get the following: karaf@root exports | grep com.tibco.tibjms 45 com.tibco.tibjms; version=0.0.0 45 com.tibco.tibjms.naming; version=0.0.0 45 com.tibco.tibjms.naming.tibjmsnaming; version=0.0.0 i see version=0.0.0, but

Re: karaf and tibco ems

2011-12-01 Thread mikevan
Surya, The version number isn't the issue. When you put a package without a version number in your Import-Packages section, and then deploy it into OSGi, per the spec, the OSGi container will look for version 0.0.0 and then increment up until it finds the first instance of that package. 

Re: karaf and tibco ems

2011-12-01 Thread Andreas Pieber
Sorry for the standard question, but does the bundle containing the code you've posted in your first mail imports com.tibco.tibjms.naming? Kind regards Andreas On Dec 1, 2011 9:31 PM, surya aditya surya46...@gmail.com wrote: I verified the class exists in jar. on executing the 'exports'. I get

Re: karaf and tibco ems

2011-12-01 Thread mikevan
Andreas, It looks like it should from reading his Import-Package statement. However, if the maven-bundle-plugin isn't working, it wouldn't be creating the MANIFEST.MF file properly.  Perhaps he should look at the .jar file created to verify that the MANIFEST.MF is actually being created.

Re: karaf and tibco ems

2011-12-01 Thread surya aditya
Hi: Tried the following: 1. MyApp bundle does import the com.tibco.tibjms.naming package. I still get 'ClassNotFound' exception, double checked if the tibco ems libraray jar has the file in questions and it does. Fyi Tibco Ems jar is copied into /deploy folder. Tibco Ems bundle is active, on