You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ashish Vijaywargiya <vi...@gmail.com> on 2009/07/06 07:15:01 UTC

Unable to run OFBiz from Eclipse due to loading VFS configuration.

In past I was able to run OFBiz inside Eclipse.
I tried to start OFBiz from Start.java file with Debug as --> Java
Application option in Eclipse.
But now a days I am getting following error.

I am exploring the reason behind it and will try to solve this issue as soon
as I can.
In the meantime if someone came across the same error then please provide
the details.


2009-07-06 10:36:48,733 (main) [    ContainerLoader.java:96 :INFO ]
[Startup] Starting containers...
2009-07-06 10:36:48,966 (main) [             VfsLog.java:122:INFO ] Using
"/tmp/vfs_cache" as temporary files store.
org.ofbiz.base.start.StartupException: Cannot start()
org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
StandardFileSystemManager (Could not load VFS configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".))
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
    at org.ofbiz.base.start.Start.startServer(Start.java:320)
    at org.ofbiz.base.start.Start.start(Start.java:324)
    at org.ofbiz.base.start.Start.main(Start.java:407)
org.ofbiz.base.container.ContainerException: Initializing
StandardFileSystemManager (Could not load VFS configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
    at org.ofbiz.base.start.Start.startServer(Start.java:320)
    at org.ofbiz.base.start.Start.start(Start.java:324)
    at org.ofbiz.base.start.Start.main(Start.java:407)
Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
    ... 5 more
Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "ofbiz-home".
    at
org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
    ... 10 more
org.ofbiz.base.container.ContainerException: Initializing
StandardFileSystemManager (Could not load VFS configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
    at org.ofbiz.base.start.Start.startServer(Start.java:320)
    at org.ofbiz.base.start.Start.start(Start.java:324)
    at org.ofbiz.base.start.Start.main(Start.java:407)
Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
    ... 5 more
Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "ofbiz-home".
    at
org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
    ... 10 more
2009-07-06 10:36:49,112 (OFBiz_Shutdown_Hook) [
ContainerLoader.java:114:INFO ] Shutting down containers
java.lang.NullPointerException
    at
org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
    at
org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:122)
    at org.ofbiz.base.start.Start.shutdownServer(Start.java:309)
    at org.ofbiz.base.start.Start.access$0(Start.java:303)
    at org.ofbiz.base.start.Start$2.run(Start.java:286)


Thanks in Advance.
--
Ashish

Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Hello Scott,

Thanks for your comment on this.
The interesting thing that came in my mind is why it is loading/ taking
webslinger component's file if I commented it in the component-load.xml file
of framework folder?


Here is the updated log:

2009-07-13 21:53:49,064 (main) [             VfsLog.java:122:INFO ] Using
"/tmp/vfs_cache" as temporary files store.
org.ofbiz.base.start.StartupException: Cannot start()
org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
StandardFileSystemManager (Could not load VFS configuration from
"jar:file:/home/ashish/ofbiz_dev/testing/framework/webslinger/lib/webslinger-20090630-3606-466aec2fb8ad.jar!/META-INF/vfs-providers.xml".))
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
    at org.ofbiz.base.start.Start.startServer(Start.java:322)
    at org.ofbiz.base.start.Start.start(Start.java:326)
    at org.ofbiz.base.start.Start.main(Start.java:409)
org.ofbiz.base.container.ContainerException: Initializing
StandardFileSystemManager (Could not load VFS configuration from
"jar:file:/home/ashish/ofbiz_dev/testing/framework/webslinger/lib/webslinger-20090630-3606-466aec2fb8ad.jar!/META-INF/vfs-providers.xml".)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
    at org.ofbiz.base.start.Start.startServer(Start.java:322)
    at org.ofbiz.base.start.Start.start(Start.java:326)
    at org.ofbiz.base.start.Start.main(Start.java:409)
Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
configuration from
"jar:file:/home/ashish/ofbiz_dev/testing/framework/webslinger/lib/webslinger-20090630-3606-466aec2fb8ad.jar!/META-INF/vfs-providers.xml".
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
    ... 5 more
Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "flat".
    at
org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
    ... 10 more
org.ofbiz.base.container.ContainerException: Initializing
StandardFileSystemManager (Could not load VFS configuration from
"jar:file:/home/ashish/ofbiz_dev/testing/framework/webslinger/lib/webslinger-20090630-3606-466aec2fb8ad.jar!/META-INF/vfs-providers.xml".)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
    at org.ofbiz.base.start.Start.startServer(Start.java:322)
    at org.ofbiz.base.start.Start.start(Start.java:326)
    at org.ofbiz.base.start.Start.main(Start.java:409)
Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
configuration from
"jar:file:/home/ashish/ofbiz_dev/testing/framework/webslinger/lib/webslinger-20090630-3606-466aec2fb8ad.jar!/META-INF/vfs-providers.xml".
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
    ... 5 more
Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "flat".
    at
org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
    ... 10 more
2009-07-13 21:53:49,139 (OFBiz_Shutdown_Hook) [
ContainerLoader.java:114:INFO ] Shutting down containers
java.lang.NullPointerException
    at
org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
    at
org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:122)
    at org.ofbiz.base.start.Start.shutdownServer(Start.java:311)
    at org.ofbiz.base.start.Start.access$0(Start.java:305)
    at org.ofbiz.base.start.Start$2.run(Start.java:288)


--
Ashish

On Mon, Jul 13, 2009 at 9:38 PM, Scott Gray <sc...@hotwaxmedia.com>wrote:

