Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Export RAP project to WAR
Export RAP project to WAR [message #1832602] Mon, 21 September 2020 15:41 Go to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 82
Registered: December 2011
Member
Hello,

I try to export my RAP e4 project to WAR with Eclipse 2020-09.
I did it with Eclipse 2019-03 and Libra but that does not work with the latest version of Eclipse (Eclipse 2020-09 and Libra 0.3.5).

When I create a new WAR Product Configuration and initialize the file content with the launch configuration, I get an exception :

org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.getWorkspaceBundleMap(Lorg/eclipse/debug/core/ILaunchConfiguration;Ljava/util/Set;Ljava/lang/String;)Ljava/util/Map; (loaded from file:/C:/Develop/eclipse-rcp-2020-09-R/plugins/org.eclipse.pde.launching_3.9.0.v20200812-1037.jar by org.eclipse.osgi.internal.loader.EquinoxClassLoader@4e225a02[org.eclipse.pde.launching:3.9.0.v20200812-1037(id=386)]) called from class org.eclipse.libra.warproducts.ui.newwizard.WARProductFromConfigOperation (loaded from file:/C:/Develop/eclipse-rcp-2020-09-R/plugins/org.eclipse.libra.warproducts.ui_0.3.5.202001151127.jar by org.eclipse.osgi.internal.loader.EquinoxClassLoader@24ac580d[org.eclipse.libra.warproducts.ui:0.3.5.202001151127(id=549)]).
org/eclipse/pde/internal/launching/launcher/BundleLauncherHelper.getWorkspaceBundleMap(Lorg/eclipse/debug/core/ILaunchConfiguration;Ljava/util/Set;Ljava/lang/String;)Ljava/util/Map; (loaded from file:/C:/Develop/eclipse-rcp-2020-09-R/plugins/org.eclipse.pde.launching_3.9.0.v20200812-1037.jar by org.eclipse.osgi.internal.loader.EquinoxClassLoader@4e225a02[org.eclipse.pde.launching:3.9.0.v20200812-1037(id=386)]) called from class org.eclipse.libra.warproducts.ui.newwizard.WARProductFromConfigOperation (loaded from file:/C:/Develop/eclipse-rcp-2020-09-R/plugins/org.eclipse.libra.warproducts.ui_0.3.5.202001151127.jar by org.eclipse.osgi.internal.loader.EquinoxClassLoader@24ac580d[org.eclipse.libra.warproducts.ui:0.3.5.202001151127(id=549)]).


If I use the WAR Product Configuration generated by Eclipse 2019-03, I can create the WAR but the application fails in Tomcat container with :

!ENTRY org.eclipse.e4.ui.workbench 4 0 2020-09-21 16:57:06.785
!MESSAGE Unable to load resource platform:/plugin/lu.sotel.nrj_plus.client.base/Application.e4xmi
!STACK 0
java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.getResource(ResourceHandler.java:357)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadResource(ResourceHandler.java:327)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:243)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:425)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:268)
Re: Export RAP project to WAR [message #1832761 is a reply to message #1832602] Thu, 24 September 2020 14:54 Go to previous message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 82
Registered: December 2011
Member
Hi,

I found the problem after debugging. PostContruct was not called so some variables were not initialized.
Eclipse 2020-09 uses JRE 11 and I had to include external javax modules and specifically javax.annotations to compile my source code.
My Tomcat installation used a JRE 8 and some conflicts appeared between the javax.annotations libraries. I change the JRE 8 to JRE 11 and the problem is off

Jean-Pascal
Previous Topic:About the use of Table Shortcuts in Mac.
Next Topic:Cannot OSGi-configure ApplicationConfiguration-ServiceComponent
Goto Forum:
  


Current Time: Tue Dec 10 14:46:35 GMT 2024

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

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

Back to the top