org.eclipse.rap icon indicating copy to clipboard operation
org.eclipse.rap copied to clipboard

Migration from RAP 3.x to RAP 4.0

Open dwivedi17 opened this issue 1 year ago • 4 comments

Hello,

We are migrating our RAP 3.x application to RAP 4.x on JBoss EAP 8.0 As of now, we are getting deployment issue related to equinox and BridgeServlet.

Is there any migration document available to help us with this migration?

dwivedi17 avatar Dec 16 '24 12:12 dwivedi17

Hi, in RAP 4.0 we have several new bundles:

  • org.eclipse.rap.http.servlet
  • org.eclipse.rap.http.registry
  • org.eclipse.rap.http.jetty
  • org.eclipse.rap.http.servletbridge
  • org.eclipse.rap.servletbridge Please use these bundles and exclude the old Equinox (EE8) bundles.

ifurnadjiev avatar Dec 16 '24 13:12 ifurnadjiev

Hi @ifurnadjiev

Thanks for your response. We are already building our application in RAP v4.1, but during deployment on JBOSS EAP 8.0, we are getting- "{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"eP_War-3.5.0.war\".undertow-deployment.UndertowDeploymentInfoService" => "Failed to start service Caused by: java.lang.NoClassDefFoundError: Failed to link org/eclipse/equinox/servletbridge/BridgeServlet (Module \"deployment.eP_War-3.5.0.war\" from Service Module Loader): javax/servlet/http/HttpServlet"}}"

Aren't these new bundles mentioned by you supposed to be included with version 4.1, as build of the application is also successful. Please let me know if we need to take some additional steps to include these bundles somewhere else. Thanks for your help.

dwivedi17 avatar Jan 22 '25 06:01 dwivedi17

The exception shows that you are still using the old Equinox EE8 bundles -> org/eclipse/equinox/servletbridge/BridgeServlet and not the one mentioned above. For a WAR build example you can check our repo at https://github.com/eclipse-rap/org.eclipse.rap/tree/main/releng/org.eclipse.rap.examples.build

ifurnadjiev avatar Jan 22 '25 07:01 ifurnadjiev

Do you still have problems with RAP 4.x?

ifurnadjiev avatar Mar 04 '25 11:03 ifurnadjiev