You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Charles Moulliard <ch...@gmail.com> on 2014/01/17 09:27:20 UTC

Pax Exam issue / Karaf 2.3.x

Hi,

I experience a strange issue using pax-exam with Karaf 2.3.x

The following features file is available in my local maven repo

mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features

-rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
/Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml

but when pax-exam tries to find the features, I get ERRORS (feature null
not found, feature drools-module not found, ...) from FeaturesServiceImpl
even if the features are well present in features file

example

    <feature name="drools-module" version="6.1.0-SNAPSHOT"
description="Drools core">
        <feature version="6.1.0-SNAPSHOT">drools-common</feature>
        <feature version="6.1.0-SNAPSHOT">kie</feature>
        <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
        <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>

<bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
    </feature>

https://gist.github.com/8470059

Line 1133 -->
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java

As this is really hard to debug Pax-Exam + Karaf, does anybody has an idea
bout the issue  ? Could it be possible that pax-exam does not look into my
local repo ? Can I tell / force pax-exam to look into my local repo ?

Regards,

-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Get also the message error even if I add as parameter my local maven repo
for pax

-Dorg.ops4j.pax.url.mvn.localRepository=/Users/chmoulli/.m2/repository/


On Fri, Jan 17, 2014 at 9:27 AM, Charles Moulliard <ch...@gmail.com> wrote:

> Hi,
>
> I experience a strange issue using pax-exam with Karaf 2.3.x
>
> The following features file is available in my local maven repo
>
> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>
> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
> /Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml
>
> but when pax-exam tries to find the features, I get ERRORS (feature null
> not found, feature drools-module not found, ...) from FeaturesServiceImpl
> even if the features are well present in features file
>
> example
>
>     <feature name="drools-module" version="6.1.0-SNAPSHOT"
> description="Drools core">
>         <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>         <feature version="6.1.0-SNAPSHOT">kie</feature>
>         <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>         <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>
> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>     </feature>
>
> https://gist.github.com/8470059
>
> Line 1133 -->
> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>
> As this is really hard to debug Pax-Exam + Karaf, does anybody has an idea
> bout the issue  ? Could it be possible that pax-exam does not look into my
> local repo ? Can I tell / force pax-exam to look into my local repo ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Achim Nierbeck <bc...@googlemail.com>.
sorry right now I'm out of ideas ... :/


2014/1/17 Charles Moulliard <ch...@gmail.com>

> No more ideas ?
>
>
> On Fri, Jan 17, 2014 at 10:36 AM, Charles Moulliard <ch...@gmail.com>wrote:
>
>> I have added the dependency about drools features to my pom but issue is
>> still there
>>
>>         <dependency>
>>             <groupId>org.drools</groupId>
>>             <artifactId>drools-karaf-features</artifactId>
>>             <type>xml</type>
>>             <classifier>features</classifier>
>>             <scope>test</scope>
>>             <version>${project.version}</version>
>>         </dependency>
>>
>> https://gist.github.com/8470631
>>
>>
>>
>> On Fri, Jan 17, 2014 at 10:19 AM, Charles Moulliard <ch...@gmail.com>wrote:
>>
>>> Thx ;-)
>>>
>>>
>>> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>>>
>>>> Add the feature dependency in your pom. It's where Pax Exam is looking
>>>> for feature.
>>>>
>>>>
>>>> On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>>>
>>>>> The following features file is available in my local maven repo
>>>>>
>>>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>>>
>>>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>>>> /Users/chmoulli/.m2/repository/org/drools/drools-
>>>>> karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-
>>>>> SNAPSHOT-features.xml
>>>>>
>>>>> but when pax-exam tries to find the features, I get ERRORS (feature
>>>>> null
>>>>> not found, feature drools-module not found, ...) from
>>>>> FeaturesServiceImpl even if the features are well present in features
>>>>> file
>>>>>
>>>>> example
>>>>>
>>>>>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>>>> description="Drools core">
>>>>>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>>>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>>>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>>>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</
>>>>> bundle>
>>>>>
>>>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>>>>      </feature>
>>>>>
>>>>> https://gist.github.com/8470059
>>>>>
>>>>> Line 1133 -->
>>>>> http://grepcode.com/file/repo1.maven.org/maven2/org.
>>>>> apache.karaf.features/org.apache.karaf.features.core/2.
>>>>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>>>
>>>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>>>> idea bout the issue  ? Could it be possible that pax-exam does not look
>>>>> into my local repo ? Can I tell / force pax-exam to look into my local
>>>>> repo ?
>>>>>
>>>>> Regards,
>>>>>
>>>>> --
>>>>> Charles Moulliard
>>>>> Apache Committer / Architect @RedHat
>>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>>>> <http://cmoulliard.github.io>
>>>>>
>>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>>
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Architect @RedHat
>>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>>
>>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Code is here :
https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/drools-osgi/drools-karaf-itest


On Fri, Jan 17, 2014 at 2:56 PM, Filippo Balicchia <fb...@gmail.com>wrote:

> Hi,
> Could you please share your repo if possible.
>
> I can try to reproduce the problem on my console and attempt to resolve
>
> Regards
>
> --Filippo
>
>
> 2014/1/17 Charles Moulliard <ch...@gmail.com>
>
>> No more ideas ?
>>
>>
>> On Fri, Jan 17, 2014 at 10:36 AM, Charles Moulliard <ch...@gmail.com>wrote:
>>
>>> I have added the dependency about drools features to my pom but issue is
>>> still there
>>>
>>>         <dependency>
>>>             <groupId>org.drools</groupId>
>>>             <artifactId>drools-karaf-features</artifactId>
>>>             <type>xml</type>
>>>             <classifier>features</classifier>
>>>             <scope>test</scope>
>>>             <version>${project.version}</version>
>>>         </dependency>
>>>
>>> https://gist.github.com/8470631
>>>
>>>
>>>
>>> On Fri, Jan 17, 2014 at 10:19 AM, Charles Moulliard <ch...@gmail.com>wrote:
>>>
>>>> Thx ;-)
>>>>
>>>>
>>>> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>>>> > wrote:
>>>>
>>>>> Add the feature dependency in your pom. It's where Pax Exam is looking
>>>>> for feature.
>>>>>
>>>>>
>>>>> On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>>>>
>>>>>> The following features file is available in my local maven repo
>>>>>>
>>>>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>>>>
>>>>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>>>>> /Users/chmoulli/.m2/repository/org/drools/drools-
>>>>>> karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-
>>>>>> SNAPSHOT-features.xml
>>>>>>
>>>>>> but when pax-exam tries to find the features, I get ERRORS (feature
>>>>>> null
>>>>>> not found, feature drools-module not found, ...) from
>>>>>> FeaturesServiceImpl even if the features are well present in features
>>>>>> file
>>>>>>
>>>>>> example
>>>>>>
>>>>>>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>>>>> description="Drools core">
>>>>>>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>>>>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>>>>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>>>>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</
>>>>>> bundle>
>>>>>>
>>>>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-
>>>>>> SNAPSHOT</bundle>
>>>>>>      </feature>
>>>>>>
>>>>>> https://gist.github.com/8470059
>>>>>>
>>>>>> Line 1133 -->
>>>>>> http://grepcode.com/file/repo1.maven.org/maven2/org.
>>>>>> apache.karaf.features/org.apache.karaf.features.core/2.
>>>>>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>>>>
>>>>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>>>>> idea bout the issue  ? Could it be possible that pax-exam does not
>>>>>> look
>>>>>> into my local repo ? Can I tell / force pax-exam to look into my local
>>>>>> repo ?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> Charles Moulliard
>>>>>> Apache Committer / Architect @RedHat
>>>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>>>>> <http://cmoulliard.github.io>
>>>>>>
>>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Charles Moulliard
>>>> Apache Committer / Architect @RedHat
>>>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>>>
>>>>
>>>
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Architect @RedHat
>>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>>
>>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Filippo Balicchia <fb...@gmail.com>.
Hi,
Could you please share your repo if possible.

I can try to reproduce the problem on my console and attempt to resolve

Regards

--Filippo


2014/1/17 Charles Moulliard <ch...@gmail.com>

> No more ideas ?
>
>
> On Fri, Jan 17, 2014 at 10:36 AM, Charles Moulliard <ch...@gmail.com>wrote:
>
>> I have added the dependency about drools features to my pom but issue is
>> still there
>>
>>         <dependency>
>>             <groupId>org.drools</groupId>
>>             <artifactId>drools-karaf-features</artifactId>
>>             <type>xml</type>
>>             <classifier>features</classifier>
>>             <scope>test</scope>
>>             <version>${project.version}</version>
>>         </dependency>
>>
>> https://gist.github.com/8470631
>>
>>
>>
>> On Fri, Jan 17, 2014 at 10:19 AM, Charles Moulliard <ch...@gmail.com>wrote:
>>
>>> Thx ;-)
>>>
>>>
>>> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>>>
>>>> Add the feature dependency in your pom. It's where Pax Exam is looking
>>>> for feature.
>>>>
>>>>
>>>> On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>>>
>>>>> The following features file is available in my local maven repo
>>>>>
>>>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>>>
>>>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>>>> /Users/chmoulli/.m2/repository/org/drools/drools-
>>>>> karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-
>>>>> SNAPSHOT-features.xml
>>>>>
>>>>> but when pax-exam tries to find the features, I get ERRORS (feature
>>>>> null
>>>>> not found, feature drools-module not found, ...) from
>>>>> FeaturesServiceImpl even if the features are well present in features
>>>>> file
>>>>>
>>>>> example
>>>>>
>>>>>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>>>> description="Drools core">
>>>>>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>>>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>>>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>>>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</
>>>>> bundle>
>>>>>
>>>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>>>>      </feature>
>>>>>
>>>>> https://gist.github.com/8470059
>>>>>
>>>>> Line 1133 -->
>>>>> http://grepcode.com/file/repo1.maven.org/maven2/org.
>>>>> apache.karaf.features/org.apache.karaf.features.core/2.
>>>>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>>>
>>>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>>>> idea bout the issue  ? Could it be possible that pax-exam does not look
>>>>> into my local repo ? Can I tell / force pax-exam to look into my local
>>>>> repo ?
>>>>>
>>>>> Regards,
>>>>>
>>>>> --
>>>>> Charles Moulliard
>>>>> Apache Committer / Architect @RedHat
>>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>>>> <http://cmoulliard.github.io>
>>>>>
>>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>>
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Architect @RedHat
>>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>>
>>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
No more ideas ?


On Fri, Jan 17, 2014 at 10:36 AM, Charles Moulliard <ch...@gmail.com>wrote:

> I have added the dependency about drools features to my pom but issue is
> still there
>
>         <dependency>
>             <groupId>org.drools</groupId>
>             <artifactId>drools-karaf-features</artifactId>
>             <type>xml</type>
>             <classifier>features</classifier>
>             <scope>test</scope>
>             <version>${project.version}</version>
>         </dependency>
>
> https://gist.github.com/8470631
>
>
>
> On Fri, Jan 17, 2014 at 10:19 AM, Charles Moulliard <ch...@gmail.com>wrote:
>
>> Thx ;-)
>>
>>
>> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>>
>>> Add the feature dependency in your pom. It's where Pax Exam is looking
>>> for feature.
>>>
>>>
>>> On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>>
>>>> Hi,
>>>>
>>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>>
>>>> The following features file is available in my local maven repo
>>>>
>>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>>
>>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>>> /Users/chmoulli/.m2/repository/org/drools/drools-
>>>> karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-
>>>> SNAPSHOT-features.xml
>>>>
>>>> but when pax-exam tries to find the features, I get ERRORS (feature null
>>>> not found, feature drools-module not found, ...) from
>>>> FeaturesServiceImpl even if the features are well present in features
>>>> file
>>>>
>>>> example
>>>>
>>>>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>>> description="Drools core">
>>>>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>>>>
>>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>>>      </feature>
>>>>
>>>> https://gist.github.com/8470059
>>>>
>>>> Line 1133 -->
>>>> http://grepcode.com/file/repo1.maven.org/maven2/org.
>>>> apache.karaf.features/org.apache.karaf.features.core/2.
>>>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>>
>>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>>> idea bout the issue  ? Could it be possible that pax-exam does not look
>>>> into my local repo ? Can I tell / force pax-exam to look into my local
>>>> repo ?
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Charles Moulliard
>>>> Apache Committer / Architect @RedHat
>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>>> <http://cmoulliard.github.io>
>>>>
>>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
I have added the dependency about drools features to my pom but issue is
still there

        <dependency>
            <groupId>org.drools</groupId>
            <artifactId>drools-karaf-features</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
            <scope>test</scope>
            <version>${project.version}</version>
        </dependency>

https://gist.github.com/8470631



On Fri, Jan 17, 2014 at 10:19 AM, Charles Moulliard <ch...@gmail.com>wrote:

> Thx ;-)
>
>
> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>
>> Add the feature dependency in your pom. It's where Pax Exam is looking
>> for feature.
>>
>>
>> On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>
>>> Hi,
>>>
>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>
>>> The following features file is available in my local maven repo
>>>
>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>
>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>> /Users/chmoulli/.m2/repository/org/drools/drools-
>>> karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-
>>> SNAPSHOT-features.xml
>>>
>>> but when pax-exam tries to find the features, I get ERRORS (feature null
>>> not found, feature drools-module not found, ...) from
>>> FeaturesServiceImpl even if the features are well present in features
>>> file
>>>
>>> example
>>>
>>>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>> description="Drools core">
>>>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>>>
>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>>      </feature>
>>>
>>> https://gist.github.com/8470059
>>>
>>> Line 1133 -->
>>> http://grepcode.com/file/repo1.maven.org/maven2/org.
>>> apache.karaf.features/org.apache.karaf.features.core/2.
>>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>
>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>> idea bout the issue  ? Could it be possible that pax-exam does not look
>>> into my local repo ? Can I tell / force pax-exam to look into my local
>>> repo ?
>>>
>>> Regards,
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Architect @RedHat
>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>> <http://cmoulliard.github.io>
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Ryan is right, the type is not correct.

See my previous mail about classifier and type.

Regards
JB

