Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6525

Impossible to use custom FileSystemProviders embedded in an application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 9.0.2.Final, 10.0.0.Final
    • Class Loading
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            xavierdury Xavier Dury (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: