Error Modul jposee-sshd

19 views
Skip to first unread message

adhi nugroho

unread,
Apr 25, 2018, 1:27:46 AM4/25/18
to jPOS Users
hello,

after reading from http://jpos.org/doc/jPOS-EE.pdf chapter 9 about sshd,
then i try to test it. when i'm running q2, i got some error

<exception name="org/apache/sshd/common/KeyPairProvider">
 java.lang.NoClassDefFoundError: org/apache/sshd/common/KeyPairProvider
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
 at java.lang.Class.getConstructor0(Class.java:3075)
 at java.lang.Class.getConstructor(Class.java:1825)
 at sun.reflect.misc.ConstructorUtil.getConstructor(ConstructorUtil.java:38)
 at com.sun.jmx.mbeanserver.MBeanInstantiator.findConstructor(MBeanInstantiator.java:721)
 at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(MBeanInstantiator.java:299)
 at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(MBeanInstantiator.java:620)
 at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(MBeanInstantiator.java:527)
 at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(JmxMBeanServer.java:990)
 at org.jpos.q2.QFactory.instantiate(QFactory.java:78)
 at org.jpos.q2.Q2.deploy(Q2.java:578)
 at org.jpos.q2.Q2.deploy(Q2.java:391)
 at org.jpos.q2.Q2.run(Q2.java:259)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.apache.sshd.common.KeyPairProvider
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 15 more


my config is like this:

05_sshd.xml

<sshd name="sshd" class="org.jpos.ee.cli.SshCLI">
<port>2222</port>
<auth-username>admin</auth-username>
<authorized-keys-file>cfg/id_rsa.pub</authorized-keys-file>
</sshd>


build.gradle

compile "org.jpos.ee:jposee-sshd:2.2.3-SNAPSHOT"



is there anything wrong with my configuration?

chhil

unread,
Apr 25, 2018, 4:32:06 AM4/25/18
to jpos-...@googlegroups.com

Looks like the apache sshd jar s are missing. 
If you are looking for a temporary work around, you can download it and add it to your class path. 

-chhil

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/591e54fa-0a05-4e49-867c-17cfe8ae5681%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adhi nugroho

unread,
Apr 25, 2018, 4:50:14 AM4/25/18
to jpos-...@googlegroups.com
i  added 
 

compile "org.apache.sshd:sshd-core:0.1.0"


but still get same error

To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/591e54fa-0a05-4e49-867c-17cfe8ae5681%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
adhi

Andrés Alcarraz

unread,
Apr 25, 2018, 5:19:04 AM4/25/18
to jpos-...@googlegroups.com

Hi, where did you added that?

There's no need for that since jpos already has a dependency to apache ssd in the pom.

I'm afraid you are not running jpos correctly and the jar simply is not in your classpath. How you are building and running jpos?



El 25/04/18 a las 05:49, adhi nugroho escribió:
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

adhi nugroho

unread,
Apr 25, 2018, 5:42:05 AM4/25/18
to jpos-...@googlegroups.com
I added in build.gradle


From: jpos-...@googlegroups.com <jpos-...@googlegroups.com> on behalf of Andrés Alcarraz <alca...@gmail.com>
Sent: Wednesday, April 25, 2018 4:18:51 PM
To: jpos-...@googlegroups.com
Subject: Re: [jpos-users] Error Modul jposee-sshd
 

Andrés Alcarraz

unread,
Apr 25, 2018, 5:43:54 AM4/25/18
to jpos-...@googlegroups.com

And the other question?

As I said:

There's no need for that since jpos already has a dependency to apache ssd in the pom.

I'm afraid you are not running jpos correctly and the jar simply is not in your classpath. How you are building and running jpos?

Did you read all the mail?

El 25/04/18 a las 06:41, adhi nugroho escribió:
Reply all
Reply to author
Forward
0 new messages