Hi Bernd,

Thanks! That works!

Thanks,
Jenny

On Sun, Jul 30, 2023 at 10:59 PM Bernd <[email protected]> wrote:

> The VFS.getManager() singleton is already I initialized. If you don’t call
> init() it should work.
>
> The examples here don’t use it:
>
> https://commons.apache.org/proper/commons-vfs/api.html
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
> ------------------------------
> *Von:* Jenny Kwan <[email protected]>
> *Gesendet:* Montag, Juli 31, 2023 6:30 AM
> *An:* [email protected] <[email protected]>
> *Betreff:* VFS: Multiple providers registered for URL scheme "file"
>
> Hi,
>
> I'm getting started with VFS, using version 2.9.0. I'm calling
> `VFS.getManager().init()`, and getting the exception:
>
> org.apache.commons.vfs2.FileSystemException: Multiple providers registered
> for URL scheme "file".
>
> This is the cause of:
>
> org.apache.commons.vfs2.FileSystemException: Could not load VFS
> configuration from
> "jar:file:/home/<home>/.m2/repository/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.jar!/org/apache/commons/vfs2/impl/providers.xml".
>
>
> I checked out the jar and it looks fine; the providers.xml file has the
> single provider for the file scheme, right after the default
> UrlFileProvider.
>
> I happen to be using Clojure with Leiningen. I checked out `lein
> classpath`
> and there's no duplicate entry for this jar.
>
> What should I be looking for?
>
> Thanks,
> Jenny
>

Reply via email to