You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Michael Szalay <mi...@basis06.ch> on 2013/01/08 10:40:06 UTC
All Pax Exam Integration Tests do not work anymore
Hi all
since a few days, all our pax exam karaf integration tests do not work anymore.
The error message is:
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 [79]: Unable to resolve 79.0: missing requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:356)[21:org.apache.karaf.features.core:2.2.9]
at org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:988)[21:org.apache.karaf.features.core:2.2.9]
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.core [79]: Unable to resolve 79.0: missing requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.2.2.jar:]
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353)[21:org.apache.karaf.features.core:2.2.9]
We use the following versions pax and karaf exam:
<!-- PAX Exam -->
<dependency>
<groupId>org.apache.karaf.tooling.exam</groupId>
<artifactId>org.apache.karaf.tooling.exam.container</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit4</artifactId>
<version>2.6.0</version>
</dependency>
any hints what has changed here?
Regards Michael
Re: All Pax Exam Integration Tests do not work anymore
Posted by Christoph Gritschenberger <ch...@gmail.com>.
I think this happens mostly on clean local .m2-repos.
Here's a link to the original issue (which contains a patch)
kind regards,
christoph
On 2013-01-08 11:38, Michael Szalay wrote:
> Yes, adding this
>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>org.ops4j.pax.exam</groupId>
> <artifactId>pax-exam</artifactId>
> <version>2.6.0</version>
> </dependency>
> </dependencies>
> </dependencyManagement>
>
> ..and now everything works again.
>
> Magic moments...
>
> Thanks
>
> ----- Ursprüngliche Mail -----
> Von: "Peter Gardfjäll" <pe...@gmail.com>
> An: user@karaf.apache.org
> CC: "Jean-Baptiste Onofré" <jb...@nanthrax.net>
> Gesendet: Dienstag, 8. Januar 2013 11:12:05
> Betreff: Re: All Pax Exam Integration Tests do not work anymore
>
> I think this is caused by
> https://issues.apache.org/jira/browse/KARAF-2096
>
> Have a look at
> http://karaf.922171.n3.nabble.com/My-Karaf-PaxExam-test-mysteriously-fails-after-new-year-td4027175.html
>
> best regards, Peter
>
>
> On 01/08/2013 11:08 AM, Jean-Baptiste Onofré wrote:
>> Hi Michael,
>>
>> I gonna to take a look but it may be a change on the OPS4J repo.
>>
>> Thanks for the report.
>>
>> Regards
>> JB
>>
>> On 01/08/2013 10:40 AM, Michael Szalay wrote:
>>> Hi all
>>>
>>> since a few days, all our pax exam karaf integration tests do not work
>>> anymore.
>>>
>>> The error message is:
>>>
>>> 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 [79]: Unable to resolve 79.0: missing
>>> requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
>>> at
>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:356)[21:org.apache.karaf.features.core:2.2.9]
>>>
>>> at
>>> org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:988)[21:org.apache.karaf.features.core:2.2.9]
>>>
>>> Caused by: org.osgi.framework.BundleException: Unresolved constraint
>>> in bundle org.ops4j.pax.swissbox.core [79]: Unable to resolve 79.0:
>>> missing requirement [79.0] package;
>>> (&(package=org.ops4j.lang)(version>=1.4.0))
>>> at
>>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
>>>
>>> at
>>> org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
>>>
>>> at
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
>>>
>>> at
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.2.2.jar:]
>>>
>>> at
>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353)[21:org.apache.karaf.features.core:2.2.9]
>>>
>>>
>>>
>>> We use the following versions pax and karaf exam:
>>>
>>> <!-- PAX Exam -->
>>> <dependency>
>>> <groupId>org.apache.karaf.tooling.exam</groupId>
>>>
>>> <artifactId>org.apache.karaf.tooling.exam.container</artifactId>
>>> <version>2.3.0</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.ops4j.pax.exam</groupId>
>>> <artifactId>pax-exam-junit4</artifactId>
>>> <version>2.6.0</version>
>>> </dependency>
>>>
>>> any hints what has changed here?
>>>
>>> Regards Michael
>>>
>>
>
Re: All Pax Exam Integration Tests do not work anymore
Posted by Michael Szalay <mi...@basis06.ch>.
Yes, adding this
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>2.6.0</version>
</dependency>
</dependencies>
</dependencyManagement>
..and now everything works again.
Magic moments...
Thanks
----- Ursprüngliche Mail -----
Von: "Peter Gardfjäll" <pe...@gmail.com>
An: user@karaf.apache.org
CC: "Jean-Baptiste Onofré" <jb...@nanthrax.net>
Gesendet: Dienstag, 8. Januar 2013 11:12:05
Betreff: Re: All Pax Exam Integration Tests do not work anymore
I think this is caused by
https://issues.apache.org/jira/browse/KARAF-2096
Have a look at
http://karaf.922171.n3.nabble.com/My-Karaf-PaxExam-test-mysteriously-fails-after-new-year-td4027175.html
best regards, Peter
On 01/08/2013 11:08 AM, Jean-Baptiste Onofré wrote:
> Hi Michael,
>
> I gonna to take a look but it may be a change on the OPS4J repo.
>
> Thanks for the report.
>
> Regards
> JB
>
> On 01/08/2013 10:40 AM, Michael Szalay wrote:
>> Hi all
>>
>> since a few days, all our pax exam karaf integration tests do not work
>> anymore.
>>
>> The error message is:
>>
>> 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 [79]: Unable to resolve 79.0: missing
>> requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
>> at
>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:356)[21:org.apache.karaf.features.core:2.2.9]
>>
>> at
>> org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:988)[21:org.apache.karaf.features.core:2.2.9]
>>
>> Caused by: org.osgi.framework.BundleException: Unresolved constraint
>> in bundle org.ops4j.pax.swissbox.core [79]: Unable to resolve 79.0:
>> missing requirement [79.0] package;
>> (&(package=org.ops4j.lang)(version>=1.4.0))
>> at
>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353)[21:org.apache.karaf.features.core:2.2.9]
>>
>>
>>
>> We use the following versions pax and karaf exam:
>>
>> <!-- PAX Exam -->
>> <dependency>
>> <groupId>org.apache.karaf.tooling.exam</groupId>
>>
>> <artifactId>org.apache.karaf.tooling.exam.container</artifactId>
>> <version>2.3.0</version>
>> </dependency>
>> <dependency>
>> <groupId>org.ops4j.pax.exam</groupId>
>> <artifactId>pax-exam-junit4</artifactId>
>> <version>2.6.0</version>
>> </dependency>
>>
>> any hints what has changed here?
>>
>> Regards Michael
>>
>
Re: All Pax Exam Integration Tests do not work anymore
Posted by Peter Gardfjäll <pe...@gmail.com>.
I think this is caused by
https://issues.apache.org/jira/browse/KARAF-2096
Have a look at
http://karaf.922171.n3.nabble.com/My-Karaf-PaxExam-test-mysteriously-fails-after-new-year-td4027175.html
best regards, Peter
On 01/08/2013 11:08 AM, Jean-Baptiste Onofré wrote:
> Hi Michael,
>
> I gonna to take a look but it may be a change on the OPS4J repo.
>
> Thanks for the report.
>
> Regards
> JB
>
> On 01/08/2013 10:40 AM, Michael Szalay wrote:
>> Hi all
>>
>> since a few days, all our pax exam karaf integration tests do not work
>> anymore.
>>
>> The error message is:
>>
>> 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 [79]: Unable to resolve 79.0: missing
>> requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
>> at
>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:356)[21:org.apache.karaf.features.core:2.2.9]
>>
>> at
>> org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:988)[21:org.apache.karaf.features.core:2.2.9]
>>
>> Caused by: org.osgi.framework.BundleException: Unresolved constraint
>> in bundle org.ops4j.pax.swissbox.core [79]: Unable to resolve 79.0:
>> missing requirement [79.0] package;
>> (&(package=org.ops4j.lang)(version>=1.4.0))
>> at
>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.2.2.jar:]
>>
>> at
>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353)[21:org.apache.karaf.features.core:2.2.9]
>>
>>
>>
>> We use the following versions pax and karaf exam:
>>
>> <!-- PAX Exam -->
>> <dependency>
>> <groupId>org.apache.karaf.tooling.exam</groupId>
>>
>> <artifactId>org.apache.karaf.tooling.exam.container</artifactId>
>> <version>2.3.0</version>
>> </dependency>
>> <dependency>
>> <groupId>org.ops4j.pax.exam</groupId>
>> <artifactId>pax-exam-junit4</artifactId>
>> <version>2.6.0</version>
>> </dependency>
>>
>> any hints what has changed here?
>>
>> Regards Michael
>>
>
Re: All Pax Exam Integration Tests do not work anymore
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Michael,
I gonna to take a look but it may be a change on the OPS4J repo.
Thanks for the report.
Regards
JB
On 01/08/2013 10:40 AM, Michael Szalay wrote:
> Hi all
>
> since a few days, all our pax exam karaf integration tests do not work anymore.
>
> The error message is:
>
> 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 [79]: Unable to resolve 79.0: missing requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
> at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:356)[21:org.apache.karaf.features.core:2.2.9]
> at org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:988)[21:org.apache.karaf.features.core:2.2.9]
> Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.core [79]: Unable to resolve 79.0: missing requirement [79.0] package; (&(package=org.ops4j.lang)(version>=1.4.0))
> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.2.2.jar:]
> at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353)[21:org.apache.karaf.features.core:2.2.9]
>
>
> We use the following versions pax and karaf exam:
>
> <!-- PAX Exam -->
> <dependency>
> <groupId>org.apache.karaf.tooling.exam</groupId>
> <artifactId>org.apache.karaf.tooling.exam.container</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>org.ops4j.pax.exam</groupId>
> <artifactId>pax-exam-junit4</artifactId>
> <version>2.6.0</version>
> </dependency>
>
> any hints what has changed here?
>
> Regards Michael
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: which parameters should be configured in org.ops4j.pax.web.cfg
or Jetty.xml?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
You can see the configuration like a gather between the
org.ops4j.pax.web.cfg and jetty.xml:
- pax.web.cfg configures a default Jetty connector (HTTP/HTTPs)
- when you reference a jetty.xml in pax.web.cfg, you can configure
additional Jetty connectors
Regards
JB
On 03/15/2013 11:17 AM, Xu HongBo(徐洪波) wrote:
> Hi:
> I feel confused with org.ops4j.pax.web.cfg and Jetty.xml.
> Which parameters must be configured in org.ops4j.pax.web.cfg ?
> And which parameters must be configured in Jetty.xml?
>
> For example : I have tried that http port can be configured in org.ops4j.pax.web.cfg. but I still could add a connector in Jetty.xml with a different port assigned.
>
> Thanks for any suggestion
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
which parameters should be configured in org.ops4j.pax.web.cfg or
Jetty.xml?
Posted by "Xu HongBo (徐洪波)" <xu...@tongtech.com>.
Hi:
I feel confused with org.ops4j.pax.web.cfg and Jetty.xml.
Which parameters must be configured in org.ops4j.pax.web.cfg ?
And which parameters must be configured in Jetty.xml?
For example : I have tried that http port can be configured in org.ops4j.pax.web.cfg. but I still could add a connector in Jetty.xml with a different port assigned.
Thanks for any suggestion