On 01/17/2014 04:02 PM, Ryan Moquin wrote:
> What happens if in your unit test you execute a "feature:list" on Karaf
> and make sure the feature xml is loaded?  I could be wrong, but isn't
> the pax-exam test container you are using meant for karaf 3.0.0?
>
> In KarafIntegrationTestSupport near the buttom, this looks incorrect:
> returnscanFeatures(getFeatureUrl("org.drools","drools-karaf-features").type("xml/features")
> Type should be just xml right? "features" is the classifier. Maybe
> that's your problem?
>
> As a side note, the repository entry at the bottom of your itest pom can
> be moved, it's redundant.  I also wouldn't make your feature a test
> dependency, just in case.
>
> Ryan
>
>
> On Fri, Jan 17, 2014 at 9:24 AM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
>     Could you try to "inject" the feature URL to Pax Exam with something
>     like:
>
>          @Configuration
>          public Option[] config() {
>              Option[] options = new Option[]{
>                       keepRuntimeFolder(),
>     logLevel(LogLevelOption.__LogLevel.ERROR),
>
>     editConfigurationFileExtend("__etc/system.properties",
>     "my.feature.url",
>     maven().groupId("your").__artifactId("your").__versionAsInProject().__classifier("features").type("__xml").getURL()),
>
>     editConfigurationFileExtend("__etc/config.properties",
>     "org.apache.aries.blueprint.__synchronous", "true")
>              };
>              String debug = System.getProperty("debugMain"__);
>              if (debug != null) {
>                  int l = options.length;
>                  options = Arrays.copyOf(options, l + 1);
>                  options[l] =
>     KarafDistributionOption.__debugConfiguration();
>              }
>              return options;
>          }
>
>     How do you install the feature ? using executeCommand ?
>
>     Did you add the feature in etc/org.apache.karaf.features.__cfg if
>     you don't use executeCommand ?
>     You can modify the etc/org.apache.karaf.features.__cfg in your
>     project and inject using editConfigurationFileExtend or Append (as I
>     did in my example).
>
>     Regards
>     JB
>
>
>     On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>
>         Thx ;-)
>
>
>         On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré
>         <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>
>              Add the feature dependency in your pom. It's where Pax Exam is
>              looking for feature.
>
>
>              On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>
>                  Hi,
>
>                  I experience a strange issue using pax-exam with Karaf
>         2.3.x
>
>                  The following features file is available in my local
>         maven repo
>
>
>         mvn:org.drools/drools-karaf-____features/6.1.0-SNAPSHOT/xml/____features
>
>
>                  -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>
>         /Users/chmoulli/.m2/____repository/org/drools/drools-____karaf-features/6.1.0-__SNAPSHOT/__drools-karaf-__features-6.1.0-__SNAPSHOT-__features.xml
>
>
>                  but when pax-exam tries to find the features, I get ERRORS
>                  (feature null
>                  not found, feature drools-module not found, ...) from
>                  FeaturesServiceImpl even if the features are well
>         present in
>                  features file
>
>                  example
>
>                        <feature name="drools-module"
>         version="6.1.0-SNAPSHOT"
>                  description="Drools core">
>                            <feature
>                  version="6.1.0-SNAPSHOT">____drools-common</feature>
>                            <feature
>         version="6.1.0-SNAPSHOT">kie</____feature>
>
>
>         <bundle>mvn:org.drools/drools-____core/6.1.0-SNAPSHOT</bundle>
>
>
>         <bundle>mvn:org.drools/drools-____compiler/6.1.0-SNAPSHOT</____bundle>
>
>
>         <bundle>mvn:org.drools/drools-____osgi-integration/6.1.0-____SNAPSHOT</bundle>
>                        </feature>
>
>         https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>
>         <https://gist.github.com/__8470059
>         <https://gist.github.com/8470059>>
>
>                  Line 1133 -->
>         http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>
>
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>         <http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>
>
>                  As this is really hard to debug Pax-Exam + Karaf, does
>         anybody
>                  has an
>                  idea bout the issue  ? Could it be possible that
>         pax-exam does
>                  not look
>                  into my local repo ? Can I tell / force pax-exam to
>         look into my
>                  local
>                  repo ?
>
>                  Regards,
>
>                  --
>                  Charles Moulliard
>                  Apache Committer / Architect @RedHat
>                  Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>                  <http://cmoulliard.github.io>
>
>
>              --
>              Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>
>         http://blog.nanthrax.net
>              Talend - http://www.talend.com
>
>
>
>
>         --
>         Charles Moulliard
>         Apache Committer / Architect @RedHat
>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>         <http://cmoulliard.github.io>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Ryan Moquin <fr...@gmail.com>.
What happens if in your unit test you execute a "feature:list" on Karaf and
make sure the feature xml is loaded?  I could be wrong, but isn't the
pax-exam test container you are using meant for karaf 3.0.0?

In KarafIntegrationTestSupport near the buttom, this looks incorrect:
return scanFeatures(getFeatureUrl("org.drools", "drools-karaf-features").
type("xml/features")
Type should be just xml right? "features" is the classifier. Maybe that's
your problem?

As a side note, the repository entry at the bottom of your itest pom can be
moved, it's redundant.  I also wouldn't make your feature a test
dependency, just in case.

Ryan


On Fri, Jan 17, 2014 at 9:24 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> Could you try to "inject" the feature URL to Pax Exam with something like:
>
>     @Configuration
>     public Option[] config() {
>         Option[] options = new Option[]{
>                  keepRuntimeFolder(), logLevel(LogLevelOption.
> LogLevel.ERROR),
>                 editConfigurationFileExtend("etc/system.properties",
> "my.feature.url", maven().groupId("your").artifactId("your").
> versionAsInProject().classifier("features").type("xml").getURL()),
>                 editConfigurationFileExtend("etc/config.properties",
> "org.apache.aries.blueprint.synchronous", "true")
>         };
>         String debug = System.getProperty("debugMain");
>         if (debug != null) {
>             int l = options.length;
>             options = Arrays.copyOf(options, l + 1);
>             options[l] = KarafDistributionOption.debugConfiguration();
>         }
>         return options;
>     }
>
> How do you install the feature ? using executeCommand ?
>
> Did you add the feature in etc/org.apache.karaf.features.cfg if you don't
> use executeCommand ?
> You can modify the etc/org.apache.karaf.features.cfg in your project and
> inject using editConfigurationFileExtend or Append (as I did in my example).
>
> Regards
> JB
>
>
> On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>
>> Thx ;-)
>>
>>
>> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     Add the feature dependency in your pom. It's where Pax Exam is
>>     looking for feature.
>>
>>
>>     On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>
>>         Hi,
>>
>>         I experience a strange issue using pax-exam with Karaf 2.3.x
>>
>>         The following features file is available in my local maven repo
>>
>>         mvn:org.drools/drools-karaf-__features/6.1.0-SNAPSHOT/xml/__
>> features
>>
>>
>>         -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>         /Users/chmoulli/.m2/__repository/org/drools/drools-_
>> _karaf-features/6.1.0-SNAPSHOT/__drools-karaf-features-6.1.0-__SNAPSHOT-
>> features.xml
>>
>>
>>         but when pax-exam tries to find the features, I get ERRORS
>>         (feature null
>>         not found, feature drools-module not found, ...) from
>>         FeaturesServiceImpl even if the features are well present in
>>         features file
>>
>>         example
>>
>>               <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>         description="Drools core">
>>                   <feature
>>         version="6.1.0-SNAPSHOT">__drools-common</feature>
>>                   <feature version="6.1.0-SNAPSHOT">kie</__feature>
>>
>>           <bundle>mvn:org.drools/drools-__core/6.1.0-SNAPSHOT</bundle>
>>
>>           <bundle>mvn:org.drools/drools-__compiler/6.1.0-SNAPSHOT</__
>> bundle>
>>
>>         <bundle>mvn:org.drools/drools-__osgi-integration/6.1.0-__
>> SNAPSHOT</bundle>
>>               </feature>
>>
>>         https://gist.github.com/__8470059 <https://gist.github.com/
>> 8470059>
>>
>>         Line 1133 -->
>>         http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>>
>>         <http://grepcode.com/file/repo1.maven.org/maven2/org.
>> apache.karaf.features/org.apache.karaf.features.core/2.
>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>
>>
>>         As this is really hard to debug Pax-Exam + Karaf, does anybody
>>         has an
>>         idea bout the issue  ? Could it be possible that pax-exam does
>>         not look
>>         into my local repo ? Can I tell / force pax-exam to look into my
>>         local
>>         repo ?
>>
>>         Regards,
>>
>>         --
>>         Charles Moulliard
>>         Apache Committer / Architect @RedHat
>>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>         <http://cmoulliard.github.io>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
My gosh !!!

All for that ;)

Regards
JB

On 01/17/2014 06:34 PM, Charles Moulliard wrote:
> Figure out my issue. Typo error in the features XML file ;-) <bundlee>
>
> 2014-01-17 18:34:04,921 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature kie-camel 6.1.0-SNAPSHOT
> 2014-01-17 18:34:04,921 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature kie 6.1.0-SNAPSHOT
> 2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature kie-spring 6.1.0-SNAPSHOT
> 2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature drools-jpa 6.1.0-SNAPSHOT
> 2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature drools-module 6.1.0-SNAPSHOT
> 2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature drools-common 6.1.0-SNAPSHOT
> 2014-01-17 18:34:05,803 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature cxf-specs 2.6.6
> 2014-01-17 18:34:17,091 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature spring-orm 3.2.3.RELEASE
> 2014-01-17 18:34:17,092 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature spring-jdbc 3.2.3.RELEASE
> 2014-01-17 18:34:17,092 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature spring-tx 3.2.3.RELEASE
> 2014-01-17 18:34:17,093 | INFO  | FelixStartLevel  | FeaturesServiceImpl
>               | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
> Installing feature spring 3.2.3.RELEASE
>
> Sorry to bother you. Have a nice week-end
>
>
> On Fri, Jan 17, 2014 at 6:14 PM, Charles Moulliard <ch007m@gmail.com
> <ma...@gmail.com>> wrote:
>
>     Do you have a karaf 2.3 + pax-exam 3.4 example to share as I get
>     error  ?
>
>     java.lang.reflect.InvocationTargetException: null
>     at
>     org.drools.karaf.itest.KieSpringOnKarafTest.configure(KieSpringOnKarafTest.java:93)
>
>         @Configuration
>          public static Option[] configure() {
>              return new Option[]{ // NULL REPORTED HERE
>
>                      // Install Karaf Container
>                      karafDistributionConfiguration().frameworkUrl(
>
>     maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("2.3.2"))
>
>     //.karafVersion(MavenUtils.getArtifactVersion("org.apache.karaf",
>     "apache-karaf")).name("Apache Karaf")
>                              .karafVersion("2.3.2")
>                              .unpackDirectory(new
>     File("target/exam/unpack/")),
>
>     ...
>
>
>     On Fri, Jan 17, 2014 at 6:09 PM, Jean-Baptiste Onofré
>     <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>
>         Pax Exam 2.6.0 is quite old. I would advice to make a try with
>         Pax Exam 3.4.0 (which include "native" Karaf container).
>
>         Even if I'm not sure that your issue is related to Pax Exam itself.
>
>         Regards
>         JB
>
>
>         On 01/17/2014 06:03 PM, Charles Moulliard wrote:
>
>             I use pax-exam 2.6.0 & Karaf 2.3.2. Do I have to use
>             pax-exam 3.X ?
>
>
>             On Fri, Jan 17, 2014 at 4:36 PM, Jean-Baptiste Onofré
>             <jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>
>                  It's what I thought, that's why I proposed to override
>             this file.
>
>                  I wonder why you have null. Do you use Pax Exam 3.4.0 ?
>
>                  Regards
>                  JB
>
>
>                  On 01/17/2014 04:19 PM, Charles Moulliard wrote:
>
>                      Do the modification (type and classifier) and
>             restart the test
>                      without
>                      success
>
>                      The problem seems to come from how pax-exam
>             generates the
>                      features file -->
>
>                      more etc/org.apache.karaf.features.____cfg
>
>                      #Modified by paxexam
>                      #Fri Jan 17 16:10:20 CET 2014
>                      respectStartLvlDuringFeatureSt____artup=false
>
>             featuresRepositories=mvn\:org.____apache.karaf.assemblies.____features/standard/2.3.0/xml/____features,mvn\:org.apache.____karaf.assemblies.features/____enterprise/2.3.0/xml/features,____mvn\:org.apache.karaf.____assemblies.features/standard/____2.3.0/xml/features,mvn\:org.____drools/drools-karaf-features/____6.1.0-SNAPSHOT/xml/features,____file\:/Users/chmoulli/JBoss/____Code/droolsjbpm-oss/____droolsjbpm-integration/drools-____osgi/drools-karaf-itest/____target/exam/unpack/49468867-____f111-4767-aeda-f8d2afc3c0a7/____examfeatures.xml
>
>             featuresBoot=config,ssh,____management,kar,spring,spring-____dm,drools-module,kie-spring,____null,null,null,exam
>
>
>                      - The featuresBoot contains null,null,null (don't
>             know why we
>                      have it)
>                      - drools-module feature is well defined under
>
>             mvn\:org.drools/drools-karaf-____features/6.1.0-SNAPSHOT/xml/____features
>
>
>
>
>
>
>                      On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré
>                      <jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>
>                           As Ryan pointed out, the type is not correct
>             (you used both
>                           type/classifier in type, whereas you should
>             use type() and
>                      classifier().
>
>                           I don't remember if it's an issue in the URL
>             construction
>                      but just
>                           in case, use the correct syntax.
>
>                           Regards
>                           JB
>
>
>                           On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>
>                               I will have a look to what you propose.
>             Until now, I don't
>                               change the
>                               file
>             'etc/org.apache.karaf.______features.__cfg' and the
>
>                      features
>
>                               are added
>
>                               using 'scanFeatures'
>
>
>                               On Fri, Jan 17, 2014 at 3:24 PM,
>             Jean-Baptiste Onofré
>                               <jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>                               <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>> wrote:
>
>                                    Could you try to "inject" the feature
>             URL to Pax
>                      Exam with
>                               something
>                                    like:
>
>                                         @Configuration
>                                         public Option[] config() {
>                                             Option[] options = new Option[]{
>                                                      keepRuntimeFolder(),
>
>             logLevel(LogLevelOption.________LogLevel.ERROR),
>
>
>
>             editConfigurationFileExtend("________etc/system.properties",
>                                    "my.feature.url",
>
>
>
>
>             maven().groupId("your").________artifactId("your").________versionAsInProject().________classifier("features").type("________xml").getURL()),
>
>
>
>             editConfigurationFileExtend("________etc/config.properties",
>
>             "org.apache.aries.blueprint.________synchronous",
>
>                      "true")
>                                             };
>                                             String debug =
>                      System.getProperty("debugMain"________);
>
>
>
>                                             if (debug != null) {
>                                                 int l = options.length;
>                                                 options =
>             Arrays.copyOf(options, l + 1);
>                                                 options[l] =
>
>             KarafDistributionOption.________debugConfiguration();
>
>
>
>                                             }
>                                             return options;
>                                         }
>
>                                    How do you install the feature ? using
>                      executeCommand ?
>
>                                    Did you add the feature in
>                               etc/org.apache.karaf.features.________cfg if
>
>
>
>                                    you don't use executeCommand ?
>                                    You can modify the
>                      etc/org.apache.karaf.features.________cfg in
>
>
>                               your
>
>                                    project and inject using
>                      editConfigurationFileExtend or
>                               Append (as I
>                                    did in my example).
>
>                                    Regards
>                                    JB
>
>
>                                    On 01/17/2014 10:19 AM, Charles
>             Moulliard wrote:
>
>                                        Thx ;-)
>
>
>                                        On Fri, Jan 17, 2014 at 10:12 AM,
>                      Jean-Baptiste Onofré
>                                        <jb@nanthrax.net
>             <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>                               <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>
>                                        <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>                               <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>             <ma...@nanthrax.net>>
>                      <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>             <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>>> wrote:
>
>                                             Add the feature dependency
>             in your pom.
>                      It's where
>                               Pax Exam is
>                                             looking for feature.
>
>
>                                             On 01/17/2014 09:27 AM,
>             Charles Moulliard
>                      wrote:
>
>                                                 Hi,
>
>                                                 I experience a strange
>             issue using
>                      pax-exam
>                               with Karaf
>                                        2.3.x
>
>                                                 The following features
>             file is
>                      available in my
>                               local
>                                        maven repo
>
>
>
>
>
>             mvn:org.drools/drools-karaf-__________features/6.1.0-SNAPSHOT/____xml/______features
>
>
>
>
>
>                                                 -rw-r--r--  1 chmoulli
>               1881291218
>                        10473 Jan
>                               17 08:45
>
>
>
>
>             /Users/chmoulli/.m2/__________repository/org/drools/drools-__________karaf-features/6.1.0-________SNAPSHOT/__drools-karaf-________features-6.1.0-__SNAPSHOT-________features.xml
>
>
>
>
>
>                                                 but when pax-exam tries
>             to find the
>                      features,
>                               I get ERRORS
>                                                 (feature null
>                                                 not found, feature
>             drools-module not
>                      found,
>                               ...) from
>                                                 FeaturesServiceImpl even
>             if the
>                      features are well
>                                        present in
>                                                 features file
>
>                                                 example
>
>                                                       <feature
>             name="drools-module"
>                                        version="6.1.0-SNAPSHOT"
>                                                 description="Drools core">
>                                                           <feature
>
>
>               version="6.1.0-SNAPSHOT">__________drools-common</feature>
>                                                           <feature
>
>
>             version="6.1.0-SNAPSHOT">kie</__________feature>
>
>
>
>
>
>             <bundle>mvn:org.drools/drools-__________core/6.1.0-SNAPSHOT</______bundle>
>
>
>
>
>
>             <bundle>mvn:org.drools/drools-__________compiler/6.1.0-__SNAPSHOT<__/______bundle>
>
>
>
>
>
>             <bundle>mvn:org.drools/drools-__________osgi-integration/6.1.__0-________SNAPSHOT</bundle>
>                                                       </feature>
>
>             https://gist.github.com/__________8470059
>             <https://gist.github.com/________8470059>
>                      <https://gist.github.com/________8470059
>             <https://gist.github.com/______8470059>>
>
>                               <https://gist.github.com/________8470059
>             <https://gist.github.com/______8470059>
>                      <https://gist.github.com/______8470059
>             <https://gist.github.com/____8470059>>>
>
>
>             <https://gist.github.com/________8470059
>             <https://gist.github.com/______8470059>
>                      <https://gist.github.com/______8470059
>             <https://gist.github.com/____8470059>>
>                               <https://gist.github.com/______8470059
>             <https://gist.github.com/____8470059>
>                      <https://gist.github.com/____8470059
>             <https://gist.github.com/__8470059>>>>
>
>             <https://gist.github.com/________8470059
>             <https://gist.github.com/______8470059>
>                      <https://gist.github.com/______8470059
>             <https://gist.github.com/____8470059>>
>                               <https://gist.github.com/______8470059
>             <https://gist.github.com/____8470059>
>                      <https://gist.github.com/____8470059
>             <https://gist.github.com/__8470059>>>
>
>             <https://gist.github.com/______8470059
>             <https://gist.github.com/____8470059>
>                      <https://gist.github.com/____8470059
>             <https://gist.github.com/__8470059>>
>                               <https://gist.github.com/____8470059
>             <https://gist.github.com/__8470059>
>                      <https://gist.github.com/__8470059
>             <https://gist.github.com/8470059>>>>>
>
>                                                 Line 1133 -->
>             http://grepcode.com/file/__________repo1.maven.org/maven2/org.__________apache.karaf.features/__org.________apache.karaf.__features.__core/2.______3.0/__org/apache/__karaf/______features/__internal/________FeaturesServiceImpl.__java
>             <http://grepcode.com/file/________repo1.maven.org/maven2/org.________apache.karaf.features/org.________apache.karaf.features.__core/2.______3.0/org/apache/__karaf/____features/__internal/______FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/________repo1.maven.org/maven2/org.________apache.karaf.features/__org.______apache.karaf.__features.core/2.______3.0/org/__apache/karaf/____features/____internal/______FeaturesServiceImpl.__java
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java>>
>
>
>
>             <http://grepcode.com/file/________repo1.maven.org/maven2/org.________apache.karaf.features/__org.______apache.karaf.__features.core/2.______3.0/org/__apache/karaf/____features/____internal/______FeaturesServiceImpl.__java
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>>>
>
>
>
>
>             <http://grepcode.com/file/________repo1.maven.org/maven2/org.________apache.karaf.features/__org.______apache.karaf.__features.core/2.______3.0/org/__apache/karaf/____features/____internal/______FeaturesServiceImpl.__java
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>>
>
>
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>             <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>>>
>
>
>
>
>
>
>             <http://grepcode.com/file/________repo1.maven.org/maven2/org.________apache.karaf.features/__org.______apache.karaf.__features.core/2.______3.0/org/__apache/karaf/____features/____internal/______FeaturesServiceImpl.__java
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>>
>
>
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>             <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>>
>
>
>
>             <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>             <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>
>
>
>             <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>             <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>
>             <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>             <http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>>>>
>
>                                                 As this is really hard
>             to debug
>                      Pax-Exam +
>                               Karaf, does
>                                        anybody
>                                                 has an
>                                                 idea bout the issue  ?
>             Could it be
>                      possible that
>                                        pax-exam does
>                                                 not look
>                                                 into my local repo ? Can
>             I tell / force
>                               pax-exam to
>                                        look into my
>                                                 local
>                                                 repo ?
>
>                                                 Regards,
>
>                                                 --
>                                                 Charles Moulliard
>                                                 Apache Committer /
>             Architect @RedHat
>                                                 Twitter : @cmoulliard |
>             Blog :
>             http://cmoulliard.github.io
>
>               <http://cmoulliard.github.io>
>
>
>                                             --
>                                             Jean-Baptiste Onofré
>             jbonofre@apache.org <ma...@apache.org>
>             <mailto:jbonofre@apache.org <ma...@apache.org>>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org> <mailto:jbonofre@apache.org
>             <ma...@apache.org>>>
>                               <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>> <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>>>>
>                                        <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>>
>                               <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>>> <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>>
>                               <mailto:jbonofre@apache.org
>             <ma...@apache.org> <mailto:jbonofre@apache.org
>             <ma...@apache.org>>>>__>
>
>
>
>             http://blog.nanthrax.net
>                                             Talend - http://www.talend.com
>
>
>
>
>                                        --
>                                        Charles Moulliard
>                                        Apache Committer / Architect @RedHat
>                                        Twitter : @cmoulliard | Blog :
>             http://cmoulliard.github.io
>                                        <http://cmoulliard.github.io>
>
>
>                                    --
>                                    Jean-Baptiste Onofré
>             jbonofre@apache.org <ma...@apache.org>
>             <mailto:jbonofre@apache.org <ma...@apache.org>>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org> <mailto:jbonofre@apache.org
>             <ma...@apache.org>>>
>                               <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>> <mailto:jbonofre@apache.org
>             <ma...@apache.org>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org>>>>
>             http://blog.nanthrax.net
>                                    Talend - http://www.talend.com
>
>
>
>
>                               --
>                               Charles Moulliard
>                               Apache Committer / Architect @RedHat
>                               Twitter : @cmoulliard | Blog :
>             http://cmoulliard.github.io
>                               <http://cmoulliard.github.io>
>
>
>                           --
>                           Jean-Baptiste Onofré
>             jbonofre@apache.org <ma...@apache.org>
>             <mailto:jbonofre@apache.org <ma...@apache.org>>
>                      <mailto:jbonofre@apache.org
>             <ma...@apache.org> <mailto:jbonofre@apache.org
>             <ma...@apache.org>>>
>             http://blog.nanthrax.net
>                           Talend - http://www.talend.com
>
>
>
>
>                      --
>                      Charles Moulliard
>                      Apache Committer / Architect @RedHat
>                      Twitter : @cmoulliard | Blog :
>             http://cmoulliard.github.io
>                      <http://cmoulliard.github.io>
>
>
>                  --
>                  Jean-Baptiste Onofré
>             jbonofre@apache.org <ma...@apache.org>
>             <mailto:jbonofre@apache.org <ma...@apache.org>>
>             http://blog.nanthrax.net
>                  Talend - http://www.talend.com
>
>
>
>
>             --
>             Charles Moulliard
>             Apache Committer / Architect @RedHat
>             Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>             <http://cmoulliard.github.io>
>
>
>         --
>         Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         http://blog.nanthrax.net
>         Talend - http://www.talend.com
>
>
>
>
>     --
>     Charles Moulliard
>     Apache Committer / Architect @RedHat
>     Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>     <http://cmoulliard.github.io>
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Figure out my issue. Typo error in the features XML file ;-) <bundlee>