> Hi Ashish
>
> I'm just taking a guess here but try changing the following in your
> .classpath file:
> From: <classpathentry kind="src" path="framework/webslinger/src"/>
> To: <classpathentry excluding="META-INF/vfs-providers.xml" kind="src"
> path="framework/webslinger/src"/>
>
> Hope that helps.
>
> Regards
> Scott
>
>
> On 14/07/2009, at 3:17 AM, Ashish Vijaywargiya wrote:
>
>  Hello Adam,
>>
>> Did you get a chance to look at this problem?
>> I tried to run OFBiz in Eclipse from the tips provided at
>> http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
>> still I am getting same error.
>>
>> FYI, I was able to run OFBiz in eclipse in past when webslinger component
>> was not added in trunk.
>>
>> --
>> Ashish
>>
>> On Tue, Jul 7, 2009 at 10:55 AM, Ashish Vijaywargiya <
>> vijaywargiya.ashish@gmail.com> wrote:
>>
>>  Sending it on dev list so that who are not authorized on user list can
>>> see
>>> this.
>>>
>>> PS: Adam the file vfs-providers.xml file is associated to webslinger
>>> component.
>>> I will appreciate if you take a look at this issue as I have very less
>>> knowledge of webslinger component.
>>>
>>> --
>>> Ashish
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: Ashish Vijaywargiya <vi...@gmail.com>
>>> Date: Mon, Jul 6, 2009 at 10:45 AM
>>> Subject: Unable to run OFBiz from Eclipse due to loading VFS
>>> configuration.
>>> To: Ofbiz User ML <us...@ofbiz.apache.org>
>>>
>>>
>>> In past I was able to run OFBiz inside Eclipse.
>>> I tried to start OFBiz from Start.java file with Debug as --> Java
>>> Application option in Eclipse.
>>> But now a days I am getting following error.
>>>
>>> I am exploring the reason behind it and will try to solve this issue as
>>> soon as I can.
>>> In the meantime if someone came across the same error then please provide
>>> the details.
>>>
>>>
>>> 2009-07-06 10:36:48,733 (main) [    ContainerLoader.java:96 :INFO ]
>>> [Startup] Starting containers...
>>> 2009-07-06 10:36:48,966 (main) [             VfsLog.java:122:INFO ] Using
>>> "/tmp/vfs_cache" as temporary files store.
>>> org.ofbiz.base.start.StartupException: Cannot start()
>>> org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
>>> StandardFileSystemManager (Could not load VFS configuration from
>>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".))
>>>   at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
>>>   at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>>>   at org.ofbiz.base.start.Start.startServer(Start.java:320)
>>>   at org.ofbiz.base.start.Start.start(Start.java:324)
>>>   at org.ofbiz.base.start.Start.main(Start.java:407)
>>> org.ofbiz.base.container.ContainerException: Initializing
>>> StandardFileSystemManager (Could not load VFS configuration from
>>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
>>>   at
>>>
>>> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>>>   at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
>>>   at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>>>   at org.ofbiz.base.start.Start.startServer(Start.java:320)
>>>   at org.ofbiz.base.start.Start.start(Start.java:324)
>>>   at org.ofbiz.base.start.Start.main(Start.java:407)
>>> Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
>>> configuration from
>>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
>>>   at
>>>
>>> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
>>>   at
>>>
>>> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
>>>   at
>>>
>>> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>>>   ... 5 more
>>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
>>> registered for URL scheme "ofbiz-home".
>>>   at
>>>
>>> org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
>>>   ... 10 more
>>> org.ofbiz.base.container.ContainerException: Initializing
>>> StandardFileSystemManager (Could not load VFS configuration from
>>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
>>>   at
>>>
>>> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>>>   at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
>>>   at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>>>   at org.ofbiz.base.start.Start.startServer(Start.java:320)
>>>   at org.ofbiz.base.start.Start.start(Start.java:324)
>>>   at org.ofbiz.base.start.Start.main(Start.java:407)
>>> Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
>>> configuration from
>>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
>>>   at
>>>
>>> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
>>>   at
>>>
>>> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
>>>   at
>>>
>>> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>>>   ... 5 more
>>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
>>> registered for URL scheme "ofbiz-home".
>>>   at
>>>
>>> org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
>>>   at
>>>
>>> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
>>>   ... 10 more
>>> 2009-07-06 10:36:49,112 (OFBiz_Shutdown_Hook) [
>>> ContainerLoader.java:114:INFO ] Shutting down containers
>>> java.lang.NullPointerException
>>>   at
>>>
>>> org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
>>>   at
>>> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:122)
>>>   at org.ofbiz.base.start.Start.shutdownServer(Start.java:309)
>>>   at org.ofbiz.base.start.Start.access$0(Start.java:303)
>>>   at org.ofbiz.base.start.Start$2.run(Start.java:286)
>>>
>>>
>>> Thanks in Advance.
>>> --
>>> Ashish
>>>
>>>
>>>
>>>
>

Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Scott Gray <sc...@hotwaxmedia.com>.
Hi Ashish

I'm just taking a guess here but try changing the following in  
your .classpath file:
From: <classpathentry kind="src" path="framework/webslinger/src"/>
To: <classpathentry excluding="META-INF/vfs-providers.xml" kind="src"  
path="framework/webslinger/src"/>

Hope that helps.

Regards
Scott

On 14/07/2009, at 3:17 AM, Ashish Vijaywargiya wrote:

> Hello Adam,
>
> Did you get a chance to look at this problem?
> I tried to run OFBiz in Eclipse from the tips provided at
> http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
> still I am getting same error.
>
> FYI, I was able to run OFBiz in eclipse in past when webslinger  
> component
> was not added in trunk.
>
> --
> Ashish
>
> On Tue, Jul 7, 2009 at 10:55 AM, Ashish Vijaywargiya <
> vijaywargiya.ashish@gmail.com> wrote:
>
>> Sending it on dev list so that who are not authorized on user list  
>> can see
>> this.
>>
>> PS: Adam the file vfs-providers.xml file is associated to webslinger
>> component.
>> I will appreciate if you take a look at this issue as I have very  
>> less
>> knowledge of webslinger component.
>>
>> --
>> Ashish
>>
>>
>> ---------- Forwarded message ----------
>> From: Ashish Vijaywargiya <vi...@gmail.com>
>> Date: Mon, Jul 6, 2009 at 10:45 AM
>> Subject: Unable to run OFBiz from Eclipse due to loading VFS  
>> configuration.
>> To: Ofbiz User ML <us...@ofbiz.apache.org>
>>
>>
>> In past I was able to run OFBiz inside Eclipse.
>> I tried to start OFBiz from Start.java file with Debug as --> Java
>> Application option in Eclipse.
>> But now a days I am getting following error.
>>
>> I am exploring the reason behind it and will try to solve this  
>> issue as
>> soon as I can.
>> In the meantime if someone came across the same error then please  
>> provide
>> the details.
>>
>>
>> 2009-07-06 10:36:48,733 (main) [    ContainerLoader.java:96 :INFO ]
>> [Startup] Starting containers...
>> 2009-07-06 10:36:48,966 (main) [             VfsLog.java:122:INFO ]  
>> Using
>> "/tmp/vfs_cache" as temporary files store.
>> org.ofbiz.base.start.StartupException: Cannot start()
>> org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
>> StandardFileSystemManager (Could not load VFS configuration from
>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs- 
>> providers.xml".))
>>    at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 
>> 103)
>>    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>>    at org.ofbiz.base.start.Start.startServer(Start.java:320)
>>    at org.ofbiz.base.start.Start.start(Start.java:324)
>>    at org.ofbiz.base.start.Start.main(Start.java:407)
>> org.ofbiz.base.container.ContainerException: Initializing
>> StandardFileSystemManager (Could not load VFS configuration from
>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs- 
>> providers.xml".)
>>    at
>> org 
>> .ofbiz 
>> .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>>    at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 
>> 101)
>>    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>>    at org.ofbiz.base.start.Start.startServer(Start.java:320)
>>    at org.ofbiz.base.start.Start.start(Start.java:324)
>>    at org.ofbiz.base.start.Start.main(Start.java:407)
>> Caused by: org.apache.commons.vfs.FileSystemException: Could not  
>> load VFS
>> configuration from
>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager.configure(StandardFileSystemManager.java: 
>> 199)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager 
>> .configurePlugins(StandardFileSystemManager.java:156)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl.StandardFileSystemManager.init(StandardFileSystemManager.java: 
>> 129)
>>    at
>> org 
>> .webslinger 
>> .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java: 
>> 351)
>>    at
>> org 
>> .webslinger 
>> .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java: 
>> 345)
>>    at
>> org 
>> .ofbiz 
>> .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>>    ... 5 more
>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple  
>> providers
>> registered for URL scheme "ofbiz-home".
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java: 
>> 174)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager 
>> .addProvider(StandardFileSystemManager.java:362)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager.configure(StandardFileSystemManager.java: 
>> 262)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager.configure(StandardFileSystemManager.java: 
>> 195)
>>    ... 10 more
>> org.ofbiz.base.container.ContainerException: Initializing
>> StandardFileSystemManager (Could not load VFS configuration from
>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs- 
>> providers.xml".)
>>    at
>> org 
>> .ofbiz 
>> .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>>    at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 
>> 101)
>>    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>>    at org.ofbiz.base.start.Start.startServer(Start.java:320)
>>    at org.ofbiz.base.start.Start.start(Start.java:324)
>>    at org.ofbiz.base.start.Start.main(Start.java:407)
>> Caused by: org.apache.commons.vfs.FileSystemException: Could not  
>> load VFS
>> configuration from
>> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager.configure(StandardFileSystemManager.java: 
>> 199)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager 
>> .configurePlugins(StandardFileSystemManager.java:156)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl.StandardFileSystemManager.init(StandardFileSystemManager.java: 
>> 129)
>>    at
>> org 
>> .webslinger 
>> .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java: 
>> 351)
>>    at
>> org 
>> .webslinger 
>> .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java: 
>> 345)
>>    at
>> org 
>> .ofbiz 
>> .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>>    ... 5 more
>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple  
>> providers
>> registered for URL scheme "ofbiz-home".
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java: 
>> 174)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager 
>> .addProvider(StandardFileSystemManager.java:362)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager.configure(StandardFileSystemManager.java: 
>> 262)
>>    at
>> org 
>> .apache 
>> .commons 
>> .vfs 
>> .impl 
>> .StandardFileSystemManager.configure(StandardFileSystemManager.java: 
>> 195)
>>    ... 10 more
>> 2009-07-06 10:36:49,112 (OFBiz_Shutdown_Hook) [
>> ContainerLoader.java:114:INFO ] Shutting down containers
>> java.lang.NullPointerException
>>    at
>> org 
>> .ofbiz 
>> .service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
>>    at
>> org 
>> .ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java: 
>> 122)
>>    at org.ofbiz.base.start.Start.shutdownServer(Start.java:309)
>>    at org.ofbiz.base.start.Start.access$0(Start.java:303)
>>    at org.ofbiz.base.start.Start$2.run(Start.java:286)
>>
>>
>> Thanks in Advance.
>> --
>> Ashish
>>
>>
>>


Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Hello Adam,

