Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [ANN] RAP 4.0 meets Jakarta EE 10
[ANN] RAP 4.0 meets Jakarta EE 10 [message #1871055] Fri, 13 September 2024 07:58 Go to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2429
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi all,

after a long time of discussions and development we are proud to announce the next major version of RAP 4. The main noteworthy feature in this version is Jakarta EE10 (Servlet 6) compatibility. Please note, that RAP 4 requires Servlet 6.x API and Java 17. For the old EE8 compatibility you can still use our 3.29 version. RAP 4 comes with some new bundles:
- org.eclipse.rap.http.jetty
- org.eclipse.rap.http.registry
- org.eclipse.rap.http.servlet
- org.eclipse.rap.http.servletbridge

It is available as usual from our download page.
https://www.eclipse.org/rap/downloads/
RAP 4 will be available on Maven Central next week.
Looking forward your feedback!

Best regards,
RAP Team

[Updated on: Fri, 13 September 2024 07:59]

Report message to a moderator

Re: [ANN] RAP 4.0 meets Jakarta EE 10 [message #1871277 is a reply to message #1871055] Thu, 19 September 2024 08:48 Go to previous messageGo to next message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 44
Registered: January 2013
Member
Thanks for all the work, RAP Team! Looking forward to using the new major version. It is and remains just pleasant to work with this well designed framework.
Re: [ANN] RAP 4.0 meets Jakarta EE 10 [message #1871370 is a reply to message #1871277] Mon, 23 September 2024 12:06 Go to previous messageGo to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 137
Registered: July 2009
Senior Member
Thanks again from my side as well. Great work!!

I already ported my application to RAP (RWT) 4.0 and the transition was seamless. My app is now running on the latest Spring Boot 3.x version with the new Jakarta APIs. RAP/RWT didn't even flinch during the migration ;). I should mention that I'm only using the RWT standalone part of RAP as the UI technology, which made the migration a lot easier.

Looking forward to have the RAP dependencies available in Maven central, so I can resolve them from there.

Best regards,
Ben
Re: [ANN] RAP 4.0 meets Jakarta EE 10 [message #1871430 is a reply to message #1871370] Tue, 24 September 2024 12:49 Go to previous messageGo to next message
Tim Oswald is currently offline Tim OswaldFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I tried to migrate my e4 R3.22 RAP application to Rap 4.0. It seems, that the servlet class :
org.eclipse.equinox.servletbridge.BridgeServlet

was replaced with
org.eclipse.rap.servletbridge.BridgeServlet

It his correct?
After deploying the app to Tomcat 10/JRE17, I got the following errror:
Quote:
24-Sep-2024 12:33:33.863 SEVERE [main] org.apache.catalina.core.ApplicationContext.log Servlet.init() for servlet [bridgeservlet] threw exception
java.lang.NullPointerException: Cannot invoke "java.util.Properties.getProperty(String)" because "configurationProperties" is null
at org.eclipse.rap.servletbridge.FrameworkLauncher.buildInitialPropertyMap(FrameworkLauncher.java:575)
at org.eclipse.rap.servletbridge.FrameworkLauncher.start(FrameworkLauncher.java:354)
at org.eclipse.rap.servletbridge.BridgeServlet.init(BridgeServlet.java:106)
at jakarta.servlet.GenericServlet.init(GenericServlet.java:143)
at jakarta.servlet.http.HttpServlet.init(HttpServlet.java:121)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:837)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:794)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:698)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4170)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4456)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)


