karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Possible issue with Pax-Exam 2.x and testing with Karaf 2.3.0
Date Sat, 10 Nov 2012 08:49:00 GMT
On Fri, Nov 9, 2012 at 4:18 PM, Jean-Baptiste Onofré <jb@nanthrax.net> wrote:
> Hi Claus,
>
> I plan to "update" the Camel Karaf itests to use pax-exam-karaf (provided
> with Karaf 2.3.0).
>

Ah yeah that would be lovely. Fell free to log a JIRA ticket.

> It will solve this issue. In the mean time, I fix the pax-exam behavior (and
> check in Karaf as well as it should be supported).
>
> Regards
> JB
>
>
> On 11/08/2012 07:54 AM, Claus Ibsen wrote:
>>
>> Hi
>>
>> At Apache Camel we have a number of OSGi tests in 2 flavors
>> - testing that a feature can be installed (eg Camel components)
>> - and then as regular unit tests by triggering some logic, eg with
>> Camel to process messages in Karaf container.
>>
>> So as part of the Karaf 2.3.0 upgrade for the upcoming Camel 2.11
>> release, I hit an issue with the tests above. Upgrading from Karaf
>> 2.2.9 -> 2.3.0.
>>
>> It seems that Pax Exam 2.4.0 (then later upgraded to 2.6.0) modifies
>> the etc/config.properties from the Apache Karaf tar.gz distro. Eg it
>> adds a #modified by Pax Exam comment in the top of this file.
>>
>> Well what I am saying is that the Karaf container could not be started
>> properly, and failed with a zillion weird errors.
>>
>> So I could "fix" this by forcing Pax Exam to override the
>> etc/config.properties file, by copying back the original file from the
>> tar.gz file. Then it all worked fine again.
>>
>> See this source code
>>
>> https://svn.apache.org/repos/asf/camel/trunk/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/AbstractFeatureTest.java
>>
>>
>> A snippet of the errors is posted in this mail thread
>>
>> http://camel.465427.n5.nabble.com/HEADS-UP-Camel-trunk-has-been-upgraded-to-Aries-1-0-0-OSGi-4-3-0-Karaf-2-3-0-tp5722154.html
>>
>>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message