Did you get a chance to look at this problem?
I tried to run OFBiz in Eclipse from the tips provided at
http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
still I am getting same error.

FYI, I was able to run OFBiz in eclipse in past when webslinger component
was not added in trunk.

--
Ashish

On Tue, Jul 7, 2009 at 10:55 AM, Ashish Vijaywargiya <
vijaywargiya.ashish@gmail.com> wrote:

> Sending it on dev list so that who are not authorized on user list can see
> this.
>
> PS: Adam the file vfs-providers.xml file is associated to webslinger
> component.
> I will appreciate if you take a look at this issue as I have very less
> knowledge of webslinger component.
>
> --
> Ashish
>
>
> ---------- Forwarded message ----------
> From: Ashish Vijaywargiya <vi...@gmail.com>
> Date: Mon, Jul 6, 2009 at 10:45 AM
> Subject: Unable to run OFBiz from Eclipse due to loading VFS configuration.
> To: Ofbiz User ML <us...@ofbiz.apache.org>
>
>
> In past I was able to run OFBiz inside Eclipse.
> I tried to start OFBiz from Start.java file with Debug as --> Java
> Application option in Eclipse.
> But now a days I am getting following error.
>
> I am exploring the reason behind it and will try to solve this issue as
> soon as I can.
> In the meantime if someone came across the same error then please provide
> the details.
>
>
> 2009-07-06 10:36:48,733 (main) [    ContainerLoader.java:96 :INFO ]
> [Startup] Starting containers...
> 2009-07-06 10:36:48,966 (main) [             VfsLog.java:122:INFO ] Using
> "/tmp/vfs_cache" as temporary files store.
> org.ofbiz.base.start.StartupException: Cannot start()
> org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
> StandardFileSystemManager (Could not load VFS configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".))
>     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
>     at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>     at org.ofbiz.base.start.Start.startServer(Start.java:320)
>     at org.ofbiz.base.start.Start.start(Start.java:324)
>     at org.ofbiz.base.start.Start.main(Start.java:407)
> org.ofbiz.base.container.ContainerException: Initializing
> StandardFileSystemManager (Could not load VFS configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
>     at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>     at org.ofbiz.base.start.Start.startServer(Start.java:320)
>     at org.ofbiz.base.start.Start.start(Start.java:324)
>     at org.ofbiz.base.start.Start.main(Start.java:407)
> Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
> configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>     ... 5 more
> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
> registered for URL scheme "ofbiz-home".
>     at
> org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
>     ... 10 more
> org.ofbiz.base.container.ContainerException: Initializing
> StandardFileSystemManager (Could not load VFS configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
>     at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>     at org.ofbiz.base.start.Start.startServer(Start.java:320)
>     at org.ofbiz.base.start.Start.start(Start.java:324)
>     at org.ofbiz.base.start.Start.main(Start.java:407)
> Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
> configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>     ... 5 more
> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
> registered for URL scheme "ofbiz-home".
>     at
> org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
>     ... 10 more
> 2009-07-06 10:36:49,112 (OFBiz_Shutdown_Hook) [
> ContainerLoader.java:114:INFO ] Shutting down containers
> java.lang.NullPointerException
>     at
> org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
>     at
> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:122)
>     at org.ofbiz.base.start.Start.shutdownServer(Start.java:309)
>     at org.ofbiz.base.start.Start.access$0(Start.java:303)
>     at org.ofbiz.base.start.Start$2.run(Start.java:286)
>
>
> Thanks in Advance.
> --
> Ashish
>
>
>

Fwd: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Sending it on dev list so that who are not authorized on user list can see
this.

PS: Adam the file vfs-providers.xml file is associated to webslinger
component.
I will appreciate if you take a look at this issue as I have very less
knowledge of webslinger component.

--
Ashish

---------- Forwarded message ----------
From: Ashish Vijaywargiya <vi...@gmail.com>
Date: Mon, Jul 6, 2009 at 10:45 AM
Subject: Unable to run OFBiz from Eclipse due to loading VFS configuration.
To: Ofbiz User ML <us...@ofbiz.apache.org>


In past I was able to run OFBiz inside Eclipse.
I tried to start OFBiz from Start.java file with Debug as --> Java
Application option in Eclipse.
But now a days I am getting following error.

I am exploring the reason behind it and will try to solve this issue as soon
as I can.
In the meantime if someone came across the same error then please provide
the details.


2009-07-06 10:36:48,733 (main) [    ContainerLoader.java:96 :INFO ]
[Startup] Starting containers...
2009-07-06 10:36:48,966 (main) [             VfsLog.java:122:INFO ] Using
"/tmp/vfs_cache" as temporary files store.
org.ofbiz.base.start.StartupException: Cannot start()
org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
StandardFileSystemManager (Could not load VFS configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".))
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
    at org.ofbiz.base.start.Start.startServer(Start.java:320)
    at org.ofbiz.base.start.Start.start(Start.java:324)
    at org.ofbiz.base.start.Start.main(Start.java:407)
org.ofbiz.base.container.ContainerException: Initializing
StandardFileSystemManager (Could not load VFS configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
    at org.ofbiz.base.start.Start.startServer(Start.java:320)
    at org.ofbiz.base.start.Start.start(Start.java:324)
    at org.ofbiz.base.start.Start.main(Start.java:407)
Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
    ... 5 more
Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "ofbiz-home".
    at
org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
    ... 10 more
org.ofbiz.base.container.ContainerException: Initializing
StandardFileSystemManager (Could not load VFS configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
    at org.ofbiz.base.start.Start.startServer(Start.java:320)
    at org.ofbiz.base.start.Start.start(Start.java:324)
    at org.ofbiz.base.start.Start.main(Start.java:407)
Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
configuration from
"file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
    at
org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
    at
org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
    ... 5 more
Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
registered for URL scheme "ofbiz-home".
    at
org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
    at
org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
    ... 10 more
2009-07-06 10:36:49,112 (OFBiz_Shutdown_Hook) [
ContainerLoader.java:114:INFO ] Shutting down containers
java.lang.NullPointerException
    at
org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
    at
org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:122)
    at org.ofbiz.base.start.Start.shutdownServer(Start.java:309)
    at org.ofbiz.base.start.Start.access$0(Start.java:303)
    at org.ofbiz.base.start.Start$2.run(Start.java:286)


Thanks in Advance.
--
Ashish

Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Jacques Le Roux <ja...@free.fr>.
Hi Bob,

I see, thanks for the explanation

Jacques

From: "Bob Morley" <rm...@emforium.com>
>
> I reverted back to trunk (except for my entityengine change and postgres jar)
> and I have a similar problem.  It appears the .classpath issues have been
> resolved, but at start-up it attempts to start the vfs and webslinger
> containers.  I hacked my ofbiz-components.xml to comment out these
> containers and away I went.
>
> This is an Eclipse only problem and I suspect if you compile and setup to
> run in eclipse (by running directly against the ofbiz.jar) it may work.
> What I do is use the default classpath and add the config directory to the
> classpath so I can run in Eclipse debug-mode and get some hot-swapping
> capabilities.
>
> Here are the two lines I comment out --
> <!-- 
>    <container name="commons-vfs-container"
> class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
>    <container name="webslinger-container"
> class="org.ofbiz.webslinger.WebslingerContainer"/>
> -->
>
> - Bob
>
>
> Jacques Le Roux-2 wrote:
>>
>> Has this problem been solved ? It seems to work for me.
>>
>> Jacques
>>
>> From: "Bob Morley" <rm...@emforium.com>
>>>
>>> Same problem for me; here is what I have determined ...
>>>
>>> - The root cause of the problem is that the classpath that Eclipse uses
>>> at
>>> runtime contains mutiple definitions of the same vfs-providers.xml file.
>>> The exception below indicates that multiple providers were registered for
>>> "ofbiz-home" for example.
>>>
>>> - If you remove vfs-providers.xml for your workspace and execute you will
>>> get a different variation of this exception (but this one related to
>>> "thick"
>>> or something like that).  I exploded the webslinger-20090630- ... jar and
>>> it
>>> indeed had an vfs-providers.xml file that contained a definition for that
>>> scheme (in fact there were two).  Not sure if it was this instance of the
>>> file or somewhere in my classpath the xml providers file has been
>>> included
>>> again.
>>>
>>> At this point I elected just to run without webslinger (since it is not
>>> something I am using right now).  Since this is starting up containers,
>>> the
>>> easiest thing was for me to comment out the commons-vfs-container and
>>> webslinger-container.  I do not understand the entire impact of this, but
>>> at
>>> least I could run ofbiz and start debugging through Eclipse again.
>>>
>>> Perhaps a webslinger expert could weigh in on a way to avoid this problem
>>> in
>>> Eclipse?
>>>
>>>
>>> Ashish Vijaywargiya-4 wrote:
>>>>
>>>> In past I was able to run OFBiz inside Eclipse.
>>>> I tried to start OFBiz from Start.java file with Debug as --> Java
>>>> Application option in Eclipse.
>>>> But now a days I am getting following error.
>>>>
>>>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple
>>>> providers
>>>> registered for URL scheme "ofbiz-home".
>>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p25142707.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
> 


Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Jacques Le Roux <ja...@free.fr>.
Hi Ashish,

Not worst in this case it seems ;o)
Actually I did not shift to Windows, it's my favourite environment for development since 3.1 It's more because I have a collection 
of tools and I'm leasy to replace them on another platfom (though I already tried but without great succes so far)
I'm also working on Linux (preferably Ubuntu) which I far prefer for production, no doubts about that.
I just tried on Ubuntu and I got any problems. I was able to look at vars in debug mode. For debug configuration I used the tip you 
may find in Wiki (notably putting ofbiz.jar in configuration/Classpath/User entries) . I have tried compiling in Eclipse and 
outside, both works.

HTH

Jacques

From: "Ashish Vijaywargiya" <as...@hotwaxmedia.com>
> It was not working for me OOTB  but when I commented the webslinger
> container settings then it worked for me.
> I am running OFBiz on Ubuntu. I remembered that you have shifted to the
> worst (Windows) OS in previous days - Have you tried things on Linux?
>
> --
> Ashish
>
> Jacques Le Roux wrote:
>> Hi Ashish,
>>
>> FYI : OOTB (but some config files for port mostly) I have not to
>> comment these containers to debug/run in Eclipse.
>>
>> Jacques
>> PS: this is also a test email as none as reached the ML recently
>>
>> From: "Ashish Vijaywargiya" <vi...@gmail.com>
>>> Thanks Bob for your comment on this - Now I am able to run OFBiz inside
>>> eclipse once again ;o).
>>>
>>> -- 
>>> Ashish
>>>
>>> On Wed, Aug 26, 2009 at 3:15 AM, Bob Morley <rm...@emforium.com>
>>> wrote:
>>>
>>>>
>>>> I reverted back to trunk (except for my entityengine change and
>>>> postgres
>>>> jar)
>>>> and I have a similar problem.  It appears the .classpath issues have
>>>> been
>>>> resolved, but at start-up it attempts to start the vfs and webslinger
>>>> containers.  I hacked my ofbiz-components.xml to comment out these
>>>> containers and away I went.
>>>>
>>>> This is an Eclipse only problem and I suspect if you compile and
>>>> setup to
>>>> run in eclipse (by running directly against the ofbiz.jar) it may work.
>>>> What I do is use the default classpath and add the config directory
>>>> to the
>>>> classpath so I can run in Eclipse debug-mode and get some hot-swapping
>>>> capabilities.
>>>>
>>>> Here are the two lines I comment out --
>>>> <!--
>>>>    <container name="commons-vfs-container"
>>>> class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
>>>>    <container name="webslinger-container"
>>>> class="org.ofbiz.webslinger.WebslingerContainer"/>
>>>>  -->
>>>>
>>>> - Bob
>>>>
>>>>
>>>> Jacques Le Roux-2 wrote:
>>>> >
>>>> > Has this problem been solved ? It seems to work for me.
>>>> >
>>>> > Jacques
>>>> >
>>>> > From: "Bob Morley" <rm...@emforium.com>
>>>> >>
>>>> >> Same problem for me; here is what I have determined ...
>>>> >>
>>>> >> - The root cause of the problem is that the classpath that
>>>> Eclipse uses
>>>> >> at
>>>> >> runtime contains mutiple definitions of the same
>>>> vfs-providers.xml file.
>>>> >> The exception below indicates that multiple providers were
>>>> registered
>>>> for
>>>> >> "ofbiz-home" for example.
>>>> >>
>>>> >> - If you remove vfs-providers.xml for your workspace and execute you
>>>> will
>>>> >> get a different variation of this exception (but this one related to
>>>> >> "thick"
>>>> >> or something like that).  I exploded the webslinger-20090630- ...
>>>> jar
>>>> and
>>>> >> it
>>>> >> indeed had an vfs-providers.xml file that contained a definition for
>>>> that
>>>> >> scheme (in fact there were two).  Not sure if it was this
>>>> instance of
>>>> the
>>>> >> file or somewhere in my classpath the xml providers file has been
>>>> >> included
>>>> >> again.
>>>> >>
>>>> >> At this point I elected just to run without webslinger (since it
>>>> is not
>>>> >> something I am using right now).  Since this is starting up
>>>> containers,
>>>> >> the
>>>> >> easiest thing was for me to comment out the commons-vfs-container
>>>> and
>>>> >> webslinger-container.  I do not understand the entire impact of
>>>> this,
>>>> but
>>>> >> at
>>>> >> least I could run ofbiz and start debugging through Eclipse again.
>>>> >>
>>>> >> Perhaps a webslinger expert could weigh in on a way to avoid this
>>>> problem
>>>> >> in
>>>> >> Eclipse?
>>>> >>
>>>> >>
>>>> >> Ashish Vijaywargiya-4 wrote:
>>>> >>>
>>>> >>> In past I was able to run OFBiz inside Eclipse.
>>>> >>> I tried to start OFBiz from Start.java file with Debug as --> Java
>>>> >>> Application option in Eclipse.
>>>> >>> But now a days I am getting following error.
>>>> >>>
>>>> >>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple
>>>> >>> providers
>>>> >>> registered for URL scheme "ofbiz-home".
>>>> >>>
>>>> >>
>>>> >> --
>>>> >> View this message in context:
>>>> >>
>>>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
>>>>
>>>> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>> >>
>>>> >
>>>> >
>>>> >
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p25142707.html
>>>>
>>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>


Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Ashish Vijaywargiya <as...@hotwaxmedia.com>.
It was not working for me OOTB  but when I commented the webslinger 
container settings then it worked for me.
I am running OFBiz on Ubuntu. I remembered that you have shifted to the 
worst (Windows) OS in previous days - Have you tried things on Linux?

--
Ashish

Jacques Le Roux wrote:
> Hi Ashish,
>
> FYI : OOTB (but some config files for port mostly) I have not to 
> comment these containers to debug/run in Eclipse.
>
> Jacques
> PS: this is also a test email as none as reached the ML recently
>
> From: "Ashish Vijaywargiya" <vi...@gmail.com>
>> Thanks Bob for your comment on this - Now I am able to run OFBiz inside
>> eclipse once again ;o).
>>
>> -- 
>> Ashish
>>
>> On Wed, Aug 26, 2009 at 3:15 AM, Bob Morley <rm...@emforium.com> 
>> wrote:
>>
>>>
>>> I reverted back to trunk (except for my entityengine change and 
>>> postgres
>>> jar)
>>> and I have a similar problem.  It appears the .classpath issues have 
>>> been
>>> resolved, but at start-up it attempts to start the vfs and webslinger
>>> containers.  I hacked my ofbiz-components.xml to comment out these
>>> containers and away I went.
>>>
>>> This is an Eclipse only problem and I suspect if you compile and 
>>> setup to
>>> run in eclipse (by running directly against the ofbiz.jar) it may work.
>>> What I do is use the default classpath and add the config directory 
>>> to the
>>> classpath so I can run in Eclipse debug-mode and get some hot-swapping
>>> capabilities.
>>>
>>> Here are the two lines I comment out --
>>> <!--
>>>    <container name="commons-vfs-container"
>>> class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
>>>    <container name="webslinger-container"
>>> class="org.ofbiz.webslinger.WebslingerContainer"/>
>>>  -->
>>>
>>> - Bob
>>>
>>>
>>> Jacques Le Roux-2 wrote:
>>> >
>>> > Has this problem been solved ? It seems to work for me.
>>> >
>>> > Jacques
>>> >
>>> > From: "Bob Morley" <rm...@emforium.com>
>>> >>
>>> >> Same problem for me; here is what I have determined ...
>>> >>
>>> >> - The root cause of the problem is that the classpath that 
>>> Eclipse uses
>>> >> at
>>> >> runtime contains mutiple definitions of the same 
>>> vfs-providers.xml file.
>>> >> The exception below indicates that multiple providers were 
>>> registered
>>> for
>>> >> "ofbiz-home" for example.
>>> >>
>>> >> - If you remove vfs-providers.xml for your workspace and execute you
>>> will
>>> >> get a different variation of this exception (but this one related to
>>> >> "thick"
>>> >> or something like that).  I exploded the webslinger-20090630- ... 
>>> jar
>>> and
>>> >> it
>>> >> indeed had an vfs-providers.xml file that contained a definition for
>>> that
>>> >> scheme (in fact there were two).  Not sure if it was this 
>>> instance of
>>> the
>>> >> file or somewhere in my classpath the xml providers file has been
>>> >> included
>>> >> again.
>>> >>
>>> >> At this point I elected just to run without webslinger (since it 
>>> is not
>>> >> something I am using right now).  Since this is starting up 
>>> containers,
>>> >> the
>>> >> easiest thing was for me to comment out the commons-vfs-container 
>>> and
>>> >> webslinger-container.  I do not understand the entire impact of 
>>> this,
>>> but
>>> >> at
>>> >> least I could run ofbiz and start debugging through Eclipse again.
>>> >>
>>> >> Perhaps a webslinger expert could weigh in on a way to avoid this
>>> problem
>>> >> in
>>> >> Eclipse?
>>> >>
>>> >>
>>> >> Ashish Vijaywargiya-4 wrote:
>>> >>>
>>> >>> In past I was able to run OFBiz inside Eclipse.
>>> >>> I tried to start OFBiz from Start.java file with Debug as --> Java
>>> >>> Application option in Eclipse.
>>> >>> But now a days I am getting following error.
>>> >>>
>>> >>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple
>>> >>> providers
>>> >>> registered for URL scheme "ofbiz-home".
>>> >>>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html 
>>>
>>> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>> >>
>>> >
>>> >
>>> >
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p25142707.html 
>>>
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>>
>>

Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Jacques Le Roux <ja...@free.fr>.
Hi Ashish,

FYI : OOTB (but some config files for port mostly) I have not to comment these containers to debug/run in Eclipse.

Jacques
PS: this is also a test email as none as reached the ML recently

From: "Ashish Vijaywargiya" <vi...@gmail.com>
> Thanks Bob for your comment on this - Now I am able to run OFBiz inside
> eclipse once again ;o).
> 
> --
> Ashish
> 
> On Wed, Aug 26, 2009 at 3:15 AM, Bob Morley <rm...@emforium.com> wrote:
> 
>>
>> I reverted back to trunk (except for my entityengine change and postgres
>> jar)
>> and I have a similar problem.  It appears the .classpath issues have been
>> resolved, but at start-up it attempts to start the vfs and webslinger
>> containers.  I hacked my ofbiz-components.xml to comment out these
>> containers and away I went.
>>
>> This is an Eclipse only problem and I suspect if you compile and setup to
>> run in eclipse (by running directly against the ofbiz.jar) it may work.
>> What I do is use the default classpath and add the config directory to the
>> classpath so I can run in Eclipse debug-mode and get some hot-swapping
>> capabilities.
>>
>> Here are the two lines I comment out --
>> <!--
>>    <container name="commons-vfs-container"
>> class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
>>    <container name="webslinger-container"
>> class="org.ofbiz.webslinger.WebslingerContainer"/>
>>  -->
>>
>> - Bob
>>
>>
>> Jacques Le Roux-2 wrote:
>> >
>> > Has this problem been solved ? It seems to work for me.
>> >
>> > Jacques
>> >
>> > From: "Bob Morley" <rm...@emforium.com>
>> >>
>> >> Same problem for me; here is what I have determined ...
>> >>
>> >> - The root cause of the problem is that the classpath that Eclipse uses
>> >> at
>> >> runtime contains mutiple definitions of the same vfs-providers.xml file.
>> >> The exception below indicates that multiple providers were registered
>> for
>> >> "ofbiz-home" for example.
>> >>
>> >> - If you remove vfs-providers.xml for your workspace and execute you
>> will
>> >> get a different variation of this exception (but this one related to
>> >> "thick"
>> >> or something like that).  I exploded the webslinger-20090630- ... jar
>> and
>> >> it
>> >> indeed had an vfs-providers.xml file that contained a definition for
>> that
>> >> scheme (in fact there were two).  Not sure if it was this instance of
>> the
>> >> file or somewhere in my classpath the xml providers file has been
>> >> included
>> >> again.
>> >>
>> >> At this point I elected just to run without webslinger (since it is not
>> >> something I am using right now).  Since this is starting up containers,
>> >> the
>> >> easiest thing was for me to comment out the commons-vfs-container and
>> >> webslinger-container.  I do not understand the entire impact of this,
>> but
>> >> at
>> >> least I could run ofbiz and start debugging through Eclipse again.
>> >>
>> >> Perhaps a webslinger expert could weigh in on a way to avoid this
>> problem
>> >> in
>> >> Eclipse?
>> >>
>> >>
>> >> Ashish Vijaywargiya-4 wrote:
>> >>>
>> >>> In past I was able to run OFBiz inside Eclipse.
>> >>> I tried to start OFBiz from Start.java file with Debug as --> Java
>> >>> Application option in Eclipse.
>> >>> But now a days I am getting following error.
>> >>>
>> >>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple
>> >>> providers
>> >>> registered for URL scheme "ofbiz-home".
>> >>>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
>> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
>> >>
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p25142707.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>

Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Thanks Bob for your comment on this - Now I am able to run OFBiz inside
eclipse once again ;o).

