Re: [VFS] problem on runtime connection to SFTp server

2009-03-26 Thread lmk

It seems that the problem comes from release function, when I call It after 
copying files, the second SFTP connection fail.


lmk wrote:
 
 I have
  commons-net-2.0
 commons-vfs-1.0
 jsch-0.1.40
 
 
 the first call works..but the second  one does not.
 
 
 
 
 Jörg Schaible-2 wrote:
 
 lmk wrote at Dienstag, 24. März 2009 14:58:
 
 
 Hi Sergey,
 
 here the exception trace
 
 org.apache.commons.vfs.FileSystemException: Unknown scheme sftp in URI
 sftp://login:passw...@host/path/;.
 
 This is an error message, but not a stack trace. However, it seems that
 you
 do not have commons-net and jsch in your deps ...
 
 - Jörg
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22718714.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS] problem on runtime connection to SFTp server

2009-03-24 Thread lmk

I get a strange problem,

the first time I try to  get files it works, the second one, it does not
work. same directoty, same login...


lmk wrote:
 
 Hi all,
 
 Im using VFS to  get SFTP files, when I try to get files on the main
 methode, it works, but when, calling the same method with the same
 parameters  on tomcat 5.5 web app does not work.
 I get the exception .;: 
 
 java.lang.RuntimeException: SFTP error parsing path /myFolder.
 Caused by: org.apache.commons.vfs.FileSystemException: Could not connect
 to SFTP server at hostname.
 
 any ideas about this issue.
 
 thanks by advance.
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22676419.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS] problem on runtime connection to SFTp server

2009-03-24 Thread lmk

Hi Sergey,

here the exception trace

org.apache.commons.vfs.FileSystemException: Unknown scheme sftp in URI
sftp://login:passw...@host/path/;.


detailMessage=vfs.impl/unknown-scheme.error


regards!



Sergey Vladimirov wrote:
 
 Hi, lmk.
 
 Can you provide full stack trace of exception, please?
 
 -- 
 Sergey Vladimirov
 
 On Tue, Mar 24, 2009 at 12:09 PM, lmk lotf...@yahoo.fr wrote:

 I get a strange problem,

 the first time I try to  get files it works, the second one, it does not
 work. same directoty, same login...


 lmk wrote:

 Hi all,

 Im using VFS to  get SFTP files, when I try to get files on the main
 methode, it works, but when, calling the same method with the same
 parameters  on tomcat 5.5 web app does not work.
 I get the exception .;:

 java.lang.RuntimeException: SFTP error parsing path /myFolder.
 Caused by: org.apache.commons.vfs.FileSystemException: Could not connect
 to SFTP server at hostname.

 any ideas about this issue.

 thanks by advance.



 --
 View this message in context:
 http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22676419.html
 Sent from the Commons - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22681000.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS] problem on runtime connection to SFTp server

2009-03-24 Thread lmk

I have
 commons-net-2.0
commons-vfs-1.0
jsch-0.1.40


the first call works..but the second  one does not.




Jörg Schaible-2 wrote:
 
 lmk wrote at Dienstag, 24. März 2009 14:58:
 
 
 Hi Sergey,
 
 here the exception trace
 
 org.apache.commons.vfs.FileSystemException: Unknown scheme sftp in URI
 sftp://login:passw...@host/path/;.
 
 This is an error message, but not a stack trace. However, it seems that
 you
 do not have commons-net and jsch in your deps ...
 
 - Jörg
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22681716.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



[VFS] problem on runtime connection to SFTp server

2009-03-23 Thread lmk

Hi all,

Im using VFS to  get SFTP files, when I try to get files on the main
methode, it works, but when, calling the same method with the same
parameters  on tomcat 5.5 web app does not work.
I get the exception .;: 

java.lang.RuntimeException: SFTP error parsing path /myFolder.
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to
SFTP server at hostname.

any ideas about this issue.

thanks by advance.

-- 
View this message in context: 
http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22664327.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS] problem on runtime connection to SFTp server

2009-03-23 Thread lmk

Im using a DefaultFileSystemManager
the exception occured on : dfsManager.resolveFile(path, fsop);

Best regards!


lmk wrote:
 
 Hi all,
 
 Im using VFS to  get SFTP files, when I try to get files on the main
 methode, it works, but when, calling the same method with the same
 parameters  on tomcat 5.5 web app does not work.
 I get the exception .;: 
 
 java.lang.RuntimeException: SFTP error parsing path /myFolder.
 Caused by: org.apache.commons.vfs.FileSystemException: Could not connect
 to SFTP server at hostname.
 
 any ideas about this issue.
 
 thanks by advance.
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--problem-on-runtime-connection-to-SFTp-server-tp22664327p22666013.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk

