running a product, swt plugin not found, latest e4 SDK I build [message #663095] |
Sun, 03 April 2011 14:57 |
No real name Messages: 113 Registered: July 2009 |
Senior Member |
|
|
I was using the M6 SDK as well as the latest I build. I am having the same problem on both. When I create an example e4 project and run it without changing anything, I am getting no class found errors related to swt. I have only installed the minimalist e4 tools to get the workbench editor.
The log is below. I did check the product profile and the runtime generated config files to ensure that the SWT plugin is indeed a specified bundle, but I've not found anything to indicate that it is missing and it is present in all cases. I am also getting an error in the jdt because it does not find the SWT bundle. Only when I explicitly add the same swt bundle to the java build path do the error highlights in the jdt go away. Of course, I still get the runtime errors.
Any thoughts on the problem? For some reason, with M6+, I seem to be having little resolution issues everywhere that I cannot find the pattern--especially when trying to install the e.11 M6 bundles to get e4 tooling.
I tried leaving out theme bundles but I just get osgi bundle resolution errors instead of the errors below.
!ENTRY org.eclipse.equinox.ds 4 0 2011-04-03 10:50:07.268
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@97d01f of component org.eclipse.e4.ui.css.swt.theme
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:118)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:205)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:346)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:588)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:196)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:441)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:213)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 15 more
!ENTRY org.eclipse.equinox.ds 4 0 2011-04-03 10:50:07.271
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@97d01f of component org.eclipse.e4.ui.css.swt.theme
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:118)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:205)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:346)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:588)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:196)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:441)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:213)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 15 more
!ENTRY org.eclipse.osgi 4 0 2011-04-03 10:50:07.747
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start (E4Application.java:127)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
!ENTRY org.eclipse.e4.ui.css.swt.theme 4 0 2011-04-03 10:50:07.791
!MESSAGE [SCR] Error while attempting to deactivate instance of component Component[
name = org.eclipse.e4.ui.css.swt.theme
activate = activate
deactivate = deactivate
modified =
configuration-policy = optional
factory = null
autoenable = true
immediate = true
implementation = org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager
state = Disabled
properties =
serviceFactory = false
serviceInterface = [org.eclipse.e4.ui.css.swt.theme.IThemeManager]
references = null
located in bundle = org.eclipse.e4.ui.css.swt.theme_0.9.0.v20100723-1830 [48]
]
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:118)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.deact ivate(ServiceComponent.java:329)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.d eactivate(ServiceComponentProp.java:161)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.d ispose(ServiceComponentProp.java:388)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.d ispose(ServiceComponentProp.java:102)
at org.eclipse.equinox.internal.ds.InstanceProcess.disposeInsta nces(InstanceProcess.java:365)
at org.eclipse.equinox.internal.ds.InstanceProcess.disposeInsta nces(InstanceProcess.java:305)
at org.eclipse.equinox.internal.ds.Resolver.disposeComponentCon figs(Resolver.java:685)
at org.eclipse.equinox.internal.ds.Resolver.disableComponents(R esolver.java:661)
at org.eclipse.equinox.internal.ds.SCRManager.stoppingBundle(SC RManager.java:553)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:232)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:847)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1522)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1458)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1453)
at org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.java:506)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.susp end(AbstractBundle.java:565)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBu ndle(Framework.java:1160)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d ecFWSL(StartLevelManager.java:595)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.s hutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundl e.suspend(InternalSystemBundle.java:284)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Fra mework.java:597)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(Ecl ipseStarter.java:390)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 39 more
!ENTRY org.eclipse.e4.ui.css.swt.theme 4 0 2011-04-03 10:50:07.836
!MESSAGE [SCR] Error while attempting to deactivate instance of component Component[
name = org.eclipse.e4.ui.css.swt.theme
activate = activate
deactivate = deactivate
modified =
configuration-policy = optional
factory = null
autoenable = true
immediate = true
implementation = org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager
state = Disabled
properties =
serviceFactory = false
serviceInterface = [org.eclipse.e4.ui.css.swt.theme.IThemeManager]
references = null
located in bundle = org.eclipse.e4.ui.css.swt.theme_0.9.0.v20100723-1830 [48]
]
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:118)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.deact ivate(ServiceComponent.java:329)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.d eactivate(ServiceComponentProp.java:161)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.d ispose(ServiceComponentProp.java:388)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.d ispose(ServiceComponentProp.java:102)
at org.eclipse.equinox.internal.ds.InstanceProcess.disposeInsta nces(InstanceProcess.java:365)
at org.eclipse.equinox.internal.ds.InstanceProcess.disposeInsta nces(InstanceProcess.java:305)
at org.eclipse.equinox.internal.ds.Resolver.disposeComponentCon figs(Resolver.java:685)
at org.eclipse.equinox.internal.ds.Resolver.disableComponents(R esolver.java:661)
at org.eclipse.equinox.internal.ds.SCRManager.stoppingBundle(SC RManager.java:553)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:232)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:847)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1522)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1458)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1453)
at org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.java:506)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.susp end(AbstractBundle.java:565)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBu ndle(Framework.java:1160)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d ecFWSL(StartLevelManager.java:595)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.s hutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundl e.suspend(InternalSystemBundle.java:284)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Fra mework.java:597)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(Ecl ipseStarter.java:390)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 39 more
[Updated on: Sun, 03 April 2011 14:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: running a product, swt plugin not found, latest e4 SDK I build [message #1234201 is a reply to message #663095] |
Tue, 21 January 2014 12:58 |
Christian Mathis Messages: 4 Registered: July 2009 |
Junior Member |
|
|
I had exactly the same problem (and Stacktrace) while executing some tycho-surefire-tests on our buildserver after upgrading from Luna M3 to M4.
The buildserver is Win64 the target environment win32.win32.x86
I've tried to include org.eclipse.swt.widgets as dependency on the test fragment and org.eclipse.swt.win32.win32.x86 as additional dependency on the tycho-surefire configuration but without success.
What helped in my case was to add
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
to the build.
The actual problem was that I was accidentally running the tests with a 64bit VM instead of a 32bit VM.
[Updated on: Wed, 22 January 2014 16:47] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05769 seconds