Assuming you're using Pax Exam, you can use KarafDistributionOption.replaceConfigurationFile() to provide your own etc/jre.properties until the next version of Karaf is out
- Eric L On Tue, Jan 7, 2025 at 9:05 PM Matthias Wegner <matthias.weg...@email.de> wrote: > Dear Matt, thanks. This did the job. Can you also name the solution how to > add this line for surefire tests? Adding jre.properties in resources-folder > is not working. Regards, Matthias > > > > Am 07.01.2025 um 06:41 schrieb Matt Pavlovich <mattr...@gmail.com>: > > > > Hi Mathias- > > > > This is simply a miss in the etc/jre.properties file. > > > > The JDK provides this package, and Karaf is simply not configured > out-of-the-box to provide this to all bundles. > > > > Fix: Update etc/jre.properties > > > > Add the following line in alphabetical order near the other > java.nio.file entries: > > > > java.nio.file.spi, \ > > > > Thanks, > > Matt Pavlovich > > > >> On Jan 5, 2025, at 8:47 AM, Matthias Wegner <matthias.weg...@email.de> > wrote: > >> > >> Hi All, > >> > >> i created a bundle which throws following except on execution in karaf: > >> > >> Error starting bundle 151: Unable to resolve > org.rogatio.k3-behavior-core [151](R 151.0): missing requirement > [org.rogatio.k3-behavior-core [151](R 151.0)] osgi.wiring.package; > (osgi.wiring.package=java.nio.file.spi) Unresolved requirements: > [[org.rogatio.k3-behavior-core [151](R 151.0)] osgi.wiring.package; > (osgi.wiring.package=java.nio.file.spi)] > >> > >> On stackoverflow and in this archive I not find a solution to wire > java.nio in felix maven bundle plugin or avoid this exception. > >> > >> Any hint? > >> > >> Regards, > >> Matthias > > > >