I dont have a DNS server installed, the host cannot be found by name.


Jörg Schaible-2 wrote:
 
 Well,
 
 lmk wrote at Montag, 15. Dezember 2008 11:35:
 
 
 Hi all,
 
 I try vainly to use VFS to connect to SFTP server .
 I do the same as explained on
 http://wiki.apache.org/commons/SimpleSftpFileDownload wiki page
 
 [snip]
 
 Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: x.x.x.x
 at com.jcraft.jsch.Session.checkHost(Unknown Source)
 at com.jcraft.jsch.Session.connect(Unknown Source)
 at com.jcraft.jsch.Session.connect(Unknown Source)
 at

 org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)
 ... 6 more
 
 VFS cannot connect, since the underlaying library (JSch) cannot find the
 host x.x.x.x. Can you try again with the real host name instead of an IP
 address?
 
 - Jörg
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--SFTP--cannot-connect-to-SFT-server-tp21011512p21013844.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk

Actually I have a host name defined on hosts file, but, I cannot ping it 
however.
I can connect to SFTP server with Win SCP, I put the server ip address and
it works ..





lmk wrote:
 
 how can I do that?
 
 
 
 Jörg Schaible-2 wrote:
 
 lmk wrote at Montag, 15. Dezember 2008 14:20:
 
 
 I dont have a DNS server installed, the host cannot be found by name.
 
 Well, you may temporarily add an entry to your local hosts file.
 
 - Jörg
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--SFTP--cannot-connect-to-SFT-server-tp21011512p21014857.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk

I passed to the last version of jcraft I get more explicit exception:

UnknownHostKey: x.x.x.x. RSA key fingerprint is
0d:51:c6:7f:e1:84:5e:37:8b:93:29:bd:d4:d1:ba:79

how can I verify the host key?? 






lmk wrote:
 
 I dont have a DNS server installed, the host cannot be found by name.
 
 
 Jörg Schaible-2 wrote:
 
 Well,
 
 lmk wrote at Montag, 15. Dezember 2008 11:35:
 
 
 Hi all,
 
 I try vainly to use VFS to connect to SFTP server .
 I do the same as explained on
 http://wiki.apache.org/commons/SimpleSftpFileDownload wiki page
 
 [snip]
 
 Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: x.x.x.x
 at com.jcraft.jsch.Session.checkHost(Unknown Source)
 at com.jcraft.jsch.Session.connect(Unknown Source)
 at com.jcraft.jsch.Session.connect(Unknown Source)
 at

 org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)
 ... 6 more
 
 VFS cannot connect, since the underlaying library (JSch) cannot find the
 host x.x.x.x. Can you try again with the real host name instead of an
 IP
 address?
 
 - Jörg
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-VFS--SFTP--cannot-connect-to-SFT-server-tp21011512p21015310.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk

I resolve the problem by adding

SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(ops,
no);

thanks..

-- 
View this message in context: 
http://www.nabble.com/-VFS--SFTP--cannot-connect-to-SFT-server-tp21011512p21015554.html
Sent from the Commons - User mailing list archive at Nabble.com.


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



[VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk

Hi all,

I try vainly to use VFS to connect to SFTP server .
I do the same as explained on 
http://wiki.apache.org/commons/SimpleSftpFileDownload wiki page 


here a snippet code

FileSystemManager fsManager =  VFS.getManager();

UserAuthenticator auth = new StaticUserAuthenticator(null,
login,passwd);  
FileSystemOptions  ops = new FileSystemOptions();
try {

DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(ops,auth);

} 
catch (FileSystemException ex) {
 throw new RuntimeException(setUserAuthenticator failed, ex);
 }

 FileObject fss = fsManager.resolveFile(sftp://x.x.x.x/export/home/,ops);


I get the exception:

Exception in thread main org.apache.commons.vfs.FileSystemException: Could
not connect to SFTP server at sftp://x.x.x.x/;.
at
org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:99)
at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582)
at com.fimat.kb.util.ftp.FTPManager.main(FTPManager.java:181)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to
SFTP server at x.x.x.x.
at
org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:214)
at
org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:90)
... 5 more
Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: x.x.x.x
at com.jcraft.jsch.Session.checkHost(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at
org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)
... 6 more

best regards!
-- 
View this message in context: 
http://www.nabble.com/-VFS--SFTP--cannot-connect-to-SFT-server-tp21011512p21011512.html
Sent from the Commons - User mailing list archive at Nabble.com.


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