Re: Problem reusing JAAS login modules

2010-12-28 Thread Guillaume Nodet
It's certainly a missing import package. When drpped into the deploy folder, the deployer will automatically add the required import packages. On Tuesday, December 28, 2010, Rafael Marins rafael.mar...@neociclo.com wrote: Hi, When using the PropertiesLoginModule from a blueprint file in my

Re: Problem reusing JAAS login modules

2010-12-28 Thread Rafael Marins
Hi JB, Thanks everybody for all replies. I suspected about it and included org.apache.karaf.modules.* to the bundle imports, but didn't worked. The maven-bundle-plugin simply don't put that import statement it in the Manifest as there is no Java package imports. See the pom statements: From

Re: Problem reusing JAAS login modules

2010-12-28 Thread Andreas Pieber
maybe I'm blind, but shouldn't this line: Import-Package${accord.osgi.import}/Import-Package look like: Import-Package${accord.osgi.import.pkg}/Import-Package kind regards, andreas On Tue, Dec 28, 2010 at 09:25:24AM -0200, Rafael Marins wrote: Hi JB, Thanks everybody for all replies.

Re: Problem reusing JAAS login modules

2010-12-28 Thread Rafael Marins
Hi Andreas, There is a accord.osgi.import${accord.osgi.import.pkg}/accord.osgi.import... almost the same result. Best regards, -- Rafael Marins On Dec 28, 2010, at 9:32 AM, Andreas Pieber wrote: maybe I'm blind, but shouldn't this line:

Re: Problem reusing JAAS login modules

2010-12-28 Thread Rafael Marins
Hi Guillaume, When dropped into the deploy/ folder, the deployer is adding Karaf JAAS Config and OSGI Blueprint Services imports, as paste below: Imported Packages (accord-jaas-module.xml - from webconsole) org.apache.aries.blueprint,version=0.2.0.incubating from

Re: Problem reusing JAAS login modules

2010-12-28 Thread Rafael Marins
Hi Andreas, Sure, check it out here: http://pastebin.com/fx9JF873 Best regards, -- Rafael Marins On Dec 28, 2010, at 9:43 AM, Andreas Pieber wrote: Can you upload the effective pom for org.neociclo.accord.server.server-core [1]? kind regards, andreas [1]

Re: Problem reusing JAAS login modules

2010-12-28 Thread Andreas Pieber
your pom looks ok so far... The imports * is not taken into account (not sure y) but the easiest solution is to 1) put your blueprint into deploy 2) get all imported packages 3) explicitly add those packages as imports (do not use *) (e.g. use .karaf.config and XXX.karaf.config.impl, ...).

Re: Problem reusing JAAS login modules

2010-12-28 Thread Rafael Marins
Hi Andreas, Changing the imports to meet the specific package just worked for my bundle, which encompass both the jaas configuration blueprint xml and the oftp-context.xml with Camel routes. Thanks everybody!!! What did the trick was simply the: accord.osgi.import.additional

Re: Problem reusing JAAS login modules

2010-12-28 Thread Andreas Pieber
Not ad-hoc, but if you can provide a very simple example to reproduce the problem and create an issue for it I can take a look at it. kind regards, andreas On Tue, Dec 28, 2010 at 02:52:21PM -0200, Rafael Marins wrote: Hi Andreas, Changing the imports to meet the specific package just worked

Re: Problem reusing JAAS login modules

2010-12-28 Thread Rafael Marins
Hi Andreas, Filled the issue KARAF-344 to report and track the problem. Best, -- Rafael Marins On Dec 28, 2010, at 4:28 PM, Rafael Marins wrote: Hi Andreas, I've prepared the attached project to test this behavior. You can build and simply follow the steps: ka...@root osgi:install

Re: Problem reusing JAAS login modules

2010-12-27 Thread Jean-Baptiste Onofré
Hi Rafael, it's certainly due to classloader issue. Could you paste your bundle pom to see the Import-Package statement ? Regards JB On 12/28/2010 06:53 AM, Rafael Marins wrote: Hi, When using the PropertiesLoginModule from a blueprint file in my bundle located at the /OSGI-INF/blueprint/