[ https://issues.apache.org/jira/browse/SSHD-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952292#comment-15952292 ]
Goldstein Lyor commented on SSHD-736: ------------------------------------- Hi [~davido2], In order to provide a solution or at least a workaround I need a few more details: {quote} It seems, that during start of FileSystem, it loads all file system providers on the classpath {quote} * Who is starting the file system - Java or your code ? * If Java, how do you explain the fact that only your development environment is failing - is it trying to do something with the loaded file system providers ? * If your code is starting the FileSystem what does "start" mean ? What is it trying to do ? Any other light you can shed on it can help a lot - e.g., logs from the startup process, or whatever other information you deem relevant Thanks, Lyor > Filesystem collision in development environment > ----------------------------------------------- > > Key: SSHD-736 > URL: https://issues.apache.org/jira/browse/SSHD-736 > Project: MINA SSHD > Issue Type: Question > Affects Versions: 1.4.0 > Environment: Linux, Gerrit > Reporter: David Ostrovsky > Assignee: Goldstein Lyor > Priority: Minor > > In the development environment, we are using java filesystem, > to short circuit loading of servlets for the JavaScript Polymer UI. > Since upgrade to 1.4.0 Gerrit refuses to start in such dev environment. > I seems, that during start of FileSystem, it loads all file system providers > on the classpath. Since sshd-core is on the lcasspath, it's trying to load > also {{SftpFileSystemProvider}}, and is failing with class custom exception: > [1]. > Note, that we don't do that when booting release gerrit version, so we > do see this poblem only in the development environment. > We have 2 work arounds so far: disable file system usage in gerrit in this > code path: [2], or use custom built sshd-core version without this file[3]: > > {{sshd-core/src/main/filtered-resources/META-INF/services/java.nio.file.spi.FileSystemProvider}} > * [1] http://paste.openstack.org/show/604912 > * [2] http://paste.openstack.org/show/604911 > * [3] http://paste.openstack.org/show/604917 -- This message was sent by Atlassian JIRA (v6.3.15#6346)