Search code examples
javaamazon-s3apache-commons-vfs

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


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?


Solution

  • 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.