commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [vfs] vfs-sandbox jar 's vfs-providers.xml gets auto-loaded even when manually configuring
Date Wed, 04 Apr 2007 05:04:31 GMT
Hi Kostis!
> 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(DefaultFileSystemManager.java:174)
>
>        at
> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:354)
>
>        at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:254)
>
>        at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:187)
>
>        ... 29 more
>
>
>
> Notice that this error happens EVEN WHEN myproviders-only.xml file
> DOES NOT SPECIFY the smb provider!
This is strange, do you have some time to debug into VFS to see whats
going on?

And no, its not possible to suppress the autoloading of
vfs-providers.xml. Thats the reason why we have done it ;-)
The only way is to remove this file from the jar.

Ciao,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message