java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer

SpringSource Issue Tracker | Adrian Hass | 6 years ago
  1. 0

    After a crash during excution of a grails command, STS wont start anymore. It states: "An error has ocurred. See the log file D:\sts-workspace_ah\.metadata\.log ". In this file, I see the follwing related stacktrace: !ENTRY org.eclipse.osgi 4 0 2011-02-17 10:26:37.766 !MESSAGE Application error !STACK 1 java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:116) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) at org.eclipse.equinox.launcher.Main.main(Main.java:1383) Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (169). at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:121) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393) at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 14 more Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417) at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106) ... 23 more Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/Prosquare2/yui-2.7.0.1-src-groovy/org/codehaus/groovy/grails/plugins/yui/Yui.groovy' not found. at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257) at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792) at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517) at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:688) at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1503) at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2134) at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1883) at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:406) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) ... 29 more I think the path is set wrong, since in .classpath we have: <classpathentry kind="src" path="yui-2.7.0.1-grails-app-i18n"> <attributes> <attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> </attributes> </classpathentry> So either the folder is incorrectly set to: /Prosquare2/yui-2.7.0.1-src-groovy/org/codehaus/groovy/grails/plugins/yui/Yui.groovy instead of: \Prosquare2\plugins\yui-2.7.0.1\src\groovy\org\codehaus\groovy\grails\plugins\yui\Yui.groovy (I don't mean the slashes.) or some other ressource path is set incorrectly. But this should not cause STS starts to fail! It seems purely project related has nothing to do with eclipse, grails tooling etc., so only a warning should be issued.

    SpringSource Issue Tracker | 6 years ago | Adrian Hass
    java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
  2. 0

    After a crash during excution of a grails command, STS wont start anymore. It states: "An error has ocurred. See the log file D:\sts-workspace_ah\.metadata\.log ". In this file, I see the follwing related stacktrace: !ENTRY org.eclipse.osgi 4 0 2011-02-17 10:26:37.766 !MESSAGE Application error !STACK 1 java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:116) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) at org.eclipse.equinox.launcher.Main.main(Main.java:1383) Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (169). at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:121) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393) at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 14 more Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417) at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106) ... 23 more Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/Prosquare2/yui-2.7.0.1-src-groovy/org/codehaus/groovy/grails/plugins/yui/Yui.groovy' not found. at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257) at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47) at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792) at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517) at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:688) at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1503) at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2134) at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1883) at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:406) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) ... 29 more I think the path is set wrong, since in .classpath we have: <classpathentry kind="src" path="yui-2.7.0.1-grails-app-i18n"> <attributes> <attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> </attributes> </classpathentry> So either the folder is incorrectly set to: /Prosquare2/yui-2.7.0.1-src-groovy/org/codehaus/groovy/grails/plugins/yui/Yui.groovy instead of: \Prosquare2\plugins\yui-2.7.0.1\src\groovy\org\codehaus\groovy\grails\plugins\yui\Yui.groovy (I don't mean the slashes.) or some other ressource path is set incorrectly. But this should not cause STS starts to fail! It seems purely project related has nothing to do with eclipse, grails tooling etc., so only a warning should be issued.

    SpringSource Issue Tracker | 6 years ago | Adrian Hass
    java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
  3. 0

    Eclipse with ADT won't start - points at error in /metadata/.log file

    Stack Overflow | 3 years ago | Antonis427
    java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Aptana 3 is not starting and only says "An error has occurred. See the log file."

    Stack Overflow | 4 years ago | Oakc123
    java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.core.internal.dtree.ObjectNotFoundException

      Tree element '/Prosquare2/yui-2.7.0.1-src-groovy/org/codehaus/groovy/grails/plugins/yui/Yui.groovy' not found.

      at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound()
    2. Core Resource Management
      ResourcesPlugin.start
      1. org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:257)
      2. org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:585)
      3. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:50)
      4. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      5. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      6. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      7. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      8. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      9. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      10. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      11. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      12. org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:47)
      13. org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:88)
      14. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:816)
      15. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
      16. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
      17. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
      18. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
      19. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:815)
      20. org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:792)
      21. org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:517)
      22. org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:688)
      23. org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1503)
      24. org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2134)
      25. org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1883)
      26. org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:406)
      26 frames
    3. Eclipse OSGi
      BundleContextImpl$1.run
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
      1 frame
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    5. Eclipse OSGi
      AbstractBundle.start
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
      2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
      3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
      4. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
      4 frames
    6. Eclipse OSGi
      EclipseLazyStarter.postFindLocalClass
      1. org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
      2. org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
      3. org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
      3 frames
    7. Eclipse OSGi
      DefaultClassLoader.findLocalClass
      1. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
      2. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
      2 frames
    8. Eclipse OSGi
      BundleLoader.findClass
      1. org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
      2. org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
      3. org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466)
      4. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
      5. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
      5 frames
    9. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      1 frame
    10. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      1 frame
    11. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:116)
      1 frame
    12. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    13. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1407)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1383)
      4 frames