Any idea what needs to be changed?
Thank you.
Re: [ANN] RAP 4.0 meets Jakarta EE 10 [message #1871799 is a reply to message #1871055] Fri, 11 October 2024 09:14 Go to previous messageGo to next message
Chellie Luar is currently offline Chellie LuarFriend
Messages: 1
Registered: October 2024
Junior Member
Hello all.

Thanks also from my side.

I am trying to migrate my RAP application to RAP 4.0 to make it run on a Wildfly 30.

The application is based on 'RAP with Workbench' as described at:
https://download.eclipse.org/rt/rap/doc/4.0/guide/articles/application-setup.html

In the IDE I managed to make the application executable via the integrated Jetty.

However, I encountered a problem when trying to deploy it on the wildfly 30 as WAR.
After transferring all plugins from the run configuration to the WAR and adding OSGI components, I was able to deploy the WAR.
No errors were displayed and no logs were generated indicating missing dependencies. All plugins are active and have been loaded.
Calling the application in the web browser resulted in the message

BridgeServlet: /application/rap
... a 404 error

I have checked the content of the WAR and it appears complete including the new org.eclipse.rap.servletbridge_4.0.0.20240814-1030.jar under \WEB-INF\lib\.
The config.ini also seems OK.

As in the previous post, I also assume that

org.eclipse.equinox.servletbridge.BridgeServlet

with

org.eclipse.rap.servletbridge.BridgeServlet

in the web.xml of my WAR.

Unfortunately, the documentation at
https://download.eclipse.org/rt/rap/doc/4.0/guide/articles/launcher.html#rap-launcher
still contains plugins that are no longer available/needed (e.g. org.eclipse.osgi.services).
Are there any new things to consider here?

Since no error messages are displayed, I am at a loss at this point.

Is there any way to find out what the problem is?

Thanks in advance!
Re: [ANN] RAP 4.0 meets Jakarta EE 10 [message #1872422 is a reply to message #1871799] Wed, 30 October 2024 17:56 Go to previous messageGo to next message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 44
Registered: January 2013
Member
Hi RAP Team,

I have some problems with launching a RWT 4.0.0 standalone application in the eclipse IDE. To start from scratch, I simply followed the "Getting Started" steps in the documentation. Here is what I did and what happened:

1. Downloaded an installed a new eclipse 2024-09 (for RCP/RAP devs) and installed latest target runtime as described in the guide (RAP Runtime e3 4.0 via the Welcome view).
2. Created a Java project (JavaSE-17 execution environment, no modules).
3. Added all org.eclipse.rap.rwt_* jar from the RAP Runtime to the build path and created the AbstractEntryPoint.

According to the guide, I should now be able to start the application via Run As > RWT Application. But I get errors instead.

1. SLF4J(W): No SLF4J providers were found.
-> Adding respective slf4j-simple to the build path helped; not a real error, though.
2. java.lang.ClassNotFoundException: org.eclipse.jetty.ee.WebAppClassLoading
-> had to add org.eclipse.jetty.ee_12.0.12 to build path (from the IDE's plugins directory)
3. java.lang.ClassNotFoundException: jakarta.servlet.ServletContextListener
-> had to add jakarta.servlet-api_6.1.0 to build path (from bundle pool or the IDE's plugins directory)
4. javax.servlet.UnavailableException: Servlet class org.eclipse.rap.rwt.engine.RWTServlet is not a javax.servlet.Servlet

The last error remains and it seems that an EE8 servlet is expected. In the stacktrace (attached) I see EE8 packages and in org.eclipse.rap.tools.launch.rwt.internal.jetty.JettyLauncher (from org.eclipse.rap.tools.launch.rwt_4.0.0.20240621-0906.jar) org.eclipse.jetty.ee8.webapp.WebAppContext is imported.
As a test, I created a second project with RWT 3.29 instead and this worked (after fixing errors 1. and 2. from above). Following the guide for an RAP 4.0 application also works. Am I doing something wrong or is there a problem with EE10 in the RWT launcher in tools (or maybe the guide needs to be updated reagrding the build path)?

Regards,
Sebastian

[EDIT 2024-12-10]: FYI - RWT launcher has been updated to EE10 with 4.1.0, see [1].

[1] https://github.com/eclipse-rap/org.eclipse.rap.tools/issues/93

[Updated on: Tue, 10 December 2024 06:53]

Report message to a moderator

Re: [ANN] RAP 4.0 meets Jakarta EE 10 [message #1872608 is a reply to message #1871799] Mon, 11 November 2024 14:00 Go to previous message
Maik Taubert is currently offline Maik TaubertFriend
Messages: 1
Registered: November 2024
Junior Member
Quote:
I am trying to migrate my RAP application to RAP 4.0 to make it run on a Wildfly 30.

To me it reads Wildfly 30 does not support Servlet API 6.1 that is what RAP4.0 depends on.

Have you checked that org.eclipse.rap.servletbridge.extensionbundle is in your config.ini and it has been RESOLVED? Check out console "ss" command.
In order to get more information on the error configure the logging for org.eclipse.* in Wildfly.
Previous Topic:RAP Table: Row sometimes empty
Next Topic:JavaScript libraries cannot work when using default browaser
Goto Forum:
  


Current Time: Fri Jan 03 03:47:13 GMT 2025

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

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

Back to the top