I ran into the same issue recently with the Blueprint itests. I was able to work around it by adding the Springsource EBR to the repositories and explicitly depending on org.junit/com.springsource.org.junit/4.4.0 but I'm not sure whether that's really the right way to fix it.
I've created https://issues.apache.org/jira/browse/ARIES-1168 with a patch that has my workaround but if people have a better suggestion, that would be cool. Cheers, David On 28 March 2014 10:29, Achim Nierbeck <[email protected]> wrote: > Hi, > > I think it is a pax-runner issue as the old Pax Exame (1.x) tests do fail > with the same reason. > > regards, Achim > > > 2014-03-27 19:00 GMT+01:00 Simon Gormley <[email protected]>: > >> Proxy iTests are failing with the exception below when building on a clean >> system (cleared out .m2 repository), it seems to work ok on systems that >> have the required files already in the local repo. >> >> It looks as though PAX runner is trying to download from >> http://osgi.sonatype.org (which redirects to >> https://repository.sonatype.org), and fails as it is not following the >> redirect (see the content of the jar, which looks like the HTTP response >> >> I can't see where osgi.sonatype.org is set as a repository, and setting a >> Maven mirror doesn't change anything. >> >> Is this an Aries or Maven/PAX runner issue? >> >> Thanks, >> >> Simon. >> >> >> ------------------------------------------------------------------------------- >> Test set: org.apache.aries.proxy.itests.BasicProxyBundlesTest >> >> ------------------------------------------------------------------------------- >> Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed: 4.658 >> sec <<< FAILURE! >> checkProxyFinalClass >> [equinox/3.5.0](org.apache.aries.proxy.itests.BasicProxyBundlesTest) Time >> elapsed: 2.115 sec <<< ERROR! >> java.lang.RuntimeException: >> org.ops4j.pax.runner.platform.PlatformException: >> [mvn:org.junit/com.springsource.org.junit/4.4.0] is not a valid bundle >> at org.ops4j.pax.runner.Run.startPlatform(Run.java:675) >> at org.ops4j.pax.runner.Run.start(Run.java:220) >> at org.ops4j.pax.runner.Run.start(Run.java:176) >> at >> >> org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:282) >> >> >> [org.ops4j.pax.url.mvn.internal.Connection] : Possible download locations >> for [mvn:org.junit/com.springsource.org.junit/4.4.0] >> [org.ops4j.pax.url.mvn.internal.Connection] : Version [4.4.0] from URL >> >> [file:/home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar] >> [org.ops4j.pax.url.mvn.internal.Connection] : Version [4.4.0] from URL [ >> >> http://osgi.sonatype.org/content/groups/pax-runner/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar >> ] >> [org.ops4j.pax.url.mvn.internal.Connection] : Downloading [Version [4.4.0] >> from URL >> >> [file:/home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar]] >> [org.ops4j.pax.runner.OptionResolverImpl] : Resolving option >> [org.ops4j.pax.url.mvn.proxySupport] >> [org.ops4j.pax.runner.OptionResolverImpl] : Option >> [org.ops4j.pax.url.mvn.proxySupport] resolved to [null] >> [org.ops4j.pax.url.mvn.internal.Connection] : Could not download >> [Version [4.4.0] from URL >> >> [file:/home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar]] >> [org.ops4j.pax.url.mvn.internal.Connection] : Reason >> [java.io.FileNotFoundException: >> >> /home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar >> (No such file or directory)] >> [org.ops4j.pax.url.mvn.internal.Connection] : Downloading [Version [4.4.0] >> from URL [ >> >> http://osgi.sonatype.org/content/groups/pax-runner/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar >> ]] >> [org.ops4j.pax.runner.OptionResolverImpl] : Resolving option >> [org.ops4j.pax.url.mvn.proxySupport] >> [org.ops4j.pax.runner.OptionResolverImpl] : Option >> [org.ops4j.pax.url.mvn.proxySupport] resolved to [null] >> [org.ops4j.pax.runner.platform.internal.StreamUtils] : >> mvn:org.junit/com.springsource.org.junit/4.4.0 : 185 bytes @ [ 185kBps ] >> [org.ops4j.pax.runner.platform.internal.PlatformImpl] : Succesfully >> downloaded to [/tmp/paxexam_runner_sgormley/bundles/-1983489640.jar] >> >> >> [sgormley@sgormley-tp ~]$ cat >> /tmp/paxexam_runner_sgormley/bundles/-1983489640.jar >> <html> >> <head><title>301 Moved Permanently</title></head> >> <body bgcolor="white"> >> <center><h1>301 Moved Permanently</h1></center> >> <hr><center>nginx/0.8.54</center> >> </body> >> </html> >> Unless stated otherwise above: >> IBM United Kingdom Limited - Registered in England and Wales with number >> 741598. >> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU >> > > > > -- > > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > > Software Architect / Project Manager / Scrum Master
