commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Shifman <mark.shif...@yale.edu>
Subject Re: [VFS] reading a file from a tgz archive on an sftp server
Date Tue, 23 Aug 2005 19:13:58 GMT
Thanks!!
It worked when I added the compress jar to the path.

mas

Mario Ivankovits wrote:

> Mark Shifman wrote:
>
>>>> FileObject fo_test=  fsManager.resolveFile( 
>>>> "sftp://myname:mypasswd@myhost/pathtofile/myfile.tgz")
>>>>
>>>> but I don't know how to read a file in this object or make the 
>>>> fileobject into something with children.
>>>
>>>
>>> please try
>>> FileObject fo_test=  fsManager.resolveFile( 
>>> "tgz:sftp://myname:mypasswd@myhost/pathtofile/myfile.tgz!")
>>>
>> It threw the following.
>> org.apache.commons.vfs.FileSystemException: Badly formed URI 
>> "tgz:sftp://myname:mypasswd@myhost/pathtofle/myfile.tgz!".
>
> Do you have commons-compress in your classpath? Its needed to unpack 
> tar files.
>
> Please refer to http://jakarta.apache.org/commons/vfs/download.html 
> where to find the jar file.
>
> VFS silently do not install a fileprovider if a optional library isnt 
> available - and from your stacktrace VFS falls back to the default 
> fileprovider which dont know how to handle tgz files.
>
> ---
> Mario
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


-- 
 Mark Shifman MD. Ph.D.
 Yale Center for Medical Informatics
 Phone (203)737-5219
 mark.shifman@yale.edu


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


Mime
View raw message