[ 
https://issues.apache.org/jira/browse/IVYDE-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714699#action_12714699
 ] 

Nicolas Lalevée commented on IVYDE-139:
---------------------------------------

I have found a good OSGi-enable Apache Common-vfs:
http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.commons-vfs/1.0_1/org.apache.servicemix.bundles.commons-vfs-1.0_1.jar

I have done a little test: I put this file into the "dropins" folder of my 
Eclipse install, restart my Eclipse, and then Ivy is able to find common-vfs. 
If you use an Eclipse older than 3.4, putting it into the "plugins" folder 
should work the same way.

So to make things simple here, I am in favor of just documenting this, with the 
urls (I am very confident that the pointed jars will never change or disappear 
on both orbit and maven repositories), rather than packaging them into Eclipse 
features and putting them into the IvyDE updatesite. Actually the installation 
process into Eclipse will be similar to the one into ant.

So could some of you using common-vfs in real settings tells me if it works for 
him ? Thanks in advance.

> IvyDE does not work with VFS resolvers
> --------------------------------------
>
>                 Key: IVYDE-139
>                 URL: https://issues.apache.org/jira/browse/IVYDE-139
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: 2.0.0.beta1
>            Reporter: Robert Munteanu
>             Fix For: 2.0.0.final
>
>         Attachments: ivysettings-custom.xml
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> With a custom settings file which declares a vfs resolver, IvyDE fails hard 
> with a ClassNotFoundException ( below ) and the ivy.xml classpath container 
> dissapears from the project.
> I guess it's a matter of including the right jars from Ivy.
> {code}
> Message: An internal error occurred during: "Resolve project 'project' and 
> ivy file 'ivy.xml' dependencies".
> Exception stack trace: java.lang.NoClassDefFoundError: 
> org/apache/commons/vfs/FileSystemException
> at org.apache.ivy.plugins.resolver.VfsResolver.<init>(VfsResolver.java:34)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at org.apache.ivy.util.Configurator.addChild(Configurator.java:586)
> at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503)
> at 
> org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:558)
> at 
> org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:200)
> at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
> at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
> at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
> at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> at 
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:277)
> at 
> org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:159)
> at 
> org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:149)
> at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:377)
> at 
> org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfiguration.getIvy(IvyClasspathContainerConfiguration.java:537)
> at 
> org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfiguration.getIvy(IvyClasspathContainerConfiguration.java:486)
> at 
> org.apache.ivyde.eclipse.cpcontainer.IvyResolveJob.run(IvyResolveJob.java:196)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.commons.vfs.FileSystemException
> at 
> org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
> at 
> org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
> at 
> org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
> at 
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> ... 30 more
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to