问题
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