You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Milan Tomic <to...@yahoo.com> on 2015/02/04 10:36:57 UTC

org.osgi.enterprise + PAXEXAM

Hi,

If I add org.osgi.enterprise to my PAX EXAM configuration:

return CoreOptions.options(...    mavenBundle().groupId("org.osgi").artifactId("org.osgi.enterprise").version("5.0.0").start(),
  ...) 
   then Karaf which runs on JUnit/PAX-EXAM acts strange: for example, there is no "bundle:list" command (it dissapear). 
  When I run standalone Karaf with same settings (I add org.osgi.compendium in my .kar file) everything works fine. 
  Thank you in advance for any hint, Milan

Re: org.osgi.enterprise + PAXEXAM

Posted by Milan Tomic <to...@yahoo.com>.
Sorry for the typo. This:

(I add org.osgi.compendium in my .kar file)
was typo and should be:
(I add org.osgi.enterprise in my .kar file)

 

     On Wednesday, February 4, 2015 10:36 AM, Milan Tomic <to...@yahoo.com> wrote:
   

 Hi,

If I add org.osgi.enterprise to my PAX EXAM configuration:

return CoreOptions.options(...    mavenBundle().groupId("org.osgi").artifactId("org.osgi.enterprise").version("5.0.0").start(),
  ...) 
   then Karaf which runs on JUnit/PAX-EXAM acts strange: for example, there is no "bundle:list" command (it dissapear). 
  When I run standalone Karaf with same settings (I add org.osgi.compendium in my .kar file) everything works fine. 
  Thank you in advance for any hint, Milan


   

Re: org.osgi.enterprise + PAXEXAM

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Milan,

Why do you need enterprise bundle and what's the Karaf version ?

Most of spec are already provided by other bundles (it's the purpose of 
the enterprise features).
Maybe you start enterprise bundle too early. Try to install enterprise 
bundle after Karaf startup (using KarafOption).

Regards
JB

On 02/04/2015 10:36 AM, Milan Tomic wrote:
> Hi,
>
> If I add org.osgi.enterprise to my PAX EXAM configuration:
>
> return CoreOptions.options(...
> mavenBundle().groupId("org.osgi").artifactId("org.osgi.enterprise").version("5.0.0").start(),
> ...)
>
> then Karaf which runs on JUnit/PAX-EXAM acts strange: for example, there
> is no "bundle:list" command (it dissapear).
>
> When I run standalone Karaf with same settings (I add
> org.osgi.compendium in my .kar file) everything works fine.
>
> Thank you in advance for any hint,
> Milan
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com