--
Ashish

On Wed, Aug 26, 2009 at 3:15 AM, Bob Morley <rm...@emforium.com> wrote:

>
> I reverted back to trunk (except for my entityengine change and postgres
> jar)
> and I have a similar problem.  It appears the .classpath issues have been
> resolved, but at start-up it attempts to start the vfs and webslinger
> containers.  I hacked my ofbiz-components.xml to comment out these
> containers and away I went.
>
> This is an Eclipse only problem and I suspect if you compile and setup to
> run in eclipse (by running directly against the ofbiz.jar) it may work.
> What I do is use the default classpath and add the config directory to the
> classpath so I can run in Eclipse debug-mode and get some hot-swapping
> capabilities.
>
> Here are the two lines I comment out --
> <!--
>    <container name="commons-vfs-container"
> class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
>    <container name="webslinger-container"
> class="org.ofbiz.webslinger.WebslingerContainer"/>
>  -->
>
> - Bob
>
>
> Jacques Le Roux-2 wrote:
> >
> > Has this problem been solved ? It seems to work for me.
> >
> > Jacques
> >
> > From: "Bob Morley" <rm...@emforium.com>
> >>
> >> Same problem for me; here is what I have determined ...
> >>
> >> - The root cause of the problem is that the classpath that Eclipse uses
> >> at
> >> runtime contains mutiple definitions of the same vfs-providers.xml file.
> >> The exception below indicates that multiple providers were registered
> for
> >> "ofbiz-home" for example.
> >>
> >> - If you remove vfs-providers.xml for your workspace and execute you
> will
> >> get a different variation of this exception (but this one related to
> >> "thick"
> >> or something like that).  I exploded the webslinger-20090630- ... jar
> and
> >> it
> >> indeed had an vfs-providers.xml file that contained a definition for
> that
> >> scheme (in fact there were two).  Not sure if it was this instance of
> the
> >> file or somewhere in my classpath the xml providers file has been
> >> included
> >> again.
> >>
> >> At this point I elected just to run without webslinger (since it is not
> >> something I am using right now).  Since this is starting up containers,
> >> the
> >> easiest thing was for me to comment out the commons-vfs-container and
> >> webslinger-container.  I do not understand the entire impact of this,
> but
> >> at
> >> least I could run ofbiz and start debugging through Eclipse again.
> >>
> >> Perhaps a webslinger expert could weigh in on a way to avoid this
> problem
> >> in
> >> Eclipse?
> >>
> >>
> >> Ashish Vijaywargiya-4 wrote:
> >>>
> >>> In past I was able to run OFBiz inside Eclipse.
> >>> I tried to start OFBiz from Start.java file with Debug as --> Java
> >>> Application option in Eclipse.
> >>> But now a days I am getting following error.
> >>>
> >>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple
> >>> providers
> >>> registered for URL scheme "ofbiz-home".
> >>>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p25142707.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>

Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Bob Morley <rm...@emforium.com>.
I reverted back to trunk (except for my entityengine change and postgres jar)
and I have a similar problem.  It appears the .classpath issues have been
resolved, but at start-up it attempts to start the vfs and webslinger
containers.  I hacked my ofbiz-components.xml to comment out these
containers and away I went.

