and here is the test result message

https://gist.github.com/cmoulliard/95c295c8ad09c6c55876


On Sat, Feb 16, 2013 at 2:36 PM, Charles Moulliard <[email protected]> wrote:

> Problem still persists even if I add in the pom file the dependency for
> ops4j-base
>
> Config : https://gist.github.com/cmoulliard/f05b40dbbc06e3a45006
> Error : https://gist.github.com/cmoulliard/899ec997da698baefb24
>
> pax-exam version defined in the parent pom is 2.6.0
>
>
> On Sat, Feb 16, 2013 at 11:26 AM, Christoph Gritschenberger <
> [email protected]> wrote:
>
>> Another hint:
>>
>> pax-exam 2.6 requires ops4j-base 1.4 to work while pax-exam 2.4 uses
>> ops4j-base 1.3
>>
>> Maybe you forgot to update some reference there.
>>
>> regards,
>> christoph
>>
>>
>> On 2013-02-16 10:52, Dan Tran wrote:
>>
>>> your log still show you are using pax-exam 2.4
>>>
>>> -D
>>>
>>> On Sat, Feb 16, 2013 at 1:48 AM, Charles Moulliard <[email protected]>
>>> wrote:
>>>
>>>> Dan,
>>>>
>>>> I already use pax-exam 2.6.0.
>>>>
>>>> Regards,
>>>>
>>>> Charles
>>>>
>>>>
>>>> On Sat, Feb 16, 2013 at 10:20 AM, Dan Tran <[email protected]> wrote:
>>>>
>>>>>
>>>>> https://issues.apache.org/**jira/browse/KARAF-2096<https://issues.apache.org/jira/browse/KARAF-2096>
>>>>>
>>>>> -D
>>>>>
>>>>> On Sat, Feb 16, 2013 at 12:49 AM, Charles Moulliard <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have created a pax exam test class using karaf tool exam but when
>>>>>> the
>>>>>> mvn
>>>>>> test is started, I get this error :
>>>>>>
>>>>>> eatures.core - 2.3.0 | Error installing boot features
>>>>>> 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 [92]:
>>>>>> Unable
>>>>>> to
>>>>>> resolve 92.0: missing requirement [92.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 [92]: Unable to resolve 92.0:
>>>>>> missing
>>>>>> requirement [92.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
>>>>>>
>>>>>> Config
>>>>>>
>>>>>>      @Configuration
>>>>>>      public Option[] configure() {
>>>>>>          return new Option[]{
>>>>>>                  karafDistributionConfiguration**().frameworkUrl(
>>>>>>
>>>>>>
>>>>>> maven().groupId("org.apache.**karaf").artifactId("apache-**
>>>>>> karaf").type("tar.gz").**versionAsInProject())
>>>>>>                          //This version doesn't affect the version of
>>>>>> karaf
>>>>>> we use
>>>>>>
>>>>>> .karafVersion(MavenUtils.**getArtifactVersion("org.**apache.karaf",
>>>>>> "apache-karaf")).name("Apache Karaf")
>>>>>>                          .unpackDirectory(new
>>>>>> File("target/exam/unpack/")),
>>>>>>
>>>>>>                  keepRuntimeFolder(),
>>>>>>                  logLevel(LogLevelOption.**LogLevel.ERROR),
>>>>>>
>>>>>>                  // scanFeatures("config"),
>>>>>>                  scanFeatures(**getCamelKarafFeatureUrl(),
>>>>>> "camel-core",
>>>>>> "camel-spring"),
>>>>>>
>>>>>>                  mavenBundle("org.apache.**servicemix.bundles",
>>>>>> "org.apache.servicemix.**bundles.protobuf-java", "2.4.1_1"),
>>>>>>                  mavenBundle("org.apache.**servicemix.bundles",
>>>>>> "org.apache.servicemix.**bundles.antlr", "3.5_1"),
>>>>>>                  mavenBundle("org.mvel", "mvel2", "2.1.3.Final"),
>>>>>>                  mavenBundle("org.drools.karaf"**, "drools-core",
>>>>>> "1.0-SNAPSHOT"),
>>>>>>                  mavenBundle("org.drools", "drools-spring",
>>>>>> "5.3.0.Final"),
>>>>>>                  mavenBundle("org.drools", "drools-camel",
>>>>>> "5.3.0.Final"),
>>>>>>                  //
>>>>>>                  mavenBundle("org.drools.karaf"**, "drools-example",
>>>>>> "1.0-SNAPSHOT")
>>>>>>          };
>>>>>>
>>>>>>      }
>>>>>>
>>>>>> Is there a workaround ?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> Charles Moulliard
>>>>>> Apache Committer / Sr. Enterprise Architect (RedHat)
>>>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Charles Moulliard
>>>> Apache Committer / Sr. Enterprise Architect (RedHat)
>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>>>
>>>>
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>


-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Reply via email to