Uploaded image for project: 'IvyDE'
  1. IvyDE
  2. IVYDE-79

Loading config causes BuildException and eclipse freaks out

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0.alpha1
    • Fix Version/s: 2.0.0.alpha1
    • Component/s: classpath container
    • Labels:
      None
    • Environment:

      eclipse 3.3.1.1, openSuse 10.3

      Description

      When I set the ivy settings file in preferences, I get an error in eclipse.
      It seems like ivyde has problems parsing my settings file even though it works fine from ant.

      Unfortunately, the error in eclipse is: java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
      so i can't really get at the "real" issue.

      The error occurs anytime ivyde needs to parse the settings.
      For space sake, here's the stack trace when i try to resolve:

      !ENTRY org.eclipse.core.jobs 4 2 2008-02-22 13:05:28.439
      !MESSAGE An internal error occurred during: "Resolve all dependencies".
      !STACK 0
      java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      at java.lang.Class.getConstructor0(Class.java:2699)
      at java.lang.Class.newInstance0(Class.java:326)
      at java.lang.Class.newInstance(Class.java:308)
      at org.apache.ivy.util.Configurator.addChild(Configurator.java:548)
      at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:477)
      at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:177)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
      at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1337)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
      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:198)
      at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:92)
      at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:84)
      at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:350)
      at org.apache.ivy.Ivy.configure(Ivy.java:254)
      at org.apache.ivyde.eclipse.IvyPlugin.refreshIvyConfiguration(IvyPlugin.java:289)
      at org.apache.ivyde.eclipse.IvyPlugin.getIvy(IvyPlugin.java:209)
      at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer.computeClasspathEntries(IvyClasspathContainer.java:524)
      at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer.resolve(IvyClasspathContainer.java:548)
      at org.apache.ivyde.eclipse.ui.actions.ResolveAllAction$1.run(ResolveAllAction.java:43)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.BuildException
      at java.lang.ClassLoader.findClass(ClassLoader.java:358)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      ... 31 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hibou Nicolas Lalevée
                Reporter:
                jdoklovic Jonathan Doklovic
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: