When I run my program as standalone it works fine. The same logic is called from a servlet using JBOSS I get the following error. Any help is appreciated.
[error]
09:09:13,877 INFO [STDOUT] Caused by: com.enterprisedt.net.j2ssh.transport.kex.KeyExchangeException: The host key is invalid or was not accepted!
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:399)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:681)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(TransportProtocolCommon.java:1229)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java
:986)
09:09:13,877 INFO [STDOUT] at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:373)
09:09:13,877 INFO [STDOUT] ... 1 more
[/error]