Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 4.26 with Eclipse RCP and RAP IDE does not find org.eclipse.swt.widgets.Display
RAP 4.26 with Eclipse RCP and RAP IDE does not find org.eclipse.swt.widgets.Display [message #1862366] Wed, 29 November 2023 09:15 Go to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 214
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Hi
I am new to RAP though I have some experiences with Eclipse E4. For learning I tried to deploy the RAP E4 template example. I did as following:

1. Create a plugin project with options
Project name: example.project,
This plug-in is targeted to run with: Eclipse,
This plug-in will make contributions to the UI: checked,
Rich Client Application: No,
Create a plug-in using a template: checked
Selected template: RAP e4 Template

Then in the created project I run example.project.launch:
A dialog with missing dependencies is shown and the console shows the following:

WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Nov. 29, 2023 9:53:59 AM org.apache.aries.spifly.BaseActivator log
INFORMATION: Registered provider org.eclipse.jetty.logging.JettyLoggingServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle org.eclipse.jetty.logging
____________________________
Welcome to Apache Felix Gogo

g! 2023-11-29 09:54:00.479:INFO :oejs.Server:Start Level: Equinox Container: 85229907-6b70-4053-9fb3-41c82976a480: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z; git: 68017dbd00236bb7e187330d7585a059610f661d; jvm 17.0.5+8
2023-11-29 09:54:00.514:INFO :oejss.DefaultSessionIdManager:Start Level: Equinox Container: 85229907-6b70-4053-9fb3-41c82976a480: Session workerName=node0
2023-11-29 09:54:01.253:INFO :oejsh.ContextHandler:Start Level: Equinox Container: 85229907-6b70-4053-9fb3-41c82976a480: Started o.e.j.s.ServletContextHandler@-673cb037{/,null,AVAILABLE}
2023-11-29 09:54:01.266:INFO :oejs.AbstractConnector:Start Level: Equinox Container: 85229907-6b70-4053-9fb3-41c82976a480: Started ServerConnector@d63d2b87{HTTP/1.1, (http/1.1)}{0.0.0.0:50720}
2023-11-29 09:54:01.287:INFO :oejs.Server:Start Level: Equinox Container: 85229907-6b70-4053-9fb3-41c82976a480: Started Server@aaa86069{STARTING}[10.0.15,sto=0] @2714ms
Nov. 29, 2023 9:54:01 AM org.apache.aries.spifly.BaseActivator log
INFORMATION: Registered provider org.eclipse.jetty.http.Http1FieldPreEncoder of service org.eclipse.jetty.http.HttpFieldPreEncoder in bundle org.eclipse.jetty.http
2023-11-29 09:54:01.877:WARN :oejs.HttpChannel:qtp401510645-74: /e4;jsessionid=node05bydme1omvs91kgwsnlo0swyd0.node0
java.lang.LinkageError: loading constraint violation: loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@b401ca7" previously initiated loading for a different type with name "org/eclipse/swt/widgets/Display" defined by loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@e5083438"
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:214)
	at org.eclipse.rap.e4.E4EntryPointFactory.createWorkbench(E4EntryPointFactory.java:57)
	at org.eclipse.rap.e4.E4EntryPointFactory$1.createUI(E4EntryPointFactory.java:45)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	at java.base/java.lang.Thread.run(Thread.java:857)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)


I then updated dependencies in the respective run configuration and tried again:

Now the browser is opened and the the register shows Hello e4 RAP and a dialog says "The application terminated unexpectedly". I press Details and get the following information:

HTTP ERROR 500 java.lang.LinkageError: loading constraint violation: loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@f93d0a56" previously initiated loading for a different type with name "org/eclipse/swt/widgets/Display" defined by loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@ea49c75f"
URI:	/e4
STATUS:	500
MESSAGE:	java.lang.LinkageError: loading constraint violation: loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@f93d0a56" previously initiated loading for a different type with name "org/eclipse/swt/widgets/Display" defined by loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@ea49c75f"
SERVLET:	org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet-5b548594
CAUSED BY:	java.lang.LinkageError: loading constraint violation: loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@f93d0a56" previously initiated loading for a different type with name "org/eclipse/swt/widgets/Display" defined by loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@ea49c75f"
Caused by:

java.lang.LinkageError: loading constraint violation: loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@f93d0a56" previously initiated loading for a different type with name "org/eclipse/swt/widgets/Display" defined by loader "org/eclipse/osgi/internal/loader/EquinoxClassLoader@ea49c75f"
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:214)
	at org.eclipse.rap.e4.E4EntryPointFactory.createWorkbench(E4EntryPointFactory.java:57)
	at org.eclipse.rap.e4.E4EntryPointFactory$1.createUI(E4EntryPointFactory.java:45)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	at java.base/java.lang.Thread.run(Thread.java:857)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)

Powered by Jetty:// 10.0.15


Has anyone an idea how I can solve this problem? Thank you
Re: RAP 4.26 with Eclipse RCP and RAP IDE does not find org.eclipse.swt.widgets.Display [message #1862367 is a reply to message #1862366] Wed, 29 November 2023 09:20 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2428
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

are you using RAP e4 target platform from our download page [1]?

[1] https://eclipse.dev/rap/downloads/

Best regards,
Ivan
Re: RAP 4.26 with Eclipse RCP and RAP IDE does not find org.eclipse.swt.widgets.Display [message #1862372 is a reply to message #1862367] Wed, 29 November 2023 10:40 Go to previous messageGo to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 214
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Sorry that I forgot to say about that: Yes I downloaded the rap e4 targets, added a target platform project that links to those and activated it.
Re: RAP 4.26 with Eclipse RCP and RAP IDE does not find org.eclipse.swt.widgets.Display [message #1862373 is a reply to message #1862372] Wed, 29 November 2023 10:42 Go to previous message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 214
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Oh, I removed the default ${eclipse_home} from the target and reloaded it, now it works. Sorry and thank you.
Previous Topic:equinox Servlet throw an exception during the int stage
Next Topic:Strange behaviour for ComboBox and TabFolder
Goto Forum:
  


Current Time: Thu Dec 05 06:41:03 GMT 2024

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

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

Back to the top