This is an Eclipse only problem and I suspect if you compile and setup to
run in eclipse (by running directly against the ofbiz.jar) it may work. 
What I do is use the default classpath and add the config directory to the
classpath so I can run in Eclipse debug-mode and get some hot-swapping
capabilities.

Here are the two lines I comment out --
<!-- 
    <container name="commons-vfs-container"
class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
    <container name="webslinger-container"
class="org.ofbiz.webslinger.WebslingerContainer"/>
 -->

- Bob


Jacques Le Roux-2 wrote:
> 
> Has this problem been solved ? It seems to work for me.
> 
> Jacques
> 
> From: "Bob Morley" <rm...@emforium.com>
>>
>> Same problem for me; here is what I have determined ...
>>
>> - The root cause of the problem is that the classpath that Eclipse uses
>> at
>> runtime contains mutiple definitions of the same vfs-providers.xml file.
>> The exception below indicates that multiple providers were registered for
>> "ofbiz-home" for example.
>>
>> - If you remove vfs-providers.xml for your workspace and execute you will
>> get a different variation of this exception (but this one related to
>> "thick"
>> or something like that).  I exploded the webslinger-20090630- ... jar and
>> it
>> indeed had an vfs-providers.xml file that contained a definition for that
>> scheme (in fact there were two).  Not sure if it was this instance of the
>> file or somewhere in my classpath the xml providers file has been
>> included
>> again.
>>
>> At this point I elected just to run without webslinger (since it is not
>> something I am using right now).  Since this is starting up containers,
>> the
>> easiest thing was for me to comment out the commons-vfs-container and
>> webslinger-container.  I do not understand the entire impact of this, but
>> at
>> least I could run ofbiz and start debugging through Eclipse again.
>>
>> Perhaps a webslinger expert could weigh in on a way to avoid this problem
>> in
>> Eclipse?
>>
>>
>> Ashish Vijaywargiya-4 wrote:
>>>
>>> In past I was able to run OFBiz inside Eclipse.
>>> I tried to start OFBiz from Start.java file with Debug as --> Java
>>> Application option in Eclipse.
>>> But now a days I am getting following error.
>>>
>>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple
>>> providers
>>> registered for URL scheme "ofbiz-home".
>>>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p25142707.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Jacques Le Roux <ja...@free.fr>.
Has this problem been solved ? It seems to work for me.

