[ANN] RAP 4.0 meets Jakarta EE 10 [message #1871055] |
Fri, 13 September 2024 07:58 |
Ivan Furnadjiev 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 #1872422 is a reply to message #1871799] |
Wed, 30 October 2024 17:56 |
Sebastian Habenicht 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04543 seconds