Trying to set up Amazon S3 filesystem in Apache Commons VFS in java

非 Y 不嫁゛ 提交于 2019-12-08 04:28:23

问题


I'm trying to use VFS S3 a plugin for the Apache Commons VFS for Amazon S3.

I've included the jar and it's recognising the s3 schema.

However when I try to open a file (which is public, I can open it on my web browser), I get this error:

Could not create a file system manager of class "org.apache.commons.vfs.impl.StandardFileSystemManager".
>> org.apache.commons.vfs.VFS.createManager(VFS.java:93)
>> org.apache.commons.vfs.VFS.getManager(VFS.java:47)

What should I do?


回答1:


I've fixed this myself another way. Turns out that library depends on some other java libraries (like log4j from apache and jets3t from amazon). It just wasn't giving a helpful error message at all.




回答2:


You should debug it and fix it yourself, or contact the vendor of the library.

By "vendor", I mean the person/entity/organization who distributes the software, not necessarily "who is selling the library", heh.




回答3:


Please check out the new VFSLib Java library. It comes with support for Amazon S3, Google Drive, and Dropbox altogether. Get premium support for first-hand information directly from vendor.



来源:https://stackoverflow.com/questions/1342655/trying-to-set-up-amazon-s3-filesystem-in-apache-commons-vfs-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!