[
https://issues.apache.org/jira/browse/SLING-12841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986104#comment-17986104
]
Carsten Ziegeler commented on SLING-12841:
------------------------------------------
It works perfectly for me and if I look at the Sling XSS 2.4.6 bundle, it has:
{source}
org.apache.commons.collections4.iterators {version=[4.4,5)}
{source}
while that failing test claims it requires version 4.5
> Scripting Core build fails because of bundle resolution failures in
> HtmlScriptingIT
> -----------------------------------------------------------------------------------
>
> Key: SLING-12841
> URL: https://issues.apache.org/jira/browse/SLING-12841
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Robert Munteanu
> Priority: Critical
> Fix For: Scripting Core 3.0.2
>
> Attachments:
> org.apache.sling.scripting.core.it.HtmlScriptingIT-output.txt
>
>
> This IT consistently fails for me
> {noformat}
> [INFO] Running org.apache.sling.scripting.core.it.HtmlScriptingIT
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.461
> s <<< FAILURE! -- in org.apache.sling.scripting.core.it.HtmlScriptingIT
> [ERROR] org.apache.sling.scripting.core.it.HtmlScriptingIT -- Time elapsed:
> 5.094 s <<< ERROR!
> org.ops4j.pax.exam.TestContainerException: There are unresolved bundles. See
> previous ERROR log messages for details.
> at
> org.ops4j.pax.exam.forked.ForkedTestContainer.verifyThatBundlesAreResolved(ForkedTestContainer.java:345)
> at
> org.ops4j.pax.exam.forked.ForkedTestContainer.installAndStartBundles(ForkedTestContainer.java:309)
> at
> org.ops4j.pax.exam.forked.ForkedTestContainer.start(ForkedTestContainer.java:165)
> at
> org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.setUp(EagerSingleStagedReactor.java:87)
> at
> org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.beforeClass(EagerSingleStagedReactor.java:137)
> at
> org.ops4j.pax.exam.spi.reactors.ReactorManager.beforeClass(ReactorManager.java:457)
> at org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:97)
> at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
> at
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
> at
> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495
> {noformat}
> In the failsafe test output I see multiple bundle resolution failures:
> {noformat}
> ERROR: Bundle org.apache.sling.scripting.sightly [218] Error starting
> file:/home/robert/sources/apache/sling/org-apache-sling-scripting-core/target/paxexam/HtmlScriptingIT/dabb6ba6-9e05-4a57-acee-40549bb9be0c/pax-exam-downloads/org.apache.sling.scripting.sightly_1.4.26.140.jar
> (org.osgi.framework.BundleException: Unable to resolve
> org.apache.sling.scripting.sightly [218](R 218.0): missing requirement
> [org.apache.sling.scripting.sightly [218](R 218.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.xss)(version>=2.0.0)(!(version>=3.0.0)))
> [caused by: Unable to resolve org.apache.sling.xss [71](R 71.0): missing
> requirement [org.apache.sling.xss [71](R 71.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.commons.collections4.iterators)(version>=4.5.0)(!(version>=5.0.0)))]
> Unresolved requirements: [[org.apache.sling.scripting.sightly [218](R
> 218.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.xss)(version>=2.0.0)(!(version>=3.0.0)))])
> {noformat}
> {noformat}
> ERROR: Bundle org.apache.sling.scripting.sightly.js.provider [222] Error
> starting
> file:/home/robert/sources/apache/sling/org-apache-sling-scripting-core/target/paxexam/HtmlScriptingIT/dabb6ba6-9e05-4a57-acee-40549bb9be0c/pax-exam-downloads/org.apache.sling.scripting.sightly.js.provider_1.2.12.jar
> (org.osgi.framework.BundleException: Unable to resolve
> org.apache.sling.scripting.sightly.js.provider [222](R 222.0): missing
> requirement [org.apache.sling.scripting.sightly.js.provider [222](R 222.0)]
> io.sightly; (&(version>=1.0)(!(version>=2.0))) [caused by: Unable to resolve
> org.apache.sling.scripting.sightly [218](R 218.0): missing requirement
> [org.apache.sling.scripting.sightly [218](R 218.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.sling.xss)(version>=2.0.0)(!(version>=3.0.0)))
> [caused by: Unable to resolve org.apache.sling.xss [71](R 71.0): missing
> requirement [org.apache.sling.xss [71](R 71.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.commons.collections4.iterators)(version>=4.5.0)(!(version>=5.0.0)))]]
> Unresolved requirements: [[org.apache.sling.scripting.sightly.js.provider
> [222](R 222.0)] io.sightly; (&(version>=1.0)(!(version>=2.0)))])
> {noformat}
> See full output in
> [^org.apache.sling.scripting.core.it.HtmlScriptingIT-output.txt]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)