Thanks for the quick replies, Robert and JB!

I ended up adding these three VM options and the problem disappeared:

new
VMOption("--add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED"),
new VMOption("--patch-module"),
new VMOption("java.base=lib/endorsed/org.apache.karaf.specs.locator-" +
System.getProperty("karaf.version") + ".jar")

I also added this Surefire configuration to make a karaf.version system
property available
<configuration>
    <systemPropertyVariables>
        <karaf.version>${karaf.version}</karaf.version>
    </systemPropertyVariables>
</configuration>

JB: Have any idea what are the odds for a Felix framework release on the
5.6.x fixing the reflective access warning?

- Eric L

On Thu, Aug 13, 2020 at 6:24 PM Jean-Baptiste Onofre <j...@nanthrax.net>
wrote:

> Hi Eric,
>
> As it’s seem you don’t extend KarafTestSupport (you should ;)), you have
> to provide the locator patch module:
>
>
> https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/apache/karaf/itests/KarafTestSupport.java#L217
> <
> https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/apache/karaf/itests/KarafTestSupport.java#L217
> >
>
> Regards
> JB
>
> > Le 13 août 2020 à 17:59, Eric Lilja <mindcoo...@gmail.com> a écrit :
> >
> > https://github.com/elilja/java-11-runtime-issue <
> https://github.com/elilja/java-11-runtime-issue>
>

Reply via email to