Jacques

From: "Bob Morley" <rm...@emforium.com>
>
> Same problem for me; here is what I have determined ...
>
> - The root cause of the problem is that the classpath that Eclipse uses at
> runtime contains mutiple definitions of the same vfs-providers.xml file.
> The exception below indicates that multiple providers were registered for
> "ofbiz-home" for example.
>
> - If you remove vfs-providers.xml for your workspace and execute you will
> get a different variation of this exception (but this one related to "thick"
> or something like that).  I exploded the webslinger-20090630- ... jar and it
> indeed had an vfs-providers.xml file that contained a definition for that
> scheme (in fact there were two).  Not sure if it was this instance of the
> file or somewhere in my classpath the xml providers file has been included
> again.
>
> At this point I elected just to run without webslinger (since it is not
> something I am using right now).  Since this is starting up containers, the
> easiest thing was for me to comment out the commons-vfs-container and
> webslinger-container.  I do not understand the entire impact of this, but at
> least I could run ofbiz and start debugging through Eclipse again.
>
> Perhaps a webslinger expert could weigh in on a way to avoid this problem in
> Eclipse?
>
>
> Ashish Vijaywargiya-4 wrote:
>>
>> In past I was able to run OFBiz inside Eclipse.
>> I tried to start OFBiz from Start.java file with Debug as --> Java
>> Application option in Eclipse.
>> But now a days I am getting following error.
>>
>> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
>> registered for URL scheme "ofbiz-home".
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
> 


Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by Bob Morley <rm...@emforium.com>.
Same problem for me; here is what I have determined ...

