Deploying E4 application to a servlet container using tycho [message #1781290] |
Mon, 05 February 2018 15:26 |
Christian Derksen![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=christian.derksen%40uni-due.de) Messages: 11 Registered: September 2017 |
Junior Member |
|
|
Hello Everybody!
For a few days I'm trying to setup a RAP E4 application, focussing on the deployment to a servlet container first (like TomCat or Wildfly/JBoss) by using tycho.
For this, I managed to run the application locally (using Jetty) and adapt to the example provided by the rapdemo from the git of org.eclipse.rap.
Excuting the maven build (based on a plugin-based product definition) produces a *.war file, which made me quite optimiistic first. But unfortunately that *.war can't be executed by Tomcat after deployment. The structure will be unzipped in the webapps directory of Tomcat, but the lib with the servlet bridge is missing. For this I stopped the application, manually copied the lib directory (containg the jar of org.eclipse.equinox.servletbridge) from the rapdemo to my project and restarted the application again. As result somthing starts without any error, but trying to open the application just shows a 404 page "BridgeServlet: /webApp/" => "The requested resource is not available.". Additionally, opening the OSGI console showed that all bundles are ACTIVE.
Beside the above actions, I also tried a feature based product definition. Here also, the maven build succeeded, but in contrast to the above described case, the war-file already contains the servletbridge so that the 404 error occurs directly. In contrast to the plugin-based product definition the number of plugins was higher (approx. 81 instaed of 51 plugins), which brings me to my questions:
- What is th right way to produce a RAP 3.4 *.war-file for a servlet container (either for Tomcat or for Wildfly)
- How to know which bundles have to be configured (with which start level) in the configuration section of the product definition
(e.g. the feature based product definition also results to jetty bundles in the war that are probably useless).
For me, curently it feels that everything is a bit confusing or try and error without knowing what to do exactly. So I would be glad if you could help.
And of course, I already checked the RAP developers guide and also found the troublshooting section for the *.war deployment and other ...
To see what I'm speaking about I placed my current project- and build settings at github - maybe it can also help others.
See: https://github.com/CDerksen/EclipseRAP-E4-Application
The project structure looks like this:
de.enflexit.web (root)
+ bundles
=> de.enfexit.web.core
+ featuires
=> de.enfexit.web.feature
+ releng
=> de.enfexit.web.configuration (configuration for the tycho build - contains the './parent/parent' structure of the rapdemo
=> de.enfexit.web.product (contains product definition and the pom to be executed)
=> de.enfexit.web.target (target defiition for the workspace)
I would be very happy about your help!
Best wishes,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.04151 seconds