Hi Andreas,

Thanks for your help,
I just sent a mail with the below patch to the Karaf dev mailing list to ask for help.

You can see the error easily by apply the blow patch.

diff --git a/itests/tests/src/test/java/org/apache/karaf/shell/itests/FeaturesTest.java b/itests/tes
index 074a29e..cb57b25 100644
--- a/itests/tests/src/test/java/org/apache/karaf/shell/itests/FeaturesTest.java +++ b/itests/tests/src/test/java/org/apache/karaf/shell/itests/FeaturesTest.java @@ -61,6 +61,7 @@ public class FeaturesTest extends AbstractIntegrationTest {

             // add two features
             Helper.loadKarafStandardFeatures("obr", "wrapper"),
+            Helper.loadKarafStandardFeatures("spring", "http"),

             workingDirectory("target/paxrunner/features/"),


Willem

On 3/16/11 3:16 PM, Andreas Pieber wrote:
Hey Willem,

On Wed, Mar 16, 2011 at 4:59 AM, Willem Jiang<willem.ji...@gmail.com>  wrote:
I updated the camel itest-osgi-karaf to use Pax-Exam 1.2.4, it looks like
current pax-exam doesn't support the new features of Karaf-2.2.0.

Interesting, but 1.2.4 is based on karaf-2.2.0 (at least the scanner
component) and I'm running integration tests based on it. Can you
please file the problems as issues for pax-exam? Than I can take a
detailed look what's missing for your use cases.

As karaf stand feature has more than on Spring feature, it's hard to let the
pax-exam to tell which version of feature it should load. So the Pax-Exam
tests can't be started rightly.

Sorry, but I'm confused again: you can add versions to features (using
the<feature>  tag in your features.xml or using scan-feature).
Otherwise the latest will be used by default.

Before upgrading to new version of Pax-Exam which fixed that issue, we can't
run camel integration tests successfully.

I will check the karaf integration tests today, to see if there is other
solution for this kind of issue.

Feel free to ask for help. I did already some more complex integration
testing based on karaf and exam than we do in Karaf itself.

Kind regards,
Andreas


Willem

On 3/15/11 10:31 PM, Andreas Pieber wrote:

Hey Willem, JB,

If I understand you correctly this problem should only affect 2.2.x
branch but not the master. The problem should be, AFAIK that we use
pax-exam 1.2.3 in karaf-2.2 which uses an old version of karaf. I'll
upgrade 2.2.x to exam 1.2.4. Can you please check if this fixes your
problems?

Kind regards,
Andreas



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to