Re: [JSch-users] Failure with SSHEXEC ant task
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2005-03-30 01:31:00
|
Hi, +-From: Brendan Frey <bf...@li...> -- |_Date: Tue, 29 Mar 2005 12:26:58 -0500 _____ | |and receive: | |java.lang.NoSuchMethodError: |com.jcraft.jsch.ChannelExec.setExtOutputStream(Ljava/io/OutputStream;)V | at org.apache.tools.ant.TaskProject.executeTarget(Project.java:1223) | at org.apache.tools.Project.executeTargets(Project.java:1062) | at org.apache.toMain.runBuild(Main.java:673) | at org.apache.tools.ant.Main.startAnt(Main.java:188) ... Is your jsch jar file correct? How about using javap command? javap -classpath jsch-*.jar com.jcraft.jsch.ChannelExec javap -classpath jsch-*.jar com.jcraft.jsch.ChannelSession javap -classpath jsch-*.jar com.jcraft.jsch.Channel Can you find 'setExtOutputStream' method? |When I remove the trust="true" portion I receive: (reject hostkey made me |think to put the trust=true flag. It is an expected behavior. To work around this error, you have to put knownhosts="your known_hosts file" to sshexec task, where your known_hosts must include a host key of remote host. Thanks, -- ymnk |