commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kostis Anagnostopoulos" <>
Subject [vfs] vfs-sandbox jar 's vfs-providers.xml gets auto-loaded even when manually configuring
Date Tue, 03 Apr 2007 22:22:42 GMT

I've been trying to build a stripped-down version of VFS fileSystem
manager and i'm having problem with the sandboxed providers.

Since the name of the included within-the-jar configuration file is
vfs-providers.xml, i think it triggers its discovery by the fileSystem
 manager and it is always included.

So i cannot use a
StandardFileSystemManager.configure("my-providers-only.xml") because
i'm getting a:

org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "smb".
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(
        at org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(
        at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(
        at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(
        ... 29 more

Notice that this error happens EVEN WHEN myproviders-only.xml file
DOES NOT SPECIFY the smb provider!

Any ideas on how to circumvent this?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message