Following up to answer my own question. It looks like after bumping the org.apache.sling.testing.paxexam dependency to 4.1.0, you also have to bump the various org.ops4j.pax.exam dependency versions to 4.14.0 at the same time. With that adjustment, the tests seem to run ok.
So +1 for me, with a recommendation of having migration documentation somewhere with guidance about what to change to make it work. Regards, -Eric On Sun, Mar 23, 2025 at 8:38 PM Eric Norman <[email protected]> wrote: > This doesn't seem like a drop in replacement for the 4.0.0 version. Is > there some migration guidance documented somewhere? > > For example, I tried to bump the org.apache.sling.testing.paxexam > dependency in the org.apache.sling.auth.form project to verify it works. > After the change, there was additional refactoring required due to the new > 4.x TinyBundles APIs being not compatible with the previous 3.x version. > Some basic refactoring fixes those compilation troubles, but the tests > still fail to run during the build with some error that looks like it is > still trying to use the 3.x TinyBundles classes somewhere (partial stack > trace below). So before troubleshooting that, I thought I would check if > someone already solved this? > > > Caused by: java.lang.NoClassDefFoundError: > org/ops4j/pax/tinybundles/core/TinyBundles > at > org.ops4j.pax.exam.cm.ConfigurationProvisionOption.createProvisionOption(ConfigurationProvisionOption.java:203) > at > org.ops4j.pax.exam.cm.ConfigurationProvisionOption.asOption(ConfigurationProvisionOption.java:163) > at > org.ops4j.pax.exam.cm.ConfigurationProvisionOption.asOption(ConfigurationProvisionOption.java:42) > at > org.apache.sling.testing.paxexam.SlingOptions.sling(SlingOptions.java:332) > at > org.apache.sling.testing.paxexam.SlingOptions.slingQuickstartOak(SlingOptions.java:870) > at > org.apache.sling.testing.paxexam.SlingOptions.slingQuickstartOakTar(SlingOptions.java:1240) > at > org.apache.sling.auth.form.it.AuthFormTestSupport.slingQuickstart(AuthFormTestSupport.java:136) > at > org.apache.sling.auth.form.it.AuthFormTestSupport.configuration(AuthFormTestSupport.java:104) > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:569) > at > org.ops4j.pax.exam.spi.reactors.ReactorManager.addConfigurationsToReactor(ReactorManager.java:248) > at > org.ops4j.pax.exam.spi.reactors.ReactorManager.prepareReactor(ReactorManager.java:184) > ... 23 more > Caused by: java.lang.ClassNotFoundException: > org.ops4j.pax.tinybundles.core.TinyBundles > ... 37 more > > > Regards, > -Eric > > > On Fri, Mar 21, 2025 at 1:50 PM Oliver Lietz <[email protected]> > wrote: > >> Hi, >> >> We solved 5 issues in this release: >> https://issues.apache.org/jira/secure/ReleaseNote.jspa? >> version=12349427&styleName=Text&projectId=12310710 >> >> Staging repository: >> https://repository.apache.org/content/repositories/orgapachesling-2942/ >> >> You can use this UNIX script to download the release and verify the >> signatures: >> https://raw.githubusercontent.com/apache/sling-tooling-release/master/ >> check_staged_release.sh >> >> Usage: >> sh check_staged_release.sh 2942 /tmp/sling-staging >> >> Please vote to approve this release: >> >> [ ] +1 Approve the release >> [ ] 0 Don't care >> [ ] -1 Don't release, because ... >> >> This majority vote is open for at least 72 hours. >> >> Regards, >> O. >> >> >> >> >>
