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

RAP migration to v4.1.0

Open dwivedi17 opened this issue 11 months ago • 7 comments

Hello,

We are migrating our RAP based application to RAP v4.1.0 (from RAP3.X) as we needed the RAP compatibility to JBoss EAP 8. The application is now successfully deployed, but we are getting NOT FOUND on the webpage when we try to access the application URL. There is nothing in the server logs regarding this error. Could you please extend your help and let us know if this is something generic and known, that can be fixed?

For reference, here's the config.ini entries for RAP plugins:

osgi.bundles.defaultStartLevel=4 osgi.bundles=com.ibm.icu@start,
org.eclipse.core.commands@start,
org.eclipse.core.contenttype@start,
org.eclipse.core.databinding@start,
org.eclipse.core.databinding.observable@start,
org.eclipse.core.databinding.property@start,
org.eclipse.core.expressions@start,
org.eclipse.core.jobs@start,
org.eclipse.core.runtime@start,
org.eclipse.equinox.app@start,
org.eclipse.equinox.common@start,
org.eclipse.equinox.preferences@start,
org.eclipse.equinox.registry@start,
org.eclipse.help@start,
org.eclipse.osgi@start,
org.eclipse.osgi.util@start,
org.eclipse.rap.jface@start,
org.eclipse.rap.jface.databinding@start,
org.eclipse.rap.rwt@start,
org.eclipse.rap.rwt.osgi@start,
org.eclipse.rap.ui@start,
org.eclipse.rap.ui.forms@start,
org.eclipse.rap.ui.workbench@start,
org.eclipse.rap.http.servlet@start,
org.eclipse.rap.http.registry@start,
org.eclipse.rap.http.servletbridge@start,
org.eclipse.rap.servletbridge@start,\

Do you see any conflict in the plugins?

Thanks for your help!

Regards, Himanshu

dwivedi17 avatar Feb 21 '25 09:02 dwivedi17

Please enable OSGi console in your web.xml like:

    <init-param>
      <param-name>commandline</param-name>
      <param-value> -registryMultiLanguage console 10001 -consoleLog</param-value>
    </init-param>

and execute the "ss" command to list active bundle and errors.

ifurnadjiev avatar Feb 21 '25 10:02 ifurnadjiev

Please also check our RAP demos build [1] and if the produced WAR files are working fine in JBoss EAP 8.

[1] https://github.com/eclipse-rap/org.eclipse.rap/tree/main/releng/org.eclipse.rap.examples.build

ifurnadjiev avatar Feb 21 '25 13:02 ifurnadjiev

Hello @ifurnadjiev, Thanks for the help. Meanwhile I am checking the RAP demo, I got this in the logs: INFO [stdout] (Framework Event Dispatcher: Equinox Container: da318ed1-a135-44cf-a119-6232ebbc43fe) !MESSAGE FrameworkEvent ERROR INFO [stdout] (Framework Event Dispatcher: Equinox Container: da318ed1-a135-44cf-a119-6232ebbc43fe) !STACK 0 INFO [stdout] (Framework Event Dispatcher: Equinox Container: da318ed1-a135-44cf-a119-6232ebbc43fe) org.osgi.framework.BundleException: Could not resolve module: org.eclipse.rap.ui [34] INFO [stdout] (Framework Event Dispatcher: Equinox Container: da318ed1-a135-44cf-a119-6232ebbc43fe) Unresolved requirement: Import-Package: jakarta.servlet.http; version="[5.0.0,7.0.0)"

This is something that we are getting for multiple bundles. Though, its an INFO in the logs, do you think it may be the reason for NOT FOUND error? jakarta.servlet is supposed to be provided by the EAP modules, somehow it's not binding at runtime. Do we need to explicitly package jakarta.servlet as OSGI bundle?

dwivedi17 avatar Feb 21 '25 13:02 dwivedi17

The error means that the Servlet API 6.x is not available. Yes, this is the reason why BridgeServlet is not available. The Servlet API is exposed by the servlet container and you don't need to package jakarta.servlet as OSGI bundle.

ifurnadjiev avatar Feb 21 '25 13:02 ifurnadjiev

Do you still have problems with the deployment?

ifurnadjiev avatar Mar 04 '25 11:03 ifurnadjiev

Hello @ifurnadjiev ,

Yes, NOT FOUND issue still persist. We are using extension points in plugin xml to map our resources. Though, it was all good till RAP3.X, something is not correct in terms of configs(web and plugin) with RAP4.

Deployment is all good, we don't see any error/exception during deployment.

dwivedi17 avatar Mar 05 '25 13:03 dwivedi17

What about RAP demos - Examples Demo [1] or Controls Demo [2]? Are they working in JBoss EAP 8? The WAR files produced by our build are tested in Tomcat 10.1 and Tomcat 11.

The Workbench Demo [3] is using extension points in plugin xml.

[1] https://rap.eclipsesource.com/demo/release/rapdemo/ [2] https://rap.eclipsesource.com/demo/release/controls/ [3] https://rap.eclipsesource.com/demo/release/workbench/

ifurnadjiev avatar Mar 05 '25 13:03 ifurnadjiev