- The root cause of the problem is that the classpath that Eclipse uses at
runtime contains mutiple definitions of the same vfs-providers.xml file. 
The exception below indicates that multiple providers were registered for
"ofbiz-home" for example.

- If you remove vfs-providers.xml for your workspace and execute you will
get a different variation of this exception (but this one related to "thick"
or something like that).  I exploded the webslinger-20090630- ... jar and it
indeed had an vfs-providers.xml file that contained a definition for that
scheme (in fact there were two).  Not sure if it was this instance of the
file or somewhere in my classpath the xml providers file has been included
again.

At this point I elected just to run without webslinger (since it is not
something I am using right now).  Since this is starting up containers, the
easiest thing was for me to comment out the commons-vfs-container and
webslinger-container.  I do not understand the entire impact of this, but at
least I could run ofbiz and start debugging through Eclipse again.

Perhaps a webslinger expert could weigh in on a way to avoid this problem in
Eclipse?


Ashish Vijaywargiya-4 wrote:
> 
> In past I was able to run OFBiz inside Eclipse.
> I tried to start OFBiz from Start.java file with Debug as --> Java
> Application option in Eclipse.
> But now a days I am getting following error.
> 
> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
> registered for URL scheme "ofbiz-home".
> 

-- 
View this message in context: http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24751393.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Unable to run OFBiz from Eclipse due to loading VFS configuration.

