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 <[email protected]> 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

Reply via email to