<dependencyManagement>
<depenenencies>
....
<!--this override the one under karaf-exam to pickup a fix -->
<!-- remove this when karaf pickup pax-exam 2.6+ -->
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>${pax-exam.version}</version>
</dependency>
...
</dependencies>
</dependencyManagement>
On Thu, Jan 3, 2013 at 1:10 AM, Bengt Rodehav <[email protected]> wrote:
> I've had the exact same problem and have really been scratching my head...
>
> Dan, can you share exactly what you put in the dependency management
> section?
>
> /Bengt
>
>
> 2013/1/3 mikevan <[email protected]>
>>
>> Great catch, Dan!
>>
>> On 1/2/2013 9:47 PM, dantran [via Karaf] wrote:
>> > Looks like it is a bug under pax-exam 2.4, by forcing my maven build
>> > to pickup pax-exam 2.6 via dependencyManagement fixes the issue.
>> >
>> > My guess karaf 2.3.1-SNAPSHOT also seeing the same issue, so upgrading
>> > to pax-exam 1.6 would fix it as well
>> >
>> > -Dan
>> >
>> >
>> > On Wed, Jan 2, 2013 at 7:13 PM, Dan Tran <[hidden email]
>> > </user/SendEmail.jtp?type=node&node=4027176&i=0>> wrote:
>> >
>> > > Hi
>> > >
>> > > My pax-exam test started to fail with the following trace
>> > >
>> > > java.lang.Exception: Could not start bundle
>> > > mvn:org.ops4j.pax.swissbox/pax-swissbox-core/ in feature(s)
>> > > exam-2.4.0: Unresolved constraint in bundle
>> > > org.ops4j.pax.swissbox.core [68]: Unable to resolve
>> > > 68.0: missing requirement [68.0] osgi.wiring.package;
>> > > (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0))
>> > > at
>> >
>> > org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:476)[20:org.apache.karaf.features.core:2.3.0]
>> > > at
>> >
>> > org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1141)[20:org.apache.karaf.features.core:2.3.0]
>> > > Caused by: org.osgi.framework.BundleException: Unresolved constraint
>> > > in bundle org.ops4j.pax.swissbox.core [68]: Unable to resolve 68.0:
>> > > missing requirement [68.0] osgi.wiring.package; (&(osgi.wiring.
>> > > package=org.ops4j.lang)(version>=1.4.0))
>> > > at
>> >
>> > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)[org.apache.felix.framework-4.0.3.jar:]
>> > > at
>> >
>> > org.apache.felix.framework.Felix.startBundle(Felix.java:1868)[org.apache.felix.framework-4.0.3.jar:]
>> > > at
>> >
>> > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:]
>> > > at
>> >
>> > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)[org.apache.felix.framework-4.0.3.jar:]
>> > > at
>> >
>> > org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:473)[20:org.apache.karaf.features.core:2.3.0]
>> > > ... 1 more
>> > >
>> > >
>> > > Further investigation points to a generated feature file under my exam
>> > > directory with this name examfeatures.xml
>> > >
>> > > <?xml version="1.0" encoding="UTF-8"?>
>> > > <features name="pax-exam-features-2.4.0">
>> > > <feature name="exam" version="2.4.0">
>> > >
>> > > <bundle
>> > start-level='5'>mvn:org.ops4j.base/ops4j-base-lang/1.3.0</bundle>
>> > > <bundle
>> > start-level='5'>mvn:org.ops4j.base/ops4j-base-monitors/1.3.0</bundle>
>> > > <bundle
>> > > start-level='5'>mvn:org.ops4j.base/ops4j-base-net/1.3.0</bundle>
>> > > <bundle
>> > start-level='5'>mvn:org.ops4j.base/ops4j-base-store/1.3.0</bundle>
>> > > <bundle
>> > > start-level='5'>mvn:org.ops4j.base/ops4j-base-io/1.3.0</bundle>
>> > > <bundle
>> > > start-level='5'>mvn:org.ops4j.base/ops4j-base-spi/1.3.0</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.base/ops4j-base-util-property/1.3.0</bundle>
>> > > <bundle
>> > start-level='5'>mvn:org.ops4j.pax.swissbox/pax-swissbox-core/</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.pax.swissbox/pax-swissbox-extender/</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.pax.swissbox/pax-swissbox-lifecycle/</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.pax.swissbox/pax-swissbox-framework/</bundle>
>> > > <bundle start-level='5'>mvn:org.ops4j.pax.exam/pax-exam/2.4.0</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.pax.exam/pax-exam-extender-service/2.4.0</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.pax.exam/pax-exam-container-rbc/2.4.0</bundle>
>> > > <bundle start-level='5'>wrap:mvn:junit/junit/4.10</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.ops4j.pax.exam/pax-exam-invoker-junit/2.4.0</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.apache.karaf.tooling.exam/org.apache.karaf.tooling.exam.options/2.3.0</bundle>
>> > > <bundle
>> >
>> > start-level='5'>mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.0</bundle>
>> > > <bundle
>> > start-level='5'>mvn:org.ops4j.pax.exam/pax-exam-inject/2.4.0</bundle>
>> > > </feature>
>> > > </features>
>> > >
>> > >
>> > > Where pax-swissbox-xxx bundles do not have associated version, by
>> > > default it would pickup the latest version 1.6 ( release on
>> > > 12/26/2012), instead of 1.5.1 and cause the failure
>> > >
>> > > How do I fix this? Adding those artifact into my test dependencies
>> > > does not work either
>> > >
>> > > Thanks
>> > >
>> > > -Dan
>> >
>> >
>> > ------------------------------------------------------------------------
>> > If you reply to this email, your message will be added to the
>> > discussion below:
>> >
>> > http://karaf.922171.n3.nabble.com/My-Karaf-PaxExam-test-mysteriously-fails-after-new-year-tp4027175p4027176.html
>> >
>> > To start a new topic under Karaf - User, email
>> > [email protected]
>> > To unsubscribe from Karaf - User, click here
>> >
>> > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=930749&code=bXZhbmdlZXJ0cnV5QGNvbWNhc3QubmV0fDkzMDc0OXwtNjA0ODc4OTY2>.
>> > NAML
>> >
>> > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>> >
>>
>>
>>
>>
>>
>> -----
>> Mike Van (All links open in new tabs)
>> Committer - Kalumet
>>
>> Atraxia Technologies
>>
>> Mike Van's Open Source Technologies Blog
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/My-Karaf-PaxExam-test-mysteriously-fails-after-new-year-tp4027175p4027177.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>