Posted by minifreak <se...@gmail.com>.

I'm facing the same problem... Any ideas would be much appreciated.


Ashish Vijaywargiya-4 wrote:
> 
> In past I was able to run OFBiz inside Eclipse.
> I tried to start OFBiz from Start.java file with Debug as --> Java
> Application option in Eclipse.
> But now a days I am getting following error.
> 
> I am exploring the reason behind it and will try to solve this issue as
> soon
> as I can.
> In the meantime if someone came across the same error then please provide
> the details.
> 
> 
> 2009-07-06 10:36:48,733 (main) [    ContainerLoader.java:96 :INFO ]
> [Startup] Starting containers...
> 2009-07-06 10:36:48,966 (main) [             VfsLog.java:122:INFO ] Using
> "/tmp/vfs_cache" as temporary files store.
> org.ofbiz.base.start.StartupException: Cannot start()
> org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing
> StandardFileSystemManager (Could not load VFS configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".))
>     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
>     at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>     at org.ofbiz.base.start.Start.startServer(Start.java:320)
>     at org.ofbiz.base.start.Start.start(Start.java:324)
>     at org.ofbiz.base.start.Start.main(Start.java:407)
> org.ofbiz.base.container.ContainerException: Initializing
> StandardFileSystemManager (Could not load VFS configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
>     at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>     at org.ofbiz.base.start.Start.startServer(Start.java:320)
>     at org.ofbiz.base.start.Start.start(Start.java:324)
>     at org.ofbiz.base.start.Start.main(Start.java:407)
> Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
> configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>     ... 5 more
> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
> registered for URL scheme "ofbiz-home".
>     at
> org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
>     ... 10 more
> org.ofbiz.base.container.ContainerException: Initializing
> StandardFileSystemManager (Could not load VFS configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:49)
>     at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
>     at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
>     at org.ofbiz.base.start.Start.startServer(Start.java:320)
>     at org.ofbiz.base.start.Start.start(Start.java:324)
>     at org.ofbiz.base.start.Start.main(Start.java:407)
> Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS
> configuration from
> "file:/home/ashish/ofbiz_dev/testing/bin/META-INF/vfs-providers.xml".
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:199)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configurePlugins(StandardFileSystemManager.java:156)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:129)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351)
>     at
> org.webslinger.commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345)
>     at
> org.ofbiz.commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:44)
>     ... 5 more
> Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers
> registered for URL scheme "ofbiz-home".
>     at
> org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:362)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:262)
>     at
> org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:195)
>     ... 10 more
> 2009-07-06 10:36:49,112 (OFBiz_Shutdown_Hook) [
> ContainerLoader.java:114:INFO ] Shutting down containers
> java.lang.NullPointerException
>     at
> org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:169)
>     at
> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:122)
>     at org.ofbiz.base.start.Start.shutdownServer(Start.java:309)
>     at org.ofbiz.base.start.Start.access$0(Start.java:303)
>     at org.ofbiz.base.start.Start$2.run(Start.java:286)
> 
> 
> Thanks in Advance.
> --
> Ashish
> 
> 

-- 
View this message in context: http://www.nabble.com/Unable-to-run-OFBiz-from-Eclipse-due-to-loading-VFS-configuration.-tp24349920p24373963.html
Sent from the OFBiz - User mailing list archive at Nabble.com.