Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
9.0.2.Final, 10.0.0.Final
-
None
Description
Using a custom FileSystemProvider inside an application is not possible with Wildfly:
- Using Paths.get(uri) won't work as FileSystemProvider caches previously discovered FSPs and won't see those that could be embedded in the application
- Using FileSystems.newFileSystem(uri, map, classLoader) won't work either because FSPs from com.sun.nio.* will be discovered and those classes are not visible to the application (and are not exported by sun.jdk module.xml). This will give the following error: java.util.ServiceConfigurationError: java.nio.file.spi.FileSystemProvider: Provider com.sun.nio.zipfs.ZipFileSystemProvider not found.
More info on https://developer.jboss.org/message/954528