RAP product deployment? [message #652792] |
Sun, 06 February 2011 14:10  |
Eclipse User |
|
|
|
Folks;
after experiencing a number of drawbacks (both related to deployment and to running applications this way), we wanted to give up on deploying our RAP prototypes to .war files and choose to export them as runnable Eclipse products with embedded OSGi web container / jetty instead. However, first experiments with this approach were anything but pleasant: Created a product off the RAP mail demo, added some more functionality, exported as a product, made it create a binary executable:
- First start failed with an error message "...executable launcher was not able to locate its shared companion library".
- Looking at the plugin, I supposed an equinox launcher for my target platform (linux) could be missing, so I dared to copy in a plugin which seems to be equinox-launcher for swt/gtk/linux. This way, the application failed with a different exception yet doesn't still work:
!SESSION 2011-02-05 08:59:25.362 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_21
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.osgi 4 0 2011-02-05 08:59:28.585
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: No context available outside of the request service lifecycle.
at org.eclipse.rwt.internal.service.ContextProvider.getContext(ContextProvider.java:107)
at org.eclipse.rwt.internal.service.ContextProvider.getRequest(ContextProvider.java:123)
at org.eclipse.swt.graphics.Device.readDPI(Device.java:374)
at org.eclipse.swt.graphics.Device.<init>(Device.java:40)
Well... I feel dumb now. Is there anything obvious I am still missing about exporting runnable RAP products? TIA for any hints. 
Kristian
|
|
|
|
Re: RAP product deployment? [message #653064 is a reply to message #652792] |
Tue, 08 February 2011 05:46  |
Eclipse User |
|
|
|
Hi Ralf;
and first off, thanks a bunch for your response. After playing with things a little more yesterday in the evening, I finally managed to the the root cause of my problem, being the fact that I actually tried to export and run a plugin which has been created to be a "rich client application", which also does explain why it started up with a splash screen (UI) being displayed. Starting all over with "just" a plug-in, things pretty much work the way I want, by now. So, overally, I will have a look at the WAR exporter (indeed this feature is interesting for some use cases), but keep the OSGi/jetty/product export my first choice at the moment.
Thanks again and all the best,
Kristian
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds