Jetty base resource help
Hey, I have a java app and I'm using jetty server
I used to have this code
But after upgrading to jetty 12,
I replaced it with
This is now causing an exception when the app is built and ran because the resource is in a pkg file
pkg is actually not in the
I'm kind of stuck, not sure what to try anymore
I'm not sure if it's a jetty thing or like java thing because the providers are in java.nio.file.spi, I have file, jar and jrt but i don't have pkg, and jetty is not using that it's simply when it tries to do Path.of(uri)
I used to have this code
context.setBaseResource( Resource.newResource( WebConfigurationProvider.class.getResource( "webapp" ) ) );But after upgrading to jetty 12,
Resource.newResource isn't available anymoreI replaced it with
This is now causing an exception when the app is built and ran because the resource is in a pkg file
pkg://server-config.pkg/com/mirada/cerberus/config/webapp/java.nio.file.FileSystemNotFoundException: Provider "pkg" not installedpkg is actually not in the
FileSystemProvider.installedProviders() hence why this is happening when the path is trying to be fetchedI'm kind of stuck, not sure what to try anymore
I'm not sure if it's a jetty thing or like java thing because the providers are in java.nio.file.spi, I have file, jar and jrt but i don't have pkg, and jetty is not using that it's simply when it tries to do Path.of(uri)