2014-01-17 18:34:04,921 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature kie-camel 6.1.0-SNAPSHOT
2014-01-17 18:34:04,921 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature kie 6.1.0-SNAPSHOT
2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature kie-spring 6.1.0-SNAPSHOT
2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature drools-jpa 6.1.0-SNAPSHOT
2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature drools-module 6.1.0-SNAPSHOT
2014-01-17 18:34:05,802 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature drools-common 6.1.0-SNAPSHOT
2014-01-17 18:34:05,803 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature cxf-specs 2.6.6
2014-01-17 18:34:17,091 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature spring-orm 3.2.3.RELEASE
2014-01-17 18:34:17,092 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature spring-jdbc 3.2.3.RELEASE
2014-01-17 18:34:17,092 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature spring-tx 3.2.3.RELEASE
2014-01-17 18:34:17,093 | INFO  | FelixStartLevel  | FeaturesServiceImpl
           | 7 - org.apache.karaf.features.core - 3.0.0.SNAPSHOT |
Installing feature spring 3.2.3.RELEASE

Sorry to bother you. Have a nice week-end


On Fri, Jan 17, 2014 at 6:14 PM, Charles Moulliard <ch...@gmail.com> wrote:

> Do you have a karaf 2.3 + pax-exam 3.4 example to share as I get error  ?
>
> java.lang.reflect.InvocationTargetException: null
> at
> org.drools.karaf.itest.KieSpringOnKarafTest.configure(KieSpringOnKarafTest.java:93)
>
>    @Configuration
>     public static Option[] configure() {
>         return new Option[]{ // NULL REPORTED HERE
>
>                 // Install Karaf Container
>                 karafDistributionConfiguration().frameworkUrl(
>
> maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("2.3.2"))
>
> //.karafVersion(MavenUtils.getArtifactVersion("org.apache.karaf",
> "apache-karaf")).name("Apache Karaf")
>                         .karafVersion("2.3.2")
>                         .unpackDirectory(new File("target/exam/unpack/")),
>
> ...
>
>
> On Fri, Jan 17, 2014 at 6:09 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>
>> Pax Exam 2.6.0 is quite old. I would advice to make a try with Pax Exam
>> 3.4.0 (which include "native" Karaf container).
>>
>> Even if I'm not sure that your issue is related to Pax Exam itself.
>>
>> Regards
>> JB
>>
>>
>> On 01/17/2014 06:03 PM, Charles Moulliard wrote:
>>
>>> I use pax-exam 2.6.0 & Karaf 2.3.2. Do I have to use pax-exam 3.X ?
>>>
>>>
>>> On Fri, Jan 17, 2014 at 4:36 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>>> <ma...@nanthrax.net>> wrote:
>>>
>>>     It's what I thought, that's why I proposed to override this file.
>>>
>>>     I wonder why you have null. Do you use Pax Exam 3.4.0 ?
>>>
>>>     Regards
>>>     JB
>>>
>>>
>>>     On 01/17/2014 04:19 PM, Charles Moulliard wrote:
>>>
>>>         Do the modification (type and classifier) and restart the test
>>>         without
>>>         success
>>>
>>>         The problem seems to come from how pax-exam generates the
>>>         features file -->
>>>
>>>         more etc/org.apache.karaf.features.__cfg
>>>
>>>         #Modified by paxexam
>>>         #Fri Jan 17 16:10:20 CET 2014
>>>         respectStartLvlDuringFeatureSt__artup=false
>>>         featuresRepositories=mvn\:org.__apache.karaf.assemblies.__
>>> features/standard/2.3.0/xml/__features,mvn\:org.apache.__
>>> karaf.assemblies.features/__enterprise/2.3.0/xml/features,
>>> __mvn\:org.apache.karaf.__assemblies.features/standard/_
>>> _2.3.0/xml/features,mvn\:org.__drools/drools-karaf-features/
>>> __6.1.0-SNAPSHOT/xml/features,__file\:/Users/chmoulli/JBoss/
>>> __Code/droolsjbpm-oss/__droolsjbpm-integration/drools-
>>> __osgi/drools-karaf-itest/__target/exam/unpack/49468867-__
>>> f111-4767-aeda-f8d2afc3c0a7/__examfeatures.xml
>>>         featuresBoot=config,ssh,__management,kar,spring,spring-_
>>> _dm,drools-module,kie-spring,__null,null,null,exam
>>>
>>>
>>>         - The featuresBoot contains null,null,null (don't know why we
>>>         have it)
>>>         - drools-module feature is well defined under
>>>         mvn\:org.drools/drools-karaf-__features/6.1.0-SNAPSHOT/xml/_
>>> _features
>>>
>>>
>>>
>>>
>>>
>>>
>>>         On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré
>>>         <jb@nanthrax.net <ma...@nanthrax.net>
>>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>>
>>>              As Ryan pointed out, the type is not correct (you used both
>>>              type/classifier in type, whereas you should use type() and
>>>         classifier().
>>>
>>>              I don't remember if it's an issue in the URL construction
>>>         but just
>>>              in case, use the correct syntax.
>>>
>>>              Regards
>>>              JB
>>>
>>>
>>>              On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>>>
>>>                  I will have a look to what you propose. Until now, I
>>> don't
>>>                  change the
>>>                  file 'etc/org.apache.karaf.____features.__cfg' and the
>>>
>>>         features
>>>
>>>                  are added
>>>
>>>                  using 'scanFeatures'
>>>
>>>
>>>                  On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré
>>>                  <jb@nanthrax.net <ma...@nanthrax.net>
>>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>>>
>>>                       Could you try to "inject" the feature URL to Pax
>>>         Exam with
>>>                  something
>>>                       like:
>>>
>>>                            @Configuration
>>>                            public Option[] config() {
>>>                                Option[] options = new Option[]{
>>>                                         keepRuntimeFolder(),
>>>                       logLevel(LogLevelOption.______LogLevel.ERROR),
>>>
>>>
>>>           editConfigurationFileExtend("______etc/system.properties",
>>>                       "my.feature.url",
>>>
>>>
>>>
>>>         maven().groupId("your").______artifactId("your").______
>>> versionAsInProject().______classifier("features").type("_
>>> _____xml").getURL()),
>>>
>>>
>>>           editConfigurationFileExtend("______etc/config.properties",
>>>                       "org.apache.aries.blueprint.______synchronous",
>>>
>>>         "true")
>>>                                };
>>>                                String debug =
>>>         System.getProperty("debugMain"______);
>>>
>>>
>>>
>>>                                if (debug != null) {
>>>                                    int l = options.length;
>>>                                    options = Arrays.copyOf(options, l +
>>> 1);
>>>                                    options[l] =
>>>                       KarafDistributionOption.______
>>> debugConfiguration();
>>>
>>>
>>>
>>>                                }
>>>                                return options;
>>>                            }
>>>
>>>                       How do you install the feature ? using
>>>         executeCommand ?
>>>
>>>                       Did you add the feature in
>>>                  etc/org.apache.karaf.features.______cfg if
>>>
>>>
>>>
>>>                       you don't use executeCommand ?
>>>                       You can modify the
>>>         etc/org.apache.karaf.features.______cfg in
>>>
>>>
>>>                  your
>>>
>>>                       project and inject using
>>>         editConfigurationFileExtend or
>>>                  Append (as I
>>>                       did in my example).
>>>
>>>                       Regards
>>>                       JB
>>>
>>>
>>>                       On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>>>
>>>                           Thx ;-)
>>>
>>>
>>>                           On Fri, Jan 17, 2014 at 10:12 AM,
>>>         Jean-Baptiste Onofré
>>>                           <jb@nanthrax.net <ma...@nanthrax.net>
>>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>>>                           <mailto:jb@nanthrax.net
>>>         <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>>>         <ma...@nanthrax.net>>
>>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>> wrote:
>>>
>>>                                Add the feature dependency in your pom.
>>>         It's where
>>>                  Pax Exam is
>>>                                looking for feature.
>>>
>>>
>>>                                On 01/17/2014 09:27 AM, Charles Moulliard
>>>         wrote:
>>>
>>>                                    Hi,
>>>
>>>                                    I experience a strange issue using
>>>         pax-exam
>>>                  with Karaf
>>>                           2.3.x
>>>
>>>                                    The following features file is
>>>         available in my
>>>                  local
>>>                           maven repo
>>>
>>>
>>>
>>>
>>>         mvn:org.drools/drools-karaf-________features/6.1.0-SNAPSHOT/
>>> __xml/______features
>>>
>>>
>>>
>>>
>>>
>>>                                    -rw-r--r--  1 chmoulli  1881291218
>>>           10473 Jan
>>>                  17 08:45
>>>
>>>
>>>
>>>         /Users/chmoulli/.m2/________repository/org/drools/drools-_
>>> _______karaf-features/6.1.0-______SNAPSHOT/__drools-karaf-__
>>> ____features-6.1.0-__SNAPSHOT-______features.xml
>>>
>>>
>>>
>>>
>>>
>>>                                    but when pax-exam tries to find the
>>>         features,
>>>                  I get ERRORS
>>>                                    (feature null
>>>                                    not found, feature drools-module not
>>>         found,
>>>                  ...) from
>>>                                    FeaturesServiceImpl even if the
>>>         features are well
>>>                           present in
>>>                                    features file
>>>
>>>                                    example
>>>
>>>                                          <feature name="drools-module"
>>>                           version="6.1.0-SNAPSHOT"
>>>                                    description="Drools core">
>>>                                              <feature
>>>
>>>                    version="6.1.0-SNAPSHOT">_____
>>> ___drools-common</feature>
>>>                                              <feature
>>>
>>>                           version="6.1.0-SNAPSHOT">kie</________feature>
>>>
>>>
>>>
>>>
>>>         <bundle>mvn:org.drools/drools-________core/6.1.0-SNAPSHOT</_
>>> ___bundle>
>>>
>>>
>>>
>>>
>>>         <bundle>mvn:org.drools/drools-________compiler/6.1.0-
>>> SNAPSHOT<__/______bundle>
>>>
>>>
>>>
>>>
>>>         <bundle>mvn:org.drools/drools-________osgi-integration/6.1.
>>> 0-________SNAPSHOT</bundle>
>>>                                          </feature>
>>>
>>>         https://gist.github.com/________8470059
>>>         <https://gist.github.com/______8470059>
>>>
>>>                  <https://gist.github.com/______8470059
>>>         <https://gist.github.com/____8470059>>
>>>
>>>                           <https://gist.github.com/______8470059
>>>         <https://gist.github.com/____8470059>
>>>                  <https://gist.github.com/____8470059
>>>         <https://gist.github.com/__8470059>>>
>>>                           <https://gist.github.com/______8470059
>>>         <https://gist.github.com/____8470059>
>>>                  <https://gist.github.com/____8470059
>>>         <https://gist.github.com/__8470059>>
>>>                           <https://gist.github.com/____8470059
>>>         <https://gist.github.com/__8470059>
>>>                  <https://gist.github.com/__8470059
>>>         <https://gist.github.com/8470059>>>>
>>>
>>>                                    Line 1133 -->
>>>         http://grepcode.com/file/________repo1.maven.org/maven2/org.
>>> ________apache.karaf.features/org.________apache.karaf.
>>> features.__core/2.______3.0/org/apache/__karaf/____
>>> features/__internal/______FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>>> _____apache.karaf.features/org.______apache.karaf.
>>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>>> FeaturesServiceImpl.__java>
>>>
>>>
>>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>>> _____apache.karaf.features/org.______apache.karaf.
>>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>>> FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>>> ____3.0/org/apache/karaf/__features/__internal/__
>>> FeaturesServiceImpl.__java>>
>>>
>>>
>>>
>>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>>> _____apache.karaf.features/org.______apache.karaf.
>>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>>> FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>>> ____3.0/org/apache/karaf/__features/__internal/__
>>> FeaturesServiceImpl.__java>
>>>
>>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>>> ____3.0/org/apache/karaf/__features/__internal/__
>>> FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>>> apache.karaf.features/org.__apache.karaf.features.core/2._
>>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>>
>>>
>>>
>>>
>>>
>>>
>>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>>> _____apache.karaf.features/org.______apache.karaf.
>>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>>> FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>>> ____3.0/org/apache/karaf/__features/__internal/__
>>> FeaturesServiceImpl.__java>
>>>
>>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>>> ____3.0/org/apache/karaf/__features/__internal/__
>>> FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>>> apache.karaf.features/org.__apache.karaf.features.core/2._
>>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>
>>>
>>>
>>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>>> ____3.0/org/apache/karaf/__features/__internal/__
>>> FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>>> apache.karaf.features/org.__apache.karaf.features.core/2._
>>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>>>
>>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>>> apache.karaf.features/org.__apache.karaf.features.core/2._
>>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>>>         <http://grepcode.com/file/repo1.maven.org/maven2/org.
>>> apache.karaf.features/org.apache.karaf.features.core/2.
>>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>>>
>>>
>>>                                    As this is really hard to debug
>>>         Pax-Exam +
>>>                  Karaf, does
>>>                           anybody
>>>                                    has an
>>>                                    idea bout the issue  ? Could it be
>>>         possible that
>>>                           pax-exam does
>>>                                    not look
>>>                                    into my local repo ? Can I tell /
>>> force
>>>                  pax-exam to
>>>                           look into my
>>>                                    local
>>>                                    repo ?
>>>
>>>                                    Regards,
>>>
>>>                                    --
>>>                                    Charles Moulliard
>>>                                    Apache Committer / Architect @RedHat
>>>                                    Twitter : @cmoulliard | Blog :
>>>         http://cmoulliard.github.io
>>>                                    <http://cmoulliard.github.io>
>>>
>>>
>>>                                --
>>>                                Jean-Baptiste Onofré
>>>         jbonofre@apache.org <ma...@apache.org>
>>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>>                  <mailto:jbonofre@apache.org
>>>         <ma...@apache.org> <mailto:jbonofre@apache.org
>>>         <ma...@apache.org>>>
>>>                           <mailto:jbonofre@apache.org
>>>         <ma...@apache.org>
>>>                  <mailto:jbonofre@apache.org
>>>         <ma...@apache.org>> <mailto:jbonofre@apache.org
>>>         <ma...@apache.org>
>>>                  <mailto:jbonofre@apache.org <mailto:jbonofre@apache.org
>>> >>>>
>>>
>>>
>>>
>>>         http://blog.nanthrax.net
>>>                                Talend - http://www.talend.com
>>>
>>>
>>>
>>>
>>>                           --
>>>                           Charles Moulliard
>>>                           Apache Committer / Architect @RedHat
>>>                           Twitter : @cmoulliard | Blog :
>>>         http://cmoulliard.github.io
>>>                           <http://cmoulliard.github.io>
>>>
>>>
>>>                       --
>>>                       Jean-Baptiste Onofré
>>>         jbonofre@apache.org <ma...@apache.org>
>>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>>                  <mailto:jbonofre@apache.org
>>>         <ma...@apache.org> <mailto:jbonofre@apache.org
>>>         <ma...@apache.org>>>
>>>         http://blog.nanthrax.net
>>>                       Talend - http://www.talend.com
>>>
>>>
>>>
>>>
>>>                  --
>>>                  Charles Moulliard
>>>                  Apache Committer / Architect @RedHat
>>>                  Twitter : @cmoulliard | Blog :
>>> http://cmoulliard.github.io
>>>                  <http://cmoulliard.github.io>
>>>
>>>
>>>              --
>>>              Jean-Baptiste Onofré
>>>         jbonofre@apache.org <ma...@apache.org>
>>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>>         http://blog.nanthrax.net
>>>              Talend - http://www.talend.com
>>>
>>>
>>>
>>>
>>>         --
>>>         Charles Moulliard
>>>         Apache Committer / Architect @RedHat
>>>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>>         <http://cmoulliard.github.io>
>>>
>>>
>>>     --
>>>     Jean-Baptiste Onofré
>>>     jbonofre@apache.org <ma...@apache.org>
>>>     http://blog.nanthrax.net
>>>     Talend - http://www.talend.com
>>>
>>>
>>>
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Architect @RedHat
>>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>> <http://cmoulliard.github.io>
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Do you have a karaf 2.3 + pax-exam 3.4 example to share as I get error  ?

java.lang.reflect.InvocationTargetException: null
at
org.drools.karaf.itest.KieSpringOnKarafTest.configure(KieSpringOnKarafTest.java:93)

   @Configuration
    public static Option[] configure() {
        return new Option[]{ // NULL REPORTED HERE

                // Install Karaf Container
                karafDistributionConfiguration().frameworkUrl(

maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").version("2.3.2"))

//.karafVersion(MavenUtils.getArtifactVersion("org.apache.karaf",
"apache-karaf")).name("Apache Karaf")
                        .karafVersion("2.3.2")
                        .unpackDirectory(new File("target/exam/unpack/")),

...


On Fri, Jan 17, 2014 at 6:09 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> Pax Exam 2.6.0 is quite old. I would advice to make a try with Pax Exam
> 3.4.0 (which include "native" Karaf container).
>
> Even if I'm not sure that your issue is related to Pax Exam itself.
>
> Regards
> JB
>
>
> On 01/17/2014 06:03 PM, Charles Moulliard wrote:
>
>> I use pax-exam 2.6.0 & Karaf 2.3.2. Do I have to use pax-exam 3.X ?
>>
>>
>> On Fri, Jan 17, 2014 at 4:36 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     It's what I thought, that's why I proposed to override this file.
>>
>>     I wonder why you have null. Do you use Pax Exam 3.4.0 ?
>>
>>     Regards
>>     JB
>>
>>
>>     On 01/17/2014 04:19 PM, Charles Moulliard wrote:
>>
>>         Do the modification (type and classifier) and restart the test
>>         without
>>         success
>>
>>         The problem seems to come from how pax-exam generates the
>>         features file -->
>>
>>         more etc/org.apache.karaf.features.__cfg
>>
>>         #Modified by paxexam
>>         #Fri Jan 17 16:10:20 CET 2014
>>         respectStartLvlDuringFeatureSt__artup=false
>>         featuresRepositories=mvn\:org.__apache.karaf.assemblies.__
>> features/standard/2.3.0/xml/__features,mvn\:org.apache.__
>> karaf.assemblies.features/__enterprise/2.3.0/xml/features,
>> __mvn\:org.apache.karaf.__assemblies.features/standard/_
>> _2.3.0/xml/features,mvn\:org.__drools/drools-karaf-features/
>> __6.1.0-SNAPSHOT/xml/features,__file\:/Users/chmoulli/JBoss/
>> __Code/droolsjbpm-oss/__droolsjbpm-integration/drools-
>> __osgi/drools-karaf-itest/__target/exam/unpack/49468867-__
>> f111-4767-aeda-f8d2afc3c0a7/__examfeatures.xml
>>         featuresBoot=config,ssh,__management,kar,spring,spring-_
>> _dm,drools-module,kie-spring,__null,null,null,exam
>>
>>
>>         - The featuresBoot contains null,null,null (don't know why we
>>         have it)
>>         - drools-module feature is well defined under
>>         mvn\:org.drools/drools-karaf-__features/6.1.0-SNAPSHOT/xml/_
>> _features
>>
>>
>>
>>
>>
>>
>>         On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré
>>         <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>
>>              As Ryan pointed out, the type is not correct (you used both
>>              type/classifier in type, whereas you should use type() and
>>         classifier().
>>
>>              I don't remember if it's an issue in the URL construction
>>         but just
>>              in case, use the correct syntax.
>>
>>              Regards
>>              JB
>>
>>
>>              On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>>
>>                  I will have a look to what you propose. Until now, I
>> don't
>>                  change the
>>                  file 'etc/org.apache.karaf.____features.__cfg' and the
>>
>>         features
>>
>>                  are added
>>
>>                  using 'scanFeatures'
>>
>>
>>                  On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré
>>                  <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>>
>>                       Could you try to "inject" the feature URL to Pax
>>         Exam with
>>                  something
>>                       like:
>>
>>                            @Configuration
>>                            public Option[] config() {
>>                                Option[] options = new Option[]{
>>                                         keepRuntimeFolder(),
>>                       logLevel(LogLevelOption.______LogLevel.ERROR),
>>
>>
>>           editConfigurationFileExtend("______etc/system.properties",
>>                       "my.feature.url",
>>
>>
>>
>>         maven().groupId("your").______artifactId("your").______
>> versionAsInProject().______classifier("features").type("_
>> _____xml").getURL()),
>>
>>
>>           editConfigurationFileExtend("______etc/config.properties",
>>                       "org.apache.aries.blueprint.______synchronous",
>>
>>         "true")
>>                                };
>>                                String debug =
>>         System.getProperty("debugMain"______);
>>
>>
>>
>>                                if (debug != null) {
>>                                    int l = options.length;
>>                                    options = Arrays.copyOf(options, l +
>> 1);
>>                                    options[l] =
>>                       KarafDistributionOption.______debugConfiguration();
>>
>>
>>
>>                                }
>>                                return options;
>>                            }
>>
>>                       How do you install the feature ? using
>>         executeCommand ?
>>
>>                       Did you add the feature in
>>                  etc/org.apache.karaf.features.______cfg if
>>
>>
>>
>>                       you don't use executeCommand ?
>>                       You can modify the
>>         etc/org.apache.karaf.features.______cfg in
>>
>>
>>                  your
>>
>>                       project and inject using
>>         editConfigurationFileExtend or
>>                  Append (as I
>>                       did in my example).
>>
>>                       Regards
>>                       JB
>>
>>
>>                       On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>>
>>                           Thx ;-)
>>
>>
>>                           On Fri, Jan 17, 2014 at 10:12 AM,
>>         Jean-Baptiste Onofré
>>                           <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>>                           <mailto:jb@nanthrax.net
>>         <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>>         <ma...@nanthrax.net>>
>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>> wrote:
>>
>>                                Add the feature dependency in your pom.
>>         It's where
>>                  Pax Exam is
>>                                looking for feature.
>>
>>
>>                                On 01/17/2014 09:27 AM, Charles Moulliard
>>         wrote:
>>
>>                                    Hi,
>>
>>                                    I experience a strange issue using
>>         pax-exam
>>                  with Karaf
>>                           2.3.x
>>
>>                                    The following features file is
>>         available in my
>>                  local
>>                           maven repo
>>
>>
>>
>>
>>         mvn:org.drools/drools-karaf-________features/6.1.0-SNAPSHOT/
>> __xml/______features
>>
>>
>>
>>
>>
>>                                    -rw-r--r--  1 chmoulli  1881291218
>>           10473 Jan
>>                  17 08:45
>>
>>
>>
>>         /Users/chmoulli/.m2/________repository/org/drools/drools-_
>> _______karaf-features/6.1.0-______SNAPSHOT/__drools-karaf-__
>> ____features-6.1.0-__SNAPSHOT-______features.xml
>>
>>
>>
>>
>>
>>                                    but when pax-exam tries to find the
>>         features,
>>                  I get ERRORS
>>                                    (feature null
>>                                    not found, feature drools-module not
>>         found,
>>                  ...) from
>>                                    FeaturesServiceImpl even if the
>>         features are well
>>                           present in
>>                                    features file
>>
>>                                    example
>>
>>                                          <feature name="drools-module"
>>                           version="6.1.0-SNAPSHOT"
>>                                    description="Drools core">
>>                                              <feature
>>
>>                    version="6.1.0-SNAPSHOT">_____
>> ___drools-common</feature>
>>                                              <feature
>>
>>                           version="6.1.0-SNAPSHOT">kie</________feature>
>>
>>
>>
>>
>>         <bundle>mvn:org.drools/drools-________core/6.1.0-SNAPSHOT</_
>> ___bundle>
>>
>>
>>
>>
>>         <bundle>mvn:org.drools/drools-________compiler/6.1.0-
>> SNAPSHOT<__/______bundle>
>>
>>
>>
>>
>>         <bundle>mvn:org.drools/drools-________osgi-integration/6.1.
>> 0-________SNAPSHOT</bundle>
>>                                          </feature>
>>
>>         https://gist.github.com/________8470059
>>         <https://gist.github.com/______8470059>
>>
>>                  <https://gist.github.com/______8470059
>>         <https://gist.github.com/____8470059>>
>>
>>                           <https://gist.github.com/______8470059
>>         <https://gist.github.com/____8470059>
>>                  <https://gist.github.com/____8470059
>>         <https://gist.github.com/__8470059>>>
>>                           <https://gist.github.com/______8470059
>>         <https://gist.github.com/____8470059>
>>                  <https://gist.github.com/____8470059
>>         <https://gist.github.com/__8470059>>
>>                           <https://gist.github.com/____8470059
>>         <https://gist.github.com/__8470059>
>>                  <https://gist.github.com/__8470059
>>         <https://gist.github.com/8470059>>>>
>>
>>                                    Line 1133 -->
>>         http://grepcode.com/file/________repo1.maven.org/maven2/org.
>> ________apache.karaf.features/org.________apache.karaf.
>> features.__core/2.______3.0/org/apache/__karaf/____
>> features/__internal/______FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>> _____apache.karaf.features/org.______apache.karaf.
>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>> FeaturesServiceImpl.__java>
>>
>>
>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>> _____apache.karaf.features/org.______apache.karaf.
>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java>>
>>
>>
>>
>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>> _____apache.karaf.features/org.______apache.karaf.
>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java>
>>
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>>
>>
>>
>>
>>
>>
>>         <http://grepcode.com/file/______repo1.maven.org/maven2/org._
>> _____apache.karaf.features/org.______apache.karaf.
>> features.core/2.______3.0/org/apache/karaf/____features/__internal/____
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java>
>>
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>
>>
>>
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>>
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/repo1.maven.org/maven2/org.
>> apache.karaf.features/org.apache.karaf.features.core/2.
>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>>>
>>
>>                                    As this is really hard to debug
>>         Pax-Exam +
>>                  Karaf, does
>>                           anybody
>>                                    has an
>>                                    idea bout the issue  ? Could it be
>>         possible that
>>                           pax-exam does
>>                                    not look
>>                                    into my local repo ? Can I tell / force
>>                  pax-exam to
>>                           look into my
>>                                    local
>>                                    repo ?
>>
>>                                    Regards,
>>
>>                                    --
>>                                    Charles Moulliard
>>                                    Apache Committer / Architect @RedHat
>>                                    Twitter : @cmoulliard | Blog :
>>         http://cmoulliard.github.io
>>                                    <http://cmoulliard.github.io>
>>
>>
>>                                --
>>                                Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>                  <mailto:jbonofre@apache.org
>>         <ma...@apache.org> <mailto:jbonofre@apache.org
>>         <ma...@apache.org>>>
>>                           <mailto:jbonofre@apache.org
>>         <ma...@apache.org>
>>                  <mailto:jbonofre@apache.org
>>         <ma...@apache.org>> <mailto:jbonofre@apache.org
>>         <ma...@apache.org>
>>                  <mailto:jbonofre@apache.org <mailto:jbonofre@apache.org
>> >>>>
>>
>>
>>
>>         http://blog.nanthrax.net
>>                                Talend - http://www.talend.com
>>
>>
>>
>>
>>                           --
>>                           Charles Moulliard
>>                           Apache Committer / Architect @RedHat
>>                           Twitter : @cmoulliard | Blog :
>>         http://cmoulliard.github.io
>>                           <http://cmoulliard.github.io>
>>
>>
>>                       --
>>                       Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>                  <mailto:jbonofre@apache.org
>>         <ma...@apache.org> <mailto:jbonofre@apache.org
>>         <ma...@apache.org>>>
>>         http://blog.nanthrax.net
>>                       Talend - http://www.talend.com
>>
>>
>>
>>
>>                  --
>>                  Charles Moulliard
>>                  Apache Committer / Architect @RedHat
>>                  Twitter : @cmoulliard | Blog :
>> http://cmoulliard.github.io
>>                  <http://cmoulliard.github.io>
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>         http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>
>>
>>         --
>>         Charles Moulliard
>>         Apache Committer / Architect @RedHat
>>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>         <http://cmoulliard.github.io>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Pax Exam 2.6.0 is quite old. I would advice to make a try with Pax Exam 
3.4.0 (which include "native" Karaf container).

Even if I'm not sure that your issue is related to Pax Exam itself.

Regards
JB

On 01/17/2014 06:03 PM, Charles Moulliard wrote:
> I use pax-exam 2.6.0 & Karaf 2.3.2. Do I have to use pax-exam 3.X ?
>
>
> On Fri, Jan 17, 2014 at 4:36 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
>     It's what I thought, that's why I proposed to override this file.
>
>     I wonder why you have null. Do you use Pax Exam 3.4.0 ?
>
>     Regards
>     JB
>
>
>     On 01/17/2014 04:19 PM, Charles Moulliard wrote:
>
>         Do the modification (type and classifier) and restart the test
>         without
>         success
>
>         The problem seems to come from how pax-exam generates the
>         features file -->
>
>         more etc/org.apache.karaf.features.__cfg
>         #Modified by paxexam
>         #Fri Jan 17 16:10:20 CET 2014
>         respectStartLvlDuringFeatureSt__artup=false
>         featuresRepositories=mvn\:org.__apache.karaf.assemblies.__features/standard/2.3.0/xml/__features,mvn\:org.apache.__karaf.assemblies.features/__enterprise/2.3.0/xml/features,__mvn\:org.apache.karaf.__assemblies.features/standard/__2.3.0/xml/features,mvn\:org.__drools/drools-karaf-features/__6.1.0-SNAPSHOT/xml/features,__file\:/Users/chmoulli/JBoss/__Code/droolsjbpm-oss/__droolsjbpm-integration/drools-__osgi/drools-karaf-itest/__target/exam/unpack/49468867-__f111-4767-aeda-f8d2afc3c0a7/__examfeatures.xml
>         featuresBoot=config,ssh,__management,kar,spring,spring-__dm,drools-module,kie-spring,__null,null,null,exam
>
>         - The featuresBoot contains null,null,null (don't know why we
>         have it)
>         - drools-module feature is well defined under
>         mvn\:org.drools/drools-karaf-__features/6.1.0-SNAPSHOT/xml/__features
>
>
>
>
>
>         On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré
>         <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>
>              As Ryan pointed out, the type is not correct (you used both
>              type/classifier in type, whereas you should use type() and
>         classifier().
>
>              I don't remember if it's an issue in the URL construction
>         but just
>              in case, use the correct syntax.
>
>              Regards
>              JB
>
>
>              On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>
>                  I will have a look to what you propose. Until now, I don't
>                  change the
>                  file 'etc/org.apache.karaf.____features.__cfg' and the
>         features
>
>                  are added
>
>                  using 'scanFeatures'
>
>
>                  On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré
>                  <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>
>                       Could you try to "inject" the feature URL to Pax
>         Exam with
>                  something
>                       like:
>
>                            @Configuration
>                            public Option[] config() {
>                                Option[] options = new Option[]{
>                                         keepRuntimeFolder(),
>                       logLevel(LogLevelOption.______LogLevel.ERROR),
>
>
>           editConfigurationFileExtend("______etc/system.properties",
>                       "my.feature.url",
>
>
>
>         maven().groupId("your").______artifactId("your").______versionAsInProject().______classifier("features").type("______xml").getURL()),
>
>
>           editConfigurationFileExtend("______etc/config.properties",
>                       "org.apache.aries.blueprint.______synchronous",
>         "true")
>                                };
>                                String debug =
>         System.getProperty("debugMain"______);
>
>
>                                if (debug != null) {
>                                    int l = options.length;
>                                    options = Arrays.copyOf(options, l + 1);
>                                    options[l] =
>                       KarafDistributionOption.______debugConfiguration();
>
>
>                                }
>                                return options;
>                            }
>
>                       How do you install the feature ? using
>         executeCommand ?
>
>                       Did you add the feature in
>                  etc/org.apache.karaf.features.______cfg if
>
>
>                       you don't use executeCommand ?
>                       You can modify the
>         etc/org.apache.karaf.features.______cfg in
>
>                  your
>
>                       project and inject using
>         editConfigurationFileExtend or
>                  Append (as I
>                       did in my example).
>
>                       Regards
>                       JB
>
>
>                       On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>
>                           Thx ;-)
>
>
>                           On Fri, Jan 17, 2014 at 10:12 AM,
>         Jean-Baptiste Onofré
>                           <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>
>                           <mailto:jb@nanthrax.net
>         <ma...@nanthrax.net> <mailto:jb@nanthrax.net
>         <ma...@nanthrax.net>>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>> wrote:
>
>                                Add the feature dependency in your pom.
>         It's where
>                  Pax Exam is
>                                looking for feature.
>
>
>                                On 01/17/2014 09:27 AM, Charles Moulliard
>         wrote:
>
>                                    Hi,
>
>                                    I experience a strange issue using
>         pax-exam
>                  with Karaf
>                           2.3.x
>
>                                    The following features file is
>         available in my
>                  local
>                           maven repo
>
>
>
>
>         mvn:org.drools/drools-karaf-________features/6.1.0-SNAPSHOT/__xml/______features
>
>
>
>
>                                    -rw-r--r--  1 chmoulli  1881291218
>           10473 Jan
>                  17 08:45
>
>
>
>         /Users/chmoulli/.m2/________repository/org/drools/drools-________karaf-features/6.1.0-______SNAPSHOT/__drools-karaf-______features-6.1.0-__SNAPSHOT-______features.xml
>
>
>
>
>                                    but when pax-exam tries to find the
>         features,
>                  I get ERRORS
>                                    (feature null
>                                    not found, feature drools-module not
>         found,
>                  ...) from
>                                    FeaturesServiceImpl even if the
>         features are well
>                           present in
>                                    features file
>
>                                    example
>
>                                          <feature name="drools-module"
>                           version="6.1.0-SNAPSHOT"
>                                    description="Drools core">
>                                              <feature
>
>                    version="6.1.0-SNAPSHOT">________drools-common</feature>
>                                              <feature
>
>                           version="6.1.0-SNAPSHOT">kie</________feature>
>
>
>
>
>         <bundle>mvn:org.drools/drools-________core/6.1.0-SNAPSHOT</____bundle>
>
>
>
>
>         <bundle>mvn:org.drools/drools-________compiler/6.1.0-SNAPSHOT<__/______bundle>
>
>
>
>
>         <bundle>mvn:org.drools/drools-________osgi-integration/6.1.0-________SNAPSHOT</bundle>
>                                          </feature>
>
>         https://gist.github.com/________8470059
>         <https://gist.github.com/______8470059>
>                  <https://gist.github.com/______8470059
>         <https://gist.github.com/____8470059>>
>
>                           <https://gist.github.com/______8470059
>         <https://gist.github.com/____8470059>
>                  <https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>>>
>                           <https://gist.github.com/______8470059
>         <https://gist.github.com/____8470059>
>                  <https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>>
>                           <https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>
>                  <https://gist.github.com/__8470059
>         <https://gist.github.com/8470059>>>>
>
>                                    Line 1133 -->
>         http://grepcode.com/file/________repo1.maven.org/maven2/org.________apache.karaf.features/org.________apache.karaf.features.__core/2.______3.0/org/apache/__karaf/____features/__internal/______FeaturesServiceImpl.__java
>         <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java>
>
>         <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>>
>
>
>
>         <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>
>
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>>
>
>
>
>
>
>         <http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>
>
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>
>
>
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>         <http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>>>
>
>                                    As this is really hard to debug
>         Pax-Exam +
>                  Karaf, does
>                           anybody
>                                    has an
>                                    idea bout the issue  ? Could it be
>         possible that
>                           pax-exam does
>                                    not look
>                                    into my local repo ? Can I tell / force
>                  pax-exam to
>                           look into my
>                                    local
>                                    repo ?
>
>                                    Regards,
>
>                                    --
>                                    Charles Moulliard
>                                    Apache Committer / Architect @RedHat
>                                    Twitter : @cmoulliard | Blog :
>         http://cmoulliard.github.io
>                                    <http://cmoulliard.github.io>
>
>
>                                --
>                                Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>                  <mailto:jbonofre@apache.org
>         <ma...@apache.org> <mailto:jbonofre@apache.org
>         <ma...@apache.org>>>
>                           <mailto:jbonofre@apache.org
>         <ma...@apache.org>
>                  <mailto:jbonofre@apache.org
>         <ma...@apache.org>> <mailto:jbonofre@apache.org
>         <ma...@apache.org>
>                  <mailto:jbonofre@apache.org <ma...@apache.org>>>>
>
>
>         http://blog.nanthrax.net
>                                Talend - http://www.talend.com
>
>
>
>
>                           --
>                           Charles Moulliard
>                           Apache Committer / Architect @RedHat
>                           Twitter : @cmoulliard | Blog :
>         http://cmoulliard.github.io
>                           <http://cmoulliard.github.io>
>
>
>                       --
>                       Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>                  <mailto:jbonofre@apache.org
>         <ma...@apache.org> <mailto:jbonofre@apache.org
>         <ma...@apache.org>>>
>         http://blog.nanthrax.net
>                       Talend - http://www.talend.com
>
>
>
>
>                  --
>                  Charles Moulliard
>                  Apache Committer / Architect @RedHat
>                  Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>                  <http://cmoulliard.github.io>
>
>
>              --
>              Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>         http://blog.nanthrax.net
>              Talend - http://www.talend.com
>
>
>
>
>         --
>         Charles Moulliard
>         Apache Committer / Architect @RedHat
>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>         <http://cmoulliard.github.io>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
I use pax-exam 2.6.0 & Karaf 2.3.2. Do I have to use pax-exam 3.X ?


On Fri, Jan 17, 2014 at 4:36 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> It's what I thought, that's why I proposed to override this file.
>
> I wonder why you have null. Do you use Pax Exam 3.4.0 ?
>
> Regards
> JB
>
>
> On 01/17/2014 04:19 PM, Charles Moulliard wrote:
>
>> Do the modification (type and classifier) and restart the test without
>> success
>>
>> The problem seems to come from how pax-exam generates the features file
>> -->
>>
>> more etc/org.apache.karaf.features.cfg
>> #Modified by paxexam
>> #Fri Jan 17 16:10:20 CET 2014
>> respectStartLvlDuringFeatureStartup=false
>> featuresRepositories=mvn\:org.apache.karaf.assemblies.
>> features/standard/2.3.0/xml/features,mvn\:org.apache.
>> karaf.assemblies.features/enterprise/2.3.0/xml/features,
>> mvn\:org.apache.karaf.assemblies.features/standard/
>> 2.3.0/xml/features,mvn\:org.drools/drools-karaf-features/
>> 6.1.0-SNAPSHOT/xml/features,file\:/Users/chmoulli/JBoss/
>> Code/droolsjbpm-oss/droolsjbpm-integration/drools-
>> osgi/drools-karaf-itest/target/exam/unpack/49468867-
>> f111-4767-aeda-f8d2afc3c0a7/examfeatures.xml
>> featuresBoot=config,ssh,management,kar,spring,spring-
>> dm,drools-module,kie-spring,null,null,null,exam
>>
>> - The featuresBoot contains null,null,null (don't know why we have it)
>> - drools-module feature is well defined under
>> mvn\:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>
>>
>>
>>
>>
>> On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     As Ryan pointed out, the type is not correct (you used both
>>     type/classifier in type, whereas you should use type() and
>> classifier().
>>
>>     I don't remember if it's an issue in the URL construction but just
>>     in case, use the correct syntax.
>>
>>     Regards
>>     JB
>>
>>
>>     On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>>
>>         I will have a look to what you propose. Until now, I don't
>>         change the
>>         file 'etc/org.apache.karaf.__features.__cfg' and the features
>>
>>         are added
>>
>>         using 'scanFeatures'
>>
>>
>>         On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré
>>         <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>
>>              Could you try to "inject" the feature URL to Pax Exam with
>>         something
>>              like:
>>
>>                   @Configuration
>>                   public Option[] config() {
>>                       Option[] options = new Option[]{
>>                                keepRuntimeFolder(),
>>              logLevel(LogLevelOption.____LogLevel.ERROR),
>>
>>              editConfigurationFileExtend("____etc/system.properties",
>>              "my.feature.url",
>>
>>
>>         maven().groupId("your").____artifactId("your").____
>> versionAsInProject().____classifier("features").type("_
>> ___xml").getURL()),
>>
>>              editConfigurationFileExtend("____etc/config.properties",
>>              "org.apache.aries.blueprint.____synchronous", "true")
>>                       };
>>                       String debug = System.getProperty("debugMain"____);
>>
>>
>>                       if (debug != null) {
>>                           int l = options.length;
>>                           options = Arrays.copyOf(options, l + 1);
>>                           options[l] =
>>              KarafDistributionOption.____debugConfiguration();
>>
>>
>>                       }
>>                       return options;
>>                   }
>>
>>              How do you install the feature ? using executeCommand ?
>>
>>              Did you add the feature in
>>         etc/org.apache.karaf.features.____cfg if
>>
>>
>>              you don't use executeCommand ?
>>              You can modify the etc/org.apache.karaf.features.____cfg in
>>
>>         your
>>
>>              project and inject using editConfigurationFileExtend or
>>         Append (as I
>>              did in my example).
>>
>>              Regards
>>              JB
>>
>>
>>              On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>>
>>                  Thx ;-)
>>
>>
>>                  On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré
>>                  <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>>
>>                       Add the feature dependency in your pom. It's where
>>         Pax Exam is
>>                       looking for feature.
>>
>>
>>                       On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>
>>                           Hi,
>>
>>                           I experience a strange issue using pax-exam
>>         with Karaf
>>                  2.3.x
>>
>>                           The following features file is available in my
>>         local
>>                  maven repo
>>
>>
>>
>>         mvn:org.drools/drools-karaf-______features/6.1.0-SNAPSHOT/
>> xml/______features
>>
>>
>>
>>
>>                           -rw-r--r--  1 chmoulli  1881291218  10473 Jan
>>         17 08:45
>>
>>
>>         /Users/chmoulli/.m2/______repository/org/drools/drools-_
>> _____karaf-features/6.1.0-____SNAPSHOT/__drools-karaf-____
>> features-6.1.0-__SNAPSHOT-____features.xml
>>
>>
>>
>>
>>                           but when pax-exam tries to find the features,
>>         I get ERRORS
>>                           (feature null
>>                           not found, feature drools-module not found,
>>         ...) from
>>                           FeaturesServiceImpl even if the features are
>> well
>>                  present in
>>                           features file
>>
>>                           example
>>
>>                                 <feature name="drools-module"
>>                  version="6.1.0-SNAPSHOT"
>>                           description="Drools core">
>>                                     <feature
>>
>>           version="6.1.0-SNAPSHOT">______drools-common</feature>
>>                                     <feature
>>
>>                  version="6.1.0-SNAPSHOT">kie</______feature>
>>
>>
>>
>>         <bundle>mvn:org.drools/drools-______core/6.1.0-SNAPSHOT</__
>> bundle>
>>
>>
>>
>>         <bundle>mvn:org.drools/drools-______compiler/6.1.0-SNAPSHOT<
>> /______bundle>
>>
>>
>>
>>         <bundle>mvn:org.drools/drools-______osgi-integration/6.1.0-_
>> _____SNAPSHOT</bundle>
>>                                 </feature>
>>
>>         https://gist.github.com/______8470059
>>         <https://gist.github.com/____8470059>
>>
>>                  <https://gist.github.com/____8470059
>>         <https://gist.github.com/__8470059>>
>>                  <https://gist.github.com/____8470059
>>         <https://gist.github.com/__8470059>
>>                  <https://gist.github.com/__8470059
>>         <https://gist.github.com/8470059>>>
>>
>>                           Line 1133 -->
>>         http://grepcode.com/file/______repo1.maven.org/maven2/org.__
>> ____apache.karaf.features/org.______apache.karaf.features.
>> core/2.______3.0/org/apache/karaf/____features/__internal/
>> ____FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java>
>>
>>
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>
>>
>>
>>
>>
>>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>>
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/repo1.maven.org/maven2/org.
>> apache.karaf.features/org.apache.karaf.features.core/2.
>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>>
>>
>>                           As this is really hard to debug Pax-Exam +
>>         Karaf, does
>>                  anybody
>>                           has an
>>                           idea bout the issue  ? Could it be possible that
>>                  pax-exam does
>>                           not look
>>                           into my local repo ? Can I tell / force
>>         pax-exam to
>>                  look into my
>>                           local
>>                           repo ?
>>
>>                           Regards,
>>
>>                           --
>>                           Charles Moulliard
>>                           Apache Committer / Architect @RedHat
>>                           Twitter : @cmoulliard | Blog :
>>         http://cmoulliard.github.io
>>                           <http://cmoulliard.github.io>
>>
>>
>>                       --
>>                       Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>                  <mailto:jbonofre@apache.org
>>         <ma...@apache.org> <mailto:jbonofre@apache.org
>>         <ma...@apache.org>>>
>>
>>
>>         http://blog.nanthrax.net
>>                       Talend - http://www.talend.com
>>
>>
>>
>>
>>                  --
>>                  Charles Moulliard
>>                  Apache Committer / Architect @RedHat
>>                  Twitter : @cmoulliard | Blog :
>> http://cmoulliard.github.io
>>                  <http://cmoulliard.github.io>
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>         http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>
>>
>>         --
>>         Charles Moulliard
>>         Apache Committer / Architect @RedHat
>>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>         <http://cmoulliard.github.io>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-osgi/drools-karaf-itest/src/test/java/org/drools/karaf/itest/KieSpringOnKarafTest.java


On Fri, Jan 17, 2014 at 4:52 PM, Henryk Konsek <he...@gmail.com> wrote:

> Hi Charles,
>
> What is the name of the test class from the drools-karaf-itest module
> you are trying to execute?
>
> Cheers.
>
> --
> Henryk Konsek
> http://henryk-konsek.blogspot.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Henryk Konsek <he...@gmail.com>.
Hi Charles,

What is the name of the test class from the drools-karaf-itest module
you are trying to execute?

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It's what I thought, that's why I proposed to override this file.

I wonder why you have null. Do you use Pax Exam 3.4.0 ?

Regards
JB

On 01/17/2014 04:19 PM, Charles Moulliard wrote:
> Do the modification (type and classifier) and restart the test without
> success
>
> The problem seems to come from how pax-exam generates the features file -->
>
> more etc/org.apache.karaf.features.cfg
> #Modified by paxexam
> #Fri Jan 17 16:10:20 CET 2014
> respectStartLvlDuringFeatureStartup=false
> featuresRepositories=mvn\:org.apache.karaf.assemblies.features/standard/2.3.0/xml/features,mvn\:org.apache.karaf.assemblies.features/enterprise/2.3.0/xml/features,mvn\:org.apache.karaf.assemblies.features/standard/2.3.0/xml/features,mvn\:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features,file\:/Users/chmoulli/JBoss/Code/droolsjbpm-oss/droolsjbpm-integration/drools-osgi/drools-karaf-itest/target/exam/unpack/49468867-f111-4767-aeda-f8d2afc3c0a7/examfeatures.xml
> featuresBoot=config,ssh,management,kar,spring,spring-dm,drools-module,kie-spring,null,null,null,exam
>
> - The featuresBoot contains null,null,null (don't know why we have it)
> - drools-module feature is well defined under
> mvn\:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>
>
>
>
>
> On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
>     As Ryan pointed out, the type is not correct (you used both
>     type/classifier in type, whereas you should use type() and classifier().
>
>     I don't remember if it's an issue in the URL construction but just
>     in case, use the correct syntax.
>
>     Regards
>     JB
>
>
>     On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>
>         I will have a look to what you propose. Until now, I don't
>         change the
>         file 'etc/org.apache.karaf.__features.__cfg' and the features
>         are added
>
>         using 'scanFeatures'
>
>
>         On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré
>         <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>
>              Could you try to "inject" the feature URL to Pax Exam with
>         something
>              like:
>
>                   @Configuration
>                   public Option[] config() {
>                       Option[] options = new Option[]{
>                                keepRuntimeFolder(),
>              logLevel(LogLevelOption.____LogLevel.ERROR),
>
>              editConfigurationFileExtend("____etc/system.properties",
>              "my.feature.url",
>
>
>         maven().groupId("your").____artifactId("your").____versionAsInProject().____classifier("features").type("____xml").getURL()),
>
>              editConfigurationFileExtend("____etc/config.properties",
>              "org.apache.aries.blueprint.____synchronous", "true")
>                       };
>                       String debug = System.getProperty("debugMain"____);
>
>                       if (debug != null) {
>                           int l = options.length;
>                           options = Arrays.copyOf(options, l + 1);
>                           options[l] =
>              KarafDistributionOption.____debugConfiguration();
>
>                       }
>                       return options;
>                   }
>
>              How do you install the feature ? using executeCommand ?
>
>              Did you add the feature in
>         etc/org.apache.karaf.features.____cfg if
>
>              you don't use executeCommand ?
>              You can modify the etc/org.apache.karaf.features.____cfg in
>         your
>
>              project and inject using editConfigurationFileExtend or
>         Append (as I
>              did in my example).
>
>              Regards
>              JB
>
>
>              On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>
>                  Thx ;-)
>
>
>                  On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré
>                  <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>> wrote:
>
>                       Add the feature dependency in your pom. It's where
>         Pax Exam is
>                       looking for feature.
>
>
>                       On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>
>                           Hi,
>
>                           I experience a strange issue using pax-exam
>         with Karaf
>                  2.3.x
>
>                           The following features file is available in my
>         local
>                  maven repo
>
>
>
>         mvn:org.drools/drools-karaf-______features/6.1.0-SNAPSHOT/xml/______features
>
>
>
>                           -rw-r--r--  1 chmoulli  1881291218  10473 Jan
>         17 08:45
>
>
>         /Users/chmoulli/.m2/______repository/org/drools/drools-______karaf-features/6.1.0-____SNAPSHOT/__drools-karaf-____features-6.1.0-__SNAPSHOT-____features.xml
>
>
>
>                           but when pax-exam tries to find the features,
>         I get ERRORS
>                           (feature null
>                           not found, feature drools-module not found,
>         ...) from
>                           FeaturesServiceImpl even if the features are well
>                  present in
>                           features file
>
>                           example
>
>                                 <feature name="drools-module"
>                  version="6.1.0-SNAPSHOT"
>                           description="Drools core">
>                                     <feature
>
>           version="6.1.0-SNAPSHOT">______drools-common</feature>
>                                     <feature
>
>                  version="6.1.0-SNAPSHOT">kie</______feature>
>
>
>
>         <bundle>mvn:org.drools/drools-______core/6.1.0-SNAPSHOT</__bundle>
>
>
>
>         <bundle>mvn:org.drools/drools-______compiler/6.1.0-SNAPSHOT</______bundle>
>
>
>
>         <bundle>mvn:org.drools/drools-______osgi-integration/6.1.0-______SNAPSHOT</bundle>
>                                 </feature>
>
>         https://gist.github.com/______8470059
>         <https://gist.github.com/____8470059>
>                  <https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>>
>                  <https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>
>                  <https://gist.github.com/__8470059
>         <https://gist.github.com/8470059>>>
>
>                           Line 1133 -->
>         http://grepcode.com/file/______repo1.maven.org/maven2/org.______apache.karaf.features/org.______apache.karaf.features.core/2.______3.0/org/apache/karaf/____features/__internal/____FeaturesServiceImpl.__java
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java>
>
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>>
>
>
>
>
>         <http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>         <http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>>
>
>                           As this is really hard to debug Pax-Exam +
>         Karaf, does
>                  anybody
>                           has an
>                           idea bout the issue  ? Could it be possible that
>                  pax-exam does
>                           not look
>                           into my local repo ? Can I tell / force
>         pax-exam to
>                  look into my
>                           local
>                           repo ?
>
>                           Regards,
>
>                           --
>                           Charles Moulliard
>                           Apache Committer / Architect @RedHat
>                           Twitter : @cmoulliard | Blog :
>         http://cmoulliard.github.io
>                           <http://cmoulliard.github.io>
>
>
>                       --
>                       Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>                  <mailto:jbonofre@apache.org
>         <ma...@apache.org> <mailto:jbonofre@apache.org
>         <ma...@apache.org>>>
>
>
>         http://blog.nanthrax.net
>                       Talend - http://www.talend.com
>
>
>
>
>                  --
>                  Charles Moulliard
>                  Apache Committer / Architect @RedHat
>                  Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>                  <http://cmoulliard.github.io>
>
>
>              --
>              Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>         http://blog.nanthrax.net
>              Talend - http://www.talend.com
>
>
>
>
>         --
>         Charles Moulliard
>         Apache Committer / Architect @RedHat
>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>         <http://cmoulliard.github.io>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Do the modification (type and classifier) and restart the test without
success

The problem seems to come from how pax-exam generates the features file -->

more etc/org.apache.karaf.features.cfg
#Modified by paxexam
#Fri Jan 17 16:10:20 CET 2014
respectStartLvlDuringFeatureStartup=false
featuresRepositories=mvn\:org.apache.karaf.assemblies.features/standard/2.3.0/xml/features,mvn\:org.apache.karaf.assemblies.features/enterprise/2.3.0/xml/features,mvn\:org.apache.karaf.assemblies.features/standard/2.3.0/xml/features,mvn\:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features,file\:/Users/chmoulli/JBoss/Code/droolsjbpm-oss/droolsjbpm-integration/drools-osgi/drools-karaf-itest/target/exam/unpack/49468867-f111-4767-aeda-f8d2afc3c0a7/examfeatures.xml
featuresBoot=config,ssh,management,kar,spring,spring-dm,drools-module,kie-spring,null,null,null,exam

- The featuresBoot contains null,null,null (don't know why we have it)
- drools-module feature is well defined under
mvn\:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features





On Fri, Jan 17, 2014 at 4:08 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> As Ryan pointed out, the type is not correct (you used both
> type/classifier in type, whereas you should use type() and classifier().
>
> I don't remember if it's an issue in the URL construction but just in
> case, use the correct syntax.
>
> Regards
> JB
>
>
> On 01/17/2014 04:06 PM, Charles Moulliard wrote:
>
>> I will have a look to what you propose. Until now, I don't change the
>> file 'etc/org.apache.karaf.features.__cfg' and the features are added
>>
>> using 'scanFeatures'
>>
>>
>> On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     Could you try to "inject" the feature URL to Pax Exam with something
>>     like:
>>
>>          @Configuration
>>          public Option[] config() {
>>              Option[] options = new Option[]{
>>                       keepRuntimeFolder(),
>>     logLevel(LogLevelOption.__LogLevel.ERROR),
>>
>>     editConfigurationFileExtend("__etc/system.properties",
>>     "my.feature.url",
>>
>>     maven().groupId("your").__artifactId("your").__
>> versionAsInProject().__classifier("features").type("__xml").getURL()),
>>
>>     editConfigurationFileExtend("__etc/config.properties",
>>     "org.apache.aries.blueprint.__synchronous", "true")
>>              };
>>              String debug = System.getProperty("debugMain"__);
>>
>>              if (debug != null) {
>>                  int l = options.length;
>>                  options = Arrays.copyOf(options, l + 1);
>>                  options[l] =
>>     KarafDistributionOption.__debugConfiguration();
>>
>>              }
>>              return options;
>>          }
>>
>>     How do you install the feature ? using executeCommand ?
>>
>>     Did you add the feature in etc/org.apache.karaf.features.__cfg if
>>
>>     you don't use executeCommand ?
>>     You can modify the etc/org.apache.karaf.features.__cfg in your
>>
>>     project and inject using editConfigurationFileExtend or Append (as I
>>     did in my example).
>>
>>     Regards
>>     JB
>>
>>
>>     On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>>
>>         Thx ;-)
>>
>>
>>         On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré
>>         <jb@nanthrax.net <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>
>>              Add the feature dependency in your pom. It's where Pax Exam
>> is
>>              looking for feature.
>>
>>
>>              On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>
>>                  Hi,
>>
>>                  I experience a strange issue using pax-exam with Karaf
>>         2.3.x
>>
>>                  The following features file is available in my local
>>         maven repo
>>
>>
>>         mvn:org.drools/drools-karaf-____features/6.1.0-SNAPSHOT/xml/
>> ____features
>>
>>
>>
>>                  -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>
>>         /Users/chmoulli/.m2/____repository/org/drools/drools-_
>> ___karaf-features/6.1.0-__SNAPSHOT/__drools-karaf-__
>> features-6.1.0-__SNAPSHOT-__features.xml
>>
>>
>>
>>                  but when pax-exam tries to find the features, I get
>> ERRORS
>>                  (feature null
>>                  not found, feature drools-module not found, ...) from
>>                  FeaturesServiceImpl even if the features are well
>>         present in
>>                  features file
>>
>>                  example
>>
>>                        <feature name="drools-module"
>>         version="6.1.0-SNAPSHOT"
>>                  description="Drools core">
>>                            <feature
>>                  version="6.1.0-SNAPSHOT">____drools-common</feature>
>>                            <feature
>>
>>         version="6.1.0-SNAPSHOT">kie</____feature>
>>
>>
>>         <bundle>mvn:org.drools/drools-____core/6.1.0-SNAPSHOT</bundle>
>>
>>
>>         <bundle>mvn:org.drools/drools-____compiler/6.1.0-SNAPSHOT</_
>> ___bundle>
>>
>>
>>         <bundle>mvn:org.drools/drools-____osgi-integration/6.1.0-___
>> _SNAPSHOT</bundle>
>>                        </feature>
>>
>>         https://gist.github.com/____8470059
>>         <https://gist.github.com/__8470059>
>>         <https://gist.github.com/__8470059
>>         <https://gist.github.com/8470059>>
>>
>>                  Line 1133 -->
>>         http://grepcode.com/file/____repo1.maven.org/maven2/org.___
>> _apache.karaf.features/org.____apache.karaf.features.core/2.
>> ____3.0/org/apache/karaf/__features/__internal/__
>> FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>>
>>
>>
>>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>>         <http://grepcode.com/file/repo1.maven.org/maven2/org.
>> apache.karaf.features/org.apache.karaf.features.core/2.
>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>
>>
>>                  As this is really hard to debug Pax-Exam + Karaf, does
>>         anybody
>>                  has an
>>                  idea bout the issue  ? Could it be possible that
>>         pax-exam does
>>                  not look
>>                  into my local repo ? Can I tell / force pax-exam to
>>         look into my
>>                  local
>>                  repo ?
>>
>>                  Regards,
>>
>>                  --
>>                  Charles Moulliard
>>                  Apache Committer / Architect @RedHat
>>                  Twitter : @cmoulliard | Blog :
>> http://cmoulliard.github.io
>>                  <http://cmoulliard.github.io>
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>
>>
>>         http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>
>>
>>         --
>>         Charles Moulliard
>>         Apache Committer / Architect @RedHat
>>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>         <http://cmoulliard.github.io>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
As Ryan pointed out, the type is not correct (you used both 
type/classifier in type, whereas you should use type() and classifier().

I don't remember if it's an issue in the URL construction but just in 
case, use the correct syntax.

Regards
JB

On 01/17/2014 04:06 PM, Charles Moulliard wrote:
> I will have a look to what you propose. Until now, I don't change the
> file 'etc/org.apache.karaf.features.__cfg' and the features are added
> using 'scanFeatures'
>
>
> On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
>     Could you try to "inject" the feature URL to Pax Exam with something
>     like:
>
>          @Configuration
>          public Option[] config() {
>              Option[] options = new Option[]{
>                       keepRuntimeFolder(),
>     logLevel(LogLevelOption.__LogLevel.ERROR),
>
>     editConfigurationFileExtend("__etc/system.properties",
>     "my.feature.url",
>     maven().groupId("your").__artifactId("your").__versionAsInProject().__classifier("features").type("__xml").getURL()),
>
>     editConfigurationFileExtend("__etc/config.properties",
>     "org.apache.aries.blueprint.__synchronous", "true")
>              };
>              String debug = System.getProperty("debugMain"__);
>              if (debug != null) {
>                  int l = options.length;
>                  options = Arrays.copyOf(options, l + 1);
>                  options[l] =
>     KarafDistributionOption.__debugConfiguration();
>              }
>              return options;
>          }
>
>     How do you install the feature ? using executeCommand ?
>
>     Did you add the feature in etc/org.apache.karaf.features.__cfg if
>     you don't use executeCommand ?
>     You can modify the etc/org.apache.karaf.features.__cfg in your
>     project and inject using editConfigurationFileExtend or Append (as I
>     did in my example).
>
>     Regards
>     JB
>
>
>     On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>
>         Thx ;-)
>
>
>         On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré
>         <jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>
>              Add the feature dependency in your pom. It's where Pax Exam is
>              looking for feature.
>
>
>              On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>
>                  Hi,
>
>                  I experience a strange issue using pax-exam with Karaf
>         2.3.x
>
>                  The following features file is available in my local
>         maven repo
>
>
>         mvn:org.drools/drools-karaf-____features/6.1.0-SNAPSHOT/xml/____features
>
>
>                  -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>
>         /Users/chmoulli/.m2/____repository/org/drools/drools-____karaf-features/6.1.0-__SNAPSHOT/__drools-karaf-__features-6.1.0-__SNAPSHOT-__features.xml
>
>
>                  but when pax-exam tries to find the features, I get ERRORS
>                  (feature null
>                  not found, feature drools-module not found, ...) from
>                  FeaturesServiceImpl even if the features are well
>         present in
>                  features file
>
>                  example
>
>                        <feature name="drools-module"
>         version="6.1.0-SNAPSHOT"
>                  description="Drools core">
>                            <feature
>                  version="6.1.0-SNAPSHOT">____drools-common</feature>
>                            <feature
>         version="6.1.0-SNAPSHOT">kie</____feature>
>
>
>         <bundle>mvn:org.drools/drools-____core/6.1.0-SNAPSHOT</bundle>
>
>
>         <bundle>mvn:org.drools/drools-____compiler/6.1.0-SNAPSHOT</____bundle>
>
>
>         <bundle>mvn:org.drools/drools-____osgi-integration/6.1.0-____SNAPSHOT</bundle>
>                        </feature>
>
>         https://gist.github.com/____8470059
>         <https://gist.github.com/__8470059>
>         <https://gist.github.com/__8470059
>         <https://gist.github.com/8470059>>
>
>                  Line 1133 -->
>         http://grepcode.com/file/____repo1.maven.org/maven2/org.____apache.karaf.features/org.____apache.karaf.features.core/2.____3.0/org/apache/karaf/__features/__internal/__FeaturesServiceImpl.__java
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java>
>
>
>         <http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>         <http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>>
>
>                  As this is really hard to debug Pax-Exam + Karaf, does
>         anybody
>                  has an
>                  idea bout the issue  ? Could it be possible that
>         pax-exam does
>                  not look
>                  into my local repo ? Can I tell / force pax-exam to
>         look into my
>                  local
>                  repo ?
>
>                  Regards,
>
>                  --
>                  Charles Moulliard
>                  Apache Committer / Architect @RedHat
>                  Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>                  <http://cmoulliard.github.io>
>
>
>              --
>              Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>
>         http://blog.nanthrax.net
>              Talend - http://www.talend.com
>
>
>
>
>         --
>         Charles Moulliard
>         Apache Committer / Architect @RedHat
>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>         <http://cmoulliard.github.io>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
I will have a look to what you propose. Until now, I don't change the file '
etc/org.apache.karaf.features.cfg' and the features are added using '
scanFeatures'


On Fri, Jan 17, 2014 at 3:24 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> Could you try to "inject" the feature URL to Pax Exam with something like:
>
>     @Configuration
>     public Option[] config() {
>         Option[] options = new Option[]{
>                  keepRuntimeFolder(), logLevel(LogLevelOption.
> LogLevel.ERROR),
>                 editConfigurationFileExtend("etc/system.properties",
> "my.feature.url", maven().groupId("your").artifactId("your").
> versionAsInProject().classifier("features").type("xml").getURL()),
>                 editConfigurationFileExtend("etc/config.properties",
> "org.apache.aries.blueprint.synchronous", "true")
>         };
>         String debug = System.getProperty("debugMain");
>         if (debug != null) {
>             int l = options.length;
>             options = Arrays.copyOf(options, l + 1);
>             options[l] = KarafDistributionOption.debugConfiguration();
>         }
>         return options;
>     }
>
> How do you install the feature ? using executeCommand ?
>
> Did you add the feature in etc/org.apache.karaf.features.cfg if you don't
> use executeCommand ?
> You can modify the etc/org.apache.karaf.features.cfg in your project and
> inject using editConfigurationFileExtend or Append (as I did in my example).
>
> Regards
> JB
>
>
> On 01/17/2014 10:19 AM, Charles Moulliard wrote:
>
>> Thx ;-)
>>
>>
>> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>     Add the feature dependency in your pom. It's where Pax Exam is
>>     looking for feature.
>>
>>
>>     On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>>
>>         Hi,
>>
>>         I experience a strange issue using pax-exam with Karaf 2.3.x
>>
>>         The following features file is available in my local maven repo
>>
>>         mvn:org.drools/drools-karaf-__features/6.1.0-SNAPSHOT/xml/__
>> features
>>
>>
>>         -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>         /Users/chmoulli/.m2/__repository/org/drools/drools-_
>> _karaf-features/6.1.0-SNAPSHOT/__drools-karaf-features-6.1.0-__SNAPSHOT-
>> features.xml
>>
>>
>>         but when pax-exam tries to find the features, I get ERRORS
>>         (feature null
>>         not found, feature drools-module not found, ...) from
>>         FeaturesServiceImpl even if the features are well present in
>>         features file
>>
>>         example
>>
>>               <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>         description="Drools core">
>>                   <feature
>>         version="6.1.0-SNAPSHOT">__drools-common</feature>
>>                   <feature version="6.1.0-SNAPSHOT">kie</__feature>
>>
>>           <bundle>mvn:org.drools/drools-__core/6.1.0-SNAPSHOT</bundle>
>>
>>           <bundle>mvn:org.drools/drools-__compiler/6.1.0-SNAPSHOT</__
>> bundle>
>>
>>         <bundle>mvn:org.drools/drools-__osgi-integration/6.1.0-__
>> SNAPSHOT</bundle>
>>               </feature>
>>
>>         https://gist.github.com/__8470059 <https://gist.github.com/
>> 8470059>
>>
>>         Line 1133 -->
>>         http://grepcode.com/file/__repo1.maven.org/maven2/org.__
>> apache.karaf.features/org.__apache.karaf.features.core/2._
>> _3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>>
>>         <http://grepcode.com/file/repo1.maven.org/maven2/org.
>> apache.karaf.features/org.apache.karaf.features.core/2.
>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>
>>
>>         As this is really hard to debug Pax-Exam + Karaf, does anybody
>>         has an
>>         idea bout the issue  ? Could it be possible that pax-exam does
>>         not look
>>         into my local repo ? Can I tell / force pax-exam to look into my
>>         local
>>         repo ?
>>
>>         Regards,
>>
>>         --
>>         Charles Moulliard
>>         Apache Committer / Architect @RedHat
>>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>>         <http://cmoulliard.github.io>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Could you try to "inject" the feature URL to Pax Exam with something like:

     @Configuration
     public Option[] config() {
         Option[] options = new Option[]{
                  keepRuntimeFolder(), 
logLevel(LogLevelOption.LogLevel.ERROR),
                 editConfigurationFileExtend("etc/system.properties", 
"my.feature.url", 
maven().groupId("your").artifactId("your").versionAsInProject().classifier("features").type("xml").getURL()),
                 editConfigurationFileExtend("etc/config.properties", 
"org.apache.aries.blueprint.synchronous", "true")
         };
         String debug = System.getProperty("debugMain");
         if (debug != null) {
             int l = options.length;
             options = Arrays.copyOf(options, l + 1);
             options[l] = KarafDistributionOption.debugConfiguration();
         }
         return options;
     }

How do you install the feature ? using executeCommand ?

Did you add the feature in etc/org.apache.karaf.features.cfg if you 
don't use executeCommand ?
You can modify the etc/org.apache.karaf.features.cfg in your project and 
inject using editConfigurationFileExtend or Append (as I did in my example).

Regards
JB

On 01/17/2014 10:19 AM, Charles Moulliard wrote:
> Thx ;-)
>
>
> On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
>     Add the feature dependency in your pom. It's where Pax Exam is
>     looking for feature.
>
>
>     On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>
>         Hi,
>
>         I experience a strange issue using pax-exam with Karaf 2.3.x
>
>         The following features file is available in my local maven repo
>
>         mvn:org.drools/drools-karaf-__features/6.1.0-SNAPSHOT/xml/__features
>
>         -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>         /Users/chmoulli/.m2/__repository/org/drools/drools-__karaf-features/6.1.0-SNAPSHOT/__drools-karaf-features-6.1.0-__SNAPSHOT-features.xml
>
>         but when pax-exam tries to find the features, I get ERRORS
>         (feature null
>         not found, feature drools-module not found, ...) from
>         FeaturesServiceImpl even if the features are well present in
>         features file
>
>         example
>
>               <feature name="drools-module" version="6.1.0-SNAPSHOT"
>         description="Drools core">
>                   <feature
>         version="6.1.0-SNAPSHOT">__drools-common</feature>
>                   <feature version="6.1.0-SNAPSHOT">kie</__feature>
>
>           <bundle>mvn:org.drools/drools-__core/6.1.0-SNAPSHOT</bundle>
>
>           <bundle>mvn:org.drools/drools-__compiler/6.1.0-SNAPSHOT</__bundle>
>
>         <bundle>mvn:org.drools/drools-__osgi-integration/6.1.0-__SNAPSHOT</bundle>
>               </feature>
>
>         https://gist.github.com/__8470059 <https://gist.github.com/8470059>
>
>         Line 1133 -->
>         http://grepcode.com/file/__repo1.maven.org/maven2/org.__apache.karaf.features/org.__apache.karaf.features.core/2.__3.0/org/apache/karaf/features/__internal/FeaturesServiceImpl.__java
>         <http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java>
>
>         As this is really hard to debug Pax-Exam + Karaf, does anybody
>         has an
>         idea bout the issue  ? Could it be possible that pax-exam does
>         not look
>         into my local repo ? Can I tell / force pax-exam to look into my
>         local
>         repo ?
>
>         Regards,
>
>         --
>         Charles Moulliard
>         Apache Committer / Architect @RedHat
>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>         <http://cmoulliard.github.io>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Thx ;-)


On Fri, Jan 17, 2014 at 10:12 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> Add the feature dependency in your pom. It's where Pax Exam is looking for
> feature.
>
>
> On 01/17/2014 09:27 AM, Charles Moulliard wrote:
>
>> Hi,
>>
>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>
>> The following features file is available in my local maven repo
>>
>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>
>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>> /Users/chmoulli/.m2/repository/org/drools/drools-
>> karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-
>> SNAPSHOT-features.xml
>>
>> but when pax-exam tries to find the features, I get ERRORS (feature null
>> not found, feature drools-module not found, ...) from
>> FeaturesServiceImpl even if the features are well present in features file
>>
>> example
>>
>>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
>> description="Drools core">
>>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>>
>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>      </feature>
>>
>> https://gist.github.com/8470059
>>
>> Line 1133 -->
>> http://grepcode.com/file/repo1.maven.org/maven2/org.
>> apache.karaf.features/org.apache.karaf.features.core/2.
>> 3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>
>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>> idea bout the issue  ? Could it be possible that pax-exam does not look
>> into my local repo ? Can I tell / force pax-exam to look into my local
>> repo ?
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Add the feature dependency in your pom. It's where Pax Exam is looking 
for feature.

On 01/17/2014 09:27 AM, Charles Moulliard wrote:
> Hi,
>
> I experience a strange issue using pax-exam with Karaf 2.3.x
>
> The following features file is available in my local maven repo
>
> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>
> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
> /Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml
>
> but when pax-exam tries to find the features, I get ERRORS (feature null
> not found, feature drools-module not found, ...) from
> FeaturesServiceImpl even if the features are well present in features file
>
> example
>
>      <feature name="drools-module" version="6.1.0-SNAPSHOT"
> description="Drools core">
>          <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>          <feature version="6.1.0-SNAPSHOT">kie</feature>
>          <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>          <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>
> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>      </feature>
>
> https://gist.github.com/8470059
>
> Line 1133 -->
> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>
> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
> idea bout the issue  ? Could it be possible that pax-exam does not look
> into my local repo ? Can I tell / force pax-exam to look into my local
> repo ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

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

Re: Pax Exam issue / Karaf 2.3.x

Posted by Achim Nierbeck <bc...@googlemail.com>.
But you didn't add a dependency to the feature in your pom, or did I miss
it while shortly glancing at it?
Cause afaik that would help :)

regards, Achim


2014/1/17 Charles Moulliard <ch...@gmail.com>

> Code of the project is here :
> https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/drools-osgi/drools-karaf-itest
>
>
> On Fri, Jan 17, 2014 at 9:48 AM, Charles Moulliard <ch...@gmail.com>wrote:
>
>> Pom of the project uses as dependency drools-core, kie-spring, kie-camel
>> but as you can see drools-module is an umbrella to retrieve many more
>> features defined under "drools-common"
>>
>>     <feature name="drools-common" version="${drools.version}"
>> description="Drools Commons">
>>         <feature version="[2.6,3.0)">cxf-specs</feature>
>>
>> <bundle>mvn:com.google.protobuf/protobuf-java/${karaf.version.com.google.protobuf}</bundle>
>>
>> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/${karaf.servicemix.version.org.antlr}</bundle>
>>
>> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/${karaf.servicemix.version.com.thoughtworks.xstream}</bundle>
>>         <bundle
>> start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/${karaf.servicemix.version.javax.xml.bind.jaxb}</bundle>
>>         <bundle
>> start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/${karaf.servicemix.version.com.sun.xml.bind.jaxb}</bundle>
>>         <bundle
>> start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/${karaf.servicemix.version.com.sun.xml.bind.jaxb}</bundle>
>>         <bundle>mvn:org.mvel/mvel2/${karaf.version.org.mvel}</bundle>
>>
>> <bundle>wrap:mvn:org.eclipse.jdt.core.compiler/ecj/${karaf.version.org.eclipse.jdt.core.compiler}$Bundle-SymbolicName=Eclipse-JDT-Compiler&amp;Bundle-Version=${karaf.version.org.eclipse.jdt.core.compiler}</bundle>
>>
>> <bundle>wrap:mvn:org.codehaus.janino/janino/${karaf.version.org.codehaus.janino}$Bundle-SymbolicName=Codehaus-Janino&amp;Bundle-Version=${karaf.version.org.codehaus.janino}</bundle>
>>
>> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/${karaf.servicemix.version.org.quartz-scheduler}</bundle>
>>
>> <bundle>mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/${karaf.version.javax.inject}</bundle>
>>
>> <bundle>wrap:mvn:javax.enterprise/cdi-api/${karaf.version.javax.enterprise.cdi}</bundle>
>>     </feature>
>>
>> Version of the project is defined as property
>>
>> - Code used to create the features file URL
>>
>>     public static MavenArtifactProvisionOption getFeaturesUrl(String
>> groupId, String artifactId, String version) {
>>          MavenArtifactProvisionOption mapo =
>>  mavenBundle().groupId(groupId).artifactId(artifactId);
>>         mapo.type("xml/features");
>>
>>         if (version == null) {
>>             mapo.versionAsInProject();
>>         } else {
>>             mapo.version(version);
>>         }
>>
>>         LOG.info("Features URL : " + mapo.getURL());
>>
>>         return mapo;
>>     }
>>
>> >> Features URL :
>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>
>> - Called like that to retrieve the features
>>
>>     public static Option loadDroolsKieFeatures(String... features) {
>>         List<String> result = new ArrayList<String>();
>>         result.add("drools-module");
>>         for (String feature : features) {
>>             result.add(feature);
>>         }
>>
>>         return
>> scanFeatures(getFeaturesUrl("org.drools","drools-karaf-features",DroolsVersion),
>> result.toArray(new String[4 + features.length]));
>>     }
>>
>>
>>
>> On Fri, Jan 17, 2014 at 9:40 AM, Achim Nierbeck <bc...@googlemail.com>wrote:
>>
>>> Hi Charles,
>>>
>>> are you using this dependency in your maven pom file.
>>> For me it usually works best if all dependencies are first resolved
>>> through maven.
>>> If done so the versionAsInProject can also be used.
>>>
>>> regards, Achim
>>>
>>>
>>> 2014/1/17 Charles Moulliard <ch...@gmail.com>
>>>
>>>> Hi,
>>>>
>>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>>
>>>> The following features file is available in my local maven repo
>>>>
>>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>>
>>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>>> /Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml
>>>>
>>>> but when pax-exam tries to find the features, I get ERRORS (feature
>>>> null not found, feature drools-module not found, ...) from
>>>> FeaturesServiceImpl even if the features are well present in features file
>>>>
>>>> example
>>>>
>>>>     <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>>> description="Drools core">
>>>>         <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>>         <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>>         <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>>         <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>>>>
>>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>>>     </feature>
>>>>
>>>> https://gist.github.com/8470059
>>>>
>>>> Line 1133 -->
>>>> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>>
>>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>>> idea bout the issue  ? Could it be possible that pax-exam does not look
>>>> into my local repo ? Can I tell / force pax-exam to look into my local repo
>>>> ?
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Charles Moulliard
>>>> Apache Committer / Architect @RedHat
>>>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> & Project Lead
>>> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
>>> Commiter & Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Code of the project is here :
https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/drools-osgi/drools-karaf-itest


On Fri, Jan 17, 2014 at 9:48 AM, Charles Moulliard <ch...@gmail.com> wrote:

> Pom of the project uses as dependency drools-core, kie-spring, kie-camel
> but as you can see drools-module is an umbrella to retrieve many more
> features defined under "drools-common"
>
>     <feature name="drools-common" version="${drools.version}"
> description="Drools Commons">
>         <feature version="[2.6,3.0)">cxf-specs</feature>
>
> <bundle>mvn:com.google.protobuf/protobuf-java/${karaf.version.com.google.protobuf}</bundle>
>
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/${karaf.servicemix.version.org.antlr}</bundle>
>
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/${karaf.servicemix.version.com.thoughtworks.xstream}</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/${karaf.servicemix.version.javax.xml.bind.jaxb}</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/${karaf.servicemix.version.com.sun.xml.bind.jaxb}</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/${karaf.servicemix.version.com.sun.xml.bind.jaxb}</bundle>
>         <bundle>mvn:org.mvel/mvel2/${karaf.version.org.mvel}</bundle>
>
> <bundle>wrap:mvn:org.eclipse.jdt.core.compiler/ecj/${karaf.version.org.eclipse.jdt.core.compiler}$Bundle-SymbolicName=Eclipse-JDT-Compiler&amp;Bundle-Version=${karaf.version.org.eclipse.jdt.core.compiler}</bundle>
>
> <bundle>wrap:mvn:org.codehaus.janino/janino/${karaf.version.org.codehaus.janino}$Bundle-SymbolicName=Codehaus-Janino&amp;Bundle-Version=${karaf.version.org.codehaus.janino}</bundle>
>
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/${karaf.servicemix.version.org.quartz-scheduler}</bundle>
>
> <bundle>mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/${karaf.version.javax.inject}</bundle>
>
> <bundle>wrap:mvn:javax.enterprise/cdi-api/${karaf.version.javax.enterprise.cdi}</bundle>
>     </feature>
>
> Version of the project is defined as property
>
> - Code used to create the features file URL
>
>     public static MavenArtifactProvisionOption getFeaturesUrl(String
> groupId, String artifactId, String version) {
>         MavenArtifactProvisionOption mapo =
>  mavenBundle().groupId(groupId).artifactId(artifactId);
>         mapo.type("xml/features");
>
>         if (version == null) {
>             mapo.versionAsInProject();
>         } else {
>             mapo.version(version);
>         }
>
>         LOG.info("Features URL : " + mapo.getURL());
>
>         return mapo;
>     }
>
> >> Features URL :
> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>
> - Called like that to retrieve the features
>
>     public static Option loadDroolsKieFeatures(String... features) {
>         List<String> result = new ArrayList<String>();
>         result.add("drools-module");
>         for (String feature : features) {
>             result.add(feature);
>         }
>
>         return
> scanFeatures(getFeaturesUrl("org.drools","drools-karaf-features",DroolsVersion),
> result.toArray(new String[4 + features.length]));
>     }
>
>
>
> On Fri, Jan 17, 2014 at 9:40 AM, Achim Nierbeck <bc...@googlemail.com>wrote:
>
>> Hi Charles,
>>
>> are you using this dependency in your maven pom file.
>> For me it usually works best if all dependencies are first resolved
>> through maven.
>> If done so the versionAsInProject can also be used.
>>
>> regards, Achim
>>
>>
>> 2014/1/17 Charles Moulliard <ch...@gmail.com>
>>
>>> Hi,
>>>
>>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>>
>>> The following features file is available in my local maven repo
>>>
>>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>>
>>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>>> /Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml
>>>
>>> but when pax-exam tries to find the features, I get ERRORS (feature null
>>> not found, feature drools-module not found, ...) from FeaturesServiceImpl
>>> even if the features are well present in features file
>>>
>>> example
>>>
>>>     <feature name="drools-module" version="6.1.0-SNAPSHOT"
>>> description="Drools core">
>>>         <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>>         <feature version="6.1.0-SNAPSHOT">kie</feature>
>>>         <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>>         <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>>>
>>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>>     </feature>
>>>
>>> https://gist.github.com/8470059
>>>
>>> Line 1133 -->
>>> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>>
>>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>>> idea bout the issue  ? Could it be possible that pax-exam does not look
>>> into my local repo ? Can I tell / force pax-exam to look into my local repo
>>> ?
>>>
>>> Regards,
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Architect @RedHat
>>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>>
>>>
>>
>>
>> --
>>
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
>> Commiter & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Charles Moulliard <ch...@gmail.com>.
Pom of the project uses as dependency drools-core, kie-spring, kie-camel
but as you can see drools-module is an umbrella to retrieve many more
features defined under "drools-common"

    <feature name="drools-common" version="${drools.version}"
description="Drools Commons">
        <feature version="[2.6,3.0)">cxf-specs</feature>

<bundle>mvn:com.google.protobuf/protobuf-java/${karaf.version.com.google.protobuf}</bundle>

<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/${karaf.servicemix.version.org.antlr}</bundle>

<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/${karaf.servicemix.version.com.thoughtworks.xstream}</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/${karaf.servicemix.version.javax.xml.bind.jaxb}</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/${karaf.servicemix.version.com.sun.xml.bind.jaxb}</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/${karaf.servicemix.version.com.sun.xml.bind.jaxb}</bundle>
        <bundle>mvn:org.mvel/mvel2/${karaf.version.org.mvel}</bundle>

<bundle>wrap:mvn:org.eclipse.jdt.core.compiler/ecj/${karaf.version.org.eclipse.jdt.core.compiler}$Bundle-SymbolicName=Eclipse-JDT-Compiler&amp;Bundle-Version=${karaf.version.org.eclipse.jdt.core.compiler}</bundle>

<bundle>wrap:mvn:org.codehaus.janino/janino/${karaf.version.org.codehaus.janino}$Bundle-SymbolicName=Codehaus-Janino&amp;Bundle-Version=${karaf.version.org.codehaus.janino}</bundle>

<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/${karaf.servicemix.version.org.quartz-scheduler}</bundle>

<bundle>mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/${karaf.version.javax.inject}</bundle>

<bundle>wrap:mvn:javax.enterprise/cdi-api/${karaf.version.javax.enterprise.cdi}</bundle>
    </feature>

Version of the project is defined as property

- Code used to create the features file URL

    public static MavenArtifactProvisionOption getFeaturesUrl(String
groupId, String artifactId, String version) {
        MavenArtifactProvisionOption mapo =
 mavenBundle().groupId(groupId).artifactId(artifactId);
        mapo.type("xml/features");

        if (version == null) {
            mapo.versionAsInProject();
        } else {
            mapo.version(version);
        }

        LOG.info("Features URL : " + mapo.getURL());

        return mapo;
    }

>> Features URL :
mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features

- Called like that to retrieve the features

    public static Option loadDroolsKieFeatures(String... features) {
        List<String> result = new ArrayList<String>();
        result.add("drools-module");
        for (String feature : features) {
            result.add(feature);
        }

        return
scanFeatures(getFeaturesUrl("org.drools","drools-karaf-features",DroolsVersion),
result.toArray(new String[4 + features.length]));
    }



On Fri, Jan 17, 2014 at 9:40 AM, Achim Nierbeck <bc...@googlemail.com>wrote:

> Hi Charles,
>
> are you using this dependency in your maven pom file.
> For me it usually works best if all dependencies are first resolved
> through maven.
> If done so the versionAsInProject can also be used.
>
> regards, Achim
>
>
> 2014/1/17 Charles Moulliard <ch...@gmail.com>
>
>> Hi,
>>
>> I experience a strange issue using pax-exam with Karaf 2.3.x
>>
>> The following features file is available in my local maven repo
>>
>> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>>
>> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
>> /Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml
>>
>> but when pax-exam tries to find the features, I get ERRORS (feature null
>> not found, feature drools-module not found, ...) from FeaturesServiceImpl
>> even if the features are well present in features file
>>
>> example
>>
>>     <feature name="drools-module" version="6.1.0-SNAPSHOT"
>> description="Drools core">
>>         <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>>         <feature version="6.1.0-SNAPSHOT">kie</feature>
>>         <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>>         <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>>
>> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>>     </feature>
>>
>> https://gist.github.com/8470059
>>
>> Line 1133 -->
>> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>>
>> As this is really hard to debug Pax-Exam + Karaf, does anybody has an
>> idea bout the issue  ? Could it be possible that pax-exam does not look
>> into my local repo ? Can I tell / force pax-exam to look into my local repo
>> ?
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>>
>>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
> Commiter & Project Lead
> blog <http://notizblog.nierbeck.de/>
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Pax Exam issue / Karaf 2.3.x

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Charles,

are you using this dependency in your maven pom file.
For me it usually works best if all dependencies are first resolved through
maven.
If done so the versionAsInProject can also be used.

regards, Achim


2014/1/17 Charles Moulliard <ch...@gmail.com>

> Hi,
>
> I experience a strange issue using pax-exam with Karaf 2.3.x
>
> The following features file is available in my local maven repo
>
> mvn:org.drools/drools-karaf-features/6.1.0-SNAPSHOT/xml/features
>
> -rw-r--r--  1 chmoulli  1881291218  10473 Jan 17 08:45
> /Users/chmoulli/.m2/repository/org/drools/drools-karaf-features/6.1.0-SNAPSHOT/drools-karaf-features-6.1.0-SNAPSHOT-features.xml
>
> but when pax-exam tries to find the features, I get ERRORS (feature null
> not found, feature drools-module not found, ...) from FeaturesServiceImpl
> even if the features are well present in features file
>
> example
>
>     <feature name="drools-module" version="6.1.0-SNAPSHOT"
> description="Drools core">
>         <feature version="6.1.0-SNAPSHOT">drools-common</feature>
>         <feature version="6.1.0-SNAPSHOT">kie</feature>
>         <bundle>mvn:org.drools/drools-core/6.1.0-SNAPSHOT</bundle>
>         <bundle>mvn:org.drools/drools-compiler/6.1.0-SNAPSHOT</bundle>
>
> <bundle>mvn:org.drools/drools-osgi-integration/6.1.0-SNAPSHOT</bundle>
>     </feature>
>
> https://gist.github.com/8470059
>
> Line 1133 -->
> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.features/org.apache.karaf.features.core/2.3.0/org/apache/karaf/features/internal/FeaturesServiceImpl.java
>
> As this is really hard to debug Pax-Exam + Karaf, does anybody has an idea
> bout the issue  ? Could it be possible that pax-exam does not look into my
> local repo ? Can I tell / force pax-exam to look into my local repo ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>