Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » running a product, swt plugin not found, latest e4 SDK I build
running a product, swt plugin not found, latest e4 SDK I build [message #663095] Sun, 03 April 2011 14:57 Go to next message
No real name is currently offline 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 #663131 is a reply to message #663095] Sun, 03 April 2011 22:00 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 113
Registered: July 2009
Senior Member
I found the problem after much digging.


On windows 7, x86_64 platfoms, it appears that the 4.1 SDK may set the target architecture to the ws=wpf and arch=x86 instead of ws=win32 arch=x86_64. While this is not wrong, the 4.1 SDK appears to only contain ws=win32 and arch=x86 in the distribution.

So the detection is correct in the default target platform but the plugins are not available. Somehow, there is no error signaled in plugin resolution. Perhaps it defaults back to x86 which then silently fails to load correctly...not sure.

I'm not sure if this is a bug or a feature but it was very hard to track down.
Re: running a product, swt plugin not found, latest e4 SDK I build [message #665381 is a reply to message #663131] Thu, 14 April 2011 13:53 Go to previous messageGo to next message
Josef Freundorfer is currently offline Josef Freundorfer
Messages: 10
Registered: May 2010
Location: Germany
Junior Member
Many thanks. Had the same error x86_64 set as of another development machine, and it wouldn't work on a classical x86...
Re: running a product, swt plugin not found, latest e4 SDK I build [message #991076 is a reply to message #665381] Mon, 17 December 2012 09:59 Go to previous messageGo to next message
An Phung is currently offline An Phung
Messages: 2
Registered: November 2012
Junior Member
I have the same problem while launching my plugins on Juno under win 32 x86:

!SESSION 2012-12-17 10:47:21.937 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments: -product <product name> --launcher.XXMaxPermSize 256m
Command-line arguments: -product <product name> -data <runtime workspace name> -dev <property file name> -console -os win32 -ws win32 -arch x86 --launcher.XXMaxPermSize 256m -clean

!ENTRY org.eclipse.equinox.ds 4 0 2012-12-17 10:47:26.734
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@d1e07c 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.getMethod(ServiceComponent.java:126)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:213)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 15 more

Any suggestion for solving this problem?
Re: running a product, swt plugin not found, latest e4 SDK I build [message #991084 is a reply to message #991076] Mon, 17 December 2012 10:25 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

What's your build id? Is o.e.swt in your manifest and .product?
Re: running a product, swt plugin not found, latest e4 SDK I build [message #1015433 is a reply to message #991076] Thu, 28 February 2013 14:54 Go to previous messageGo to next message
Zac Morris is currently offline Zac Morris
Messages: 1
Registered: July 2009
Junior Member
I was running into a similar issue, and turns out I was trying to start 32bit Juno with 64bit javaw.exe (I start eclipse with javaw.exe vs the eclipse.exe).

Re: running a product, swt plugin not found, latest e4 SDK I build [message #1232579 is a reply to message #663095] Fri, 17 January 2014 09:05 Go to previous messageGo to next message
Marco Descher is currently offline Marco Descher
Messages: 84
Registered: October 2010
Location: Austria
Member
I face the same problem with the newest Luna build on OS X ... Not sure what to do here ?!

!ENTRY org.eclipse.equinox.ds 4 0 2014-01-17 10:04:31.829
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@62d38dbc 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(Class.java:2531)
at java.lang.Class.getDeclaredMethods(Class.java:1855)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMethod(ServiceComponent.java:126)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:213)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display cannot be found by osgi.identity; osgi.identity="org.eclipse.e4.ui.css.swt.theme"; type="osgi.bundle"; version:Version="0.9.200.v20131211-1600"; singleton:="true"
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:411)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:331)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:323)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 15 more

!ENTRY org.eclipse.equinox.ds 4 0 2014-01-17 10:04:31.831
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@62d38dbc 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(Class.java:2531)
at java.lang.Class.getDeclaredMethods(Class.java:1855)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMethod(ServiceComponent.java:126)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:213)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display cannot be found by osgi.identity; osgi.identity="org.eclipse.e4.ui.css.swt.theme"; type="osgi.bundle"; version:Version="0.9.200.v20131211-1600"; singleton:="true"
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:411)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:331)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:323)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 15 more
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 Go to previous message
Christian Mathis is currently offline 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

Previous Topic:Exception thrown if Part is closed PartStack within Area.
Next Topic:Missing org.eclipse.e4.ui.model.workbench.edit
Goto Forum:
  


Current Time: Thu Oct 23 20:47:41 GMT 2014

Powered by FUDForum. Page generated in 0.14829 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software