JinHeap opened a new issue, #510:
URL: https://github.com/apache/mina-sshd/issues/510

   
https://github.com/apache/mina-sshd/blob/37d239e792edabe2008df8e98bf00eef167a147f/sshd-core/src/main/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactories.java#L37
   
   full class name in BuiltinIoServiceFactoryFactories for mina is unavailable. 
I have to modified the code from   
org.apache.sshd.common.io.mina.MinaServiceFactoryFactory to 
org.apache.sshd.mina.MinaServiceFactoryFactory in order to run SshClientMain 
with mina
   
   > java -cp * org.apache.sshd.cli.client.SshClientMain -w 1 root@127.0.0.1 
-io mina
   SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
   SLF4J: Defaulting to no-operation (NOP) logger implementation
   SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
   java.lang.RuntimeException: java.lang.ClassNotFoundException: 
org.apache.sshd.common.io.mina.MinaServiceFactoryFactory
           at 
org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.getFactoryClass(BuiltinIoServiceFactoryFactories.java:76)
           at 
org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.create(BuiltinIoServiceFactoryFactories.java:88)
           at 
org.apache.sshd.cli.CliSupport.setupIoServiceFactory(CliSupport.java:149)
           at 
org.apache.sshd.cli.client.SshClientCliSupport.setupDefaultClient(SshClientCliSupport.java:407)
           at 
org.apache.sshd.cli.client.SshClientCliSupport.setupClient(SshClientCliSupport.java:447)
           at 
org.apache.sshd.cli.client.SshClientCliSupport.setupClientSession(SshClientCliSupport.java:244)
           at 
org.apache.sshd.cli.client.SshClientMain.main(SshClientMain.java:134)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.sshd.common.io.mina.MinaServiceFactoryFactory
           at java.net.URLClassLoader.findClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Unknown Source)
           at 
org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.getFactoryClass(BuiltinIoServiceFactoryFactories.java:71)
           ... 6 more
   Exception in thread "main" java.lang.RuntimeException: 
java.lang.ClassNotFoundException: 
org.apache.sshd.common.io.mina.MinaServiceFactoryFactory
           at 
org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.getFactoryClass(BuiltinIoServiceFactoryFactories.java:76)
           at 
org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.create(BuiltinIoServiceFactoryFactories.java:88)
           at 
org.apache.sshd.cli.CliSupport.setupIoServiceFactory(CliSupport.java:149)
           at 
org.apache.sshd.cli.client.SshClientCliSupport.setupDefaultClient(SshClientCliSupport.java:407)
           at 
org.apache.sshd.cli.client.SshClientCliSupport.setupClient(SshClientCliSupport.java:447)
           at 
org.apache.sshd.cli.client.SshClientCliSupport.setupClientSession(SshClientCliSupport.java:244)
           at 
org.apache.sshd.cli.client.SshClientMain.main(SshClientMain.java:134)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.sshd.common.io.mina.MinaServiceFactoryFactory
           at java.net.URLClassLoader.findClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Unknown Source)
           at 
org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.getFactoryClass(BuiltinIoServiceFactoryFactories.java:71)
           ... 6 more
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to