我想使用 VFS S3 的一个插件的阿帕奇共享VFS 获得的亚马逊S3 。
I'm trying to use VFS S3 a plugin for the Apache Commons VFS for Amazon S3.
我已经包含了罐子,它认识到 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?
我这个固定自己的另一种方式。原来,库依赖于一些其他的Java库(比如log4j的来自Apache和的JetS3t从亚马逊)。它只是没有给人一种有用的错误消息都没有。
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.