tag:blogger.com,1999:blog-6180816727867247030.post9031638604887410832..comments2008-08-22T09:27:14.079-07:00Comments on RAP Insights: RAP Deployment - Part 1: Deploying your applicatio...Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-6180816727867247030.post-28643164333716497102008-08-22T01:33:00.000-07:002008-08-22T01:33:00.000-07:002008-08-22T01:33:00.000-07:00Hi Elias,I took another look at this after a break...Hi Elias,<BR/><BR/>I took another look at this after a break of a few days, and the HTTP Error 500 was due to me having renamed the Entrypoint to calc. Now everything works fine. So I suspect the only change needed for version 3.4 of the tutorial is with the createUI() method in CalculatorApplication. Thanks again. I'm about to start Part II.<BR/><BR/>paulmcdeepaulmcdeenoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-76960287301924264682008-08-18T10:51:00.000-07:002008-08-18T10:51:00.000-07:002008-08-18T10:51:00.000-07:00Hi Joho,thanks for sharing these tips with us. I'l...Hi Joho,<BR/><BR/>thanks for sharing these tips with us. I'll consider these when updating the tutorial for 3.4.<BR/><BR/>Kind regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-55041181124775702222008-08-13T01:46:00.000-07:002008-08-13T01:46:00.000-07:002008-08-13T01:46:00.000-07:00Hi all,first: a great thanks - this tutorial was t...Hi all,<BR/><BR/>first: a great thanks - this tutorial was the thing i needed.<BR/><BR/>second: i have had some problems while trying out.<BR/><BR/>here are the 2 fixes for the tutorial i needed to get it run<BR/><BR/>1) add the following package to the feature.xml plug-ins-tab<BR/><B>org.apache.commons.logging</B><BR/>... i need this because of the following error(in the osgi-logfile):<BR/>org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.mortbay.http; version=&quot;[5.1.0,6.0.0)&quot;<BR/><BR/>the solution became obvious after typing: <BR/>osgi&gt; diag 50<BR/>where 50 is org.mortbay.jetty<BR/><BR/>... it seems this is because some packages have changed in the meantime<BR/><BR/><BR/>2) add the org.eclipse.equinox.http.registr<B>y@4:start</B> to your config.ini to start this package automatic at the first time and get rid of the <B>error 404</B><BR/><BR/>--- my config.ini ---<BR/>#bundles to start <BR/>osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.rap.ui@4:start,org.eclipse.equinox.http.jetty@4:start,org.eclipse.equinox.http.registry@4:start<BR/><BR/># options for the equinox launcher<BR/># do not run an eclipse application<BR/>eclipse.ignoreApp=true<BR/># don't shutdown osgi after exiting (or not running) the application<BR/>osgi.noShutdown=true<BR/><BR/># incoming port for the server<BR/>org.osgi.service.http.port=7070<BR/><BR/>--- end my config.ini ---<BR/><BR/><BR/>cu, johojohonoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-33299144278272755512008-08-12T04:24:00.000-07:002008-08-12T04:24:00.000-07:002008-08-12T04:24:00.000-07:00Hi Elias. Firstly, thanks very much for your help....Hi Elias. <BR/><BR/>Firstly, thanks very much for your help. (I was previously anonymous August 7th)<BR/><BR/>I did wonder whether the example would work in RAP 1.1/ Eclipse 3.4. I&#39;d thought about rolling back to earlier versions, so your comments saved me some time.<BR/><BR/>And you&#39;re right again about my config.ini. It was totally wrong. Somewhere along the line I&#39;d missed the need to use the ConfigIniCreator app. It&#39;s no problem now I know about it.<BR/><BR/>I&#39;m still having problems, even though I feel I&#39;m much further forward. Having repaired (hopefully) config.ini, everything looks promising. Jetty appears to have started when I try and load the calculator in the browser, and I get a message:-<BR/><BR/>HTTP Error 500<BR/>An entrypoint named &#39;default&#39; does not exist.<BR/>Request URL = /rap<BR/><BR/><BR/>I&#39;ve found a couple of posts referring to this problem, but so far I haven&#39;t been able to resolve it. When I start the calculator within Eclipse, and do an &#39;ss&#39; at the OSGi prompt in the console, everything looks pretty much the same as the output of an &#39;ss&#39; when I try to start the calculator in an external browser.<BR/><BR/>I checked out the newsgroup post and tried leaving out java.servlett - it didn&#39;t help. I also tried leaving out org.apache.commons.logging, org.eclipse.eqinox.http.jetty &amp; registry &amp; servlett, and org.mortbay.jetty. Still no joy.<BR/><BR/>As you say the tutorial is not accurate for 1.1/3.4, I&#39;m not going to pursue this too enthusiastically for the minute, but I&#39;d like to thank you in advance for the updated version when it happens. I look forward to it.<BR/><BR/>paulmcdeepaulmcdeenoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-37104441336909580132008-08-11T18:08:00.000-07:002008-08-11T18:08:00.000-07:002008-08-11T18:08:00.000-07:00Hi anonymous,first, I'm sorry to say this but the ...Hi anonymous,<BR/><BR/>first, I'm sorry to say this but the tutorial is not accurate anymore for RAP 1.1 / Eclipse 3.4. I'll do an updated version in the next few weeks.<BR/><BR/>Second, from the detailed information you posted I believe that the osgi.bundles property does not include all necessary plugins. You should use the ConfigIniCreator class to create the config.ini file (<A HREF="http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/help/html/advanced/deployment.html" REL="nofollow">more here</A>).<BR/><BR/>You might also experiment with removing some plugins like javax.servlet from your workspace. See <A HREF="http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg02937.html" REL="nofollow">this newsgroup post</A> for details.<BR/><BR/>Kind regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-55090527334695698802008-08-07T09:09:00.000-07:002008-08-07T09:09:00.000-07:002008-08-07T09:09:00.000-07:00Hi, I'm new to RAP and having problems. ...Hi,<BR/> <BR/>I'm new to RAP and having problems. I've been following the screen cast and notes to try deploy the calculator with Jetty. It all seems quite straight forward, but can't get it to work. <BR/><BR/>I've worked through the calculator example many times. When I run "eclipse -console" in the command window the OSGi console starts, but "ss" only shows...<BR/><BR/><BR/><BR/>Framework is launched.<BR/>id State Bundle<BR/>0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900<BR/><BR/><BR/><BR/>For some reason, the the other bundles aren't being discovered.<BR/><BR/><BR/>I thought to try a simpler example using the "Hello World" demo as a project "xxx", but still the same problem. <BR/><BR/>I can install and start the bundles individually from the OSGi command prompt, although I haven't pursued this to the point of getting an example working. <BR/><BR/><BR/><BR/><BR/>The top level structure is...<BR/><BR/>c:\xxx<BR/> configuration<BR/> eclipse.exe<BR/> features<BR/> plugins<BR/><BR/><BR/><BR/><BR/>And the plugins directory contains...<BR/><BR/>com.ibm.icu_3.8.1.v20080530.jar<BR/>javax.servlet_2.4.0.v200806031604.jar<BR/>org.apache.commons.logging_1.0.4.v20080605-1930.jar<BR/>org.eclipse.core.commands_3.4.0.I20080509-2000.jar<BR/>org.eclipse.core.contenttype_3.3.0.v20080604-1400.jar<BR/>org.eclipse.core.databinding_1.1.0.I20080527-2000.jar<BR/>org.eclipse.core.expressions_3.4.0.v20080603-2000.jar<BR/>org.eclipse.core.jobs_3.4.0.v20080512.jar<BR/>org.eclipse.core.runtime_3.4.0.v20080512.jar<BR/>org.eclipse.equinox.app_1.1.0.v20080421-2006.jar<BR/>org.eclipse.equinox.common_3.4.0.v20080421-2006.jar<BR/>org.eclipse.equinox.http.jetty_1.1.0.v20080425.jar<BR/>org.eclipse.equinox.http.registry_1.0.100.v20080427-0830.jar<BR/>org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830.jar<BR/>org.eclipse.equinox.launcher.win32.win32.x86_1.0.100.v20080509-1800 (directory)<BR/>org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar<BR/>org.eclipse.equinox.preferences_3.2.200.v20080421-2006.jar<BR/>org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar<BR/>org.eclipse.osgi.services_3.1.200.v20071203.jar<BR/>org.eclipse.osgi_3.4.0.v20080605-1900.jar<BR/>org.eclipse.rap.jface.databinding_1.1.0.20080613-1055.jar<BR/>org.eclipse.rap.jface_1.1.0.20080613-1055.jar<BR/>org.eclipse.rap.rwt.q07_1.1.0.20080613-1055.jar<BR/>org.eclipse.rap.rwt_1.1.0.20080613-1055.jar<BR/>org.eclipse.rap.ui_1.1.0.20080613-1055.jar<BR/>org.eclipse.update.configurator_3.2.200.v20080417.jar<BR/>org.mortbay.jetty_5.1.14.v200806031611.jar<BR/>xxx_1.0.0.jar<BR/><BR/><BR/><BR/>And config.ini...<BR/><BR/>#bundles to start <BR/><BR/>osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.rap.ui@4:start,org.<BR/><BR/>eclipse.equinox.http.jetty@4:start<BR/><BR/># options for the equinox launcher<BR/># do not run an eclipse application<BR/>eclipse.ignoreApp=true<BR/># don't shutdown osgi after exiting (or not running) the application<BR/>osgi.noShutdown=true<BR/><BR/># incoming port for the server<BR/>org.osgi.service.http.port=7070<BR/><BR/><BR/><BR/>If anyone has any ideas, they'd really be appreciated. Maybe it's something embarrassingly obvious, but I just can't see it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-59110226728575884202008-06-18T11:34:00.000-07:002008-06-18T11:34:00.000-07:002008-06-18T11:34:00.000-07:00Hi Danh,great to hear you were able to get it work...Hi Danh,<BR/><BR/>great to hear you were able to get it working :-).<BR/><BR/>Kind regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-40353143830898904272008-06-18T08:14:00.000-07:002008-06-18T08:14:00.000-07:002008-06-18T08:14:00.000-07:00I gave the last debug info for deploying calc on m...I gave the last debug info for deploying calc on macosx.<BR/><BR/>I've had the http error 404 from jetty in firefox because some bundles were not active at the launch/run time (but if tested within eclipse all bundles are active, and the test was positive).<BR/><BR/>In the terminal, at the osgi console prompt, i typed ss to list all bundles currently used by calc.<BR/>And for every bundle with status "resolved" or "lazy", I activated them by typing:<BR/><BR/>start "bundle id"<BR/><BR/>When I was done, I exited from osgi console and restart calc. Typing again ss in the console, i noticed that this time all bundle were activated. The framework seems to remember the settings.<BR/><BR/>And finally, in firefox, at the url http://localhost:7070/rap, i can see the calc rap application. <BR/><BR/>Thanks again for this great app!<BR/><BR/>DanhAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-9378302660080255722008-06-18T06:35:00.000-07:002008-06-18T06:35:00.000-07:002008-06-18T06:35:00.000-07:00Hiit's me again, I made some changes recommended b...Hi<BR/><BR/>it's me again, I made some changes recommended by the notes in the rap M2 build concerning the createUI method. So in the CalculatorApplication class, I changed the return type to int and added a loop into this entrypoint:<BR/><BR/>public class CalculatorApplication implements IEntryPoint {<BR/><BR/> public int createUI() {<BR/> final Display display = PlatformUI.createDisplay();<BR/><BR/>... <BR/> // my own change<BR/> while( !shell.isDisposed() ) {<BR/> if( !display.readAndDispatch() ) {<BR/> display.sleep();<BR/> }<BR/> }<BR/> return 0;<BR/> }<BR/>}<BR/><BR/>Then i ran again from within eclipse and now it works perfectly.<BR/>No more invalid thread access error.<BR/><BR/>But in the deployed case, i still have http error 404. I checked for dependencies, the calc ones, the jetty ones and the eclipse launcher and update configurator ones. But still no success, the calc.rap.ui bundle is still lazy. Very frustrating...<BR/><BR/>DanhAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-85118218981483842012008-06-18T03:57:00.000-07:002008-06-18T03:57:00.000-07:002008-06-18T03:57:00.000-07:00Hii would like to mention some changein the method...Hi<BR/><BR/>i would like to mention some change<BR/>in the method signature createUI, the return type is an int since the introduction of Display#readAndDispatch() in 1.1M2.<BR/><BR/>Eclipse notifies me an error in the CalculatorApplication class. So I replaced the old return type Display with the constant int PlatformUI.RETURN_OK. But nothing changed when running calc from within eclipse. The Calc composite appears then the error page comes to front (500). The console log always throws invalid thread access in SWT. A bug with the M4 release?<BR/><BR/>DanhAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-34228219936109735352008-06-17T17:24:00.000-07:002008-06-17T17:24:00.000-07:002008-06-17T17:24:00.000-07:00Hi Elias,thanks for your advices.I use the latest ...Hi Elias,<BR/><BR/>thanks for your advices.<BR/><BR/>I use the latest RAP build: rap-sdk-1.1.0-RC4-site-20080613-1119.zip <BR/>i did install it via the update site.<BR/>For info, my Eclipse version Version: 3.3.2<BR/>Build id: M20080221-1800<BR/><BR/>I checked for the build properties, and in the binary build section I ticked some supplementary files with the default files folders selected. Then I exportde novo the deployable features. I run again the rap application but nothing changed in the deployed calc (http error 404). I compared the osgi console log in your video with mine, and i saw that your bundle calc.rap.ui is active but mine is lazy. I do not know it is the case, but maybe there is a relationship. what do you think?<BR/><BR/>I did run the calc within eclipse with no success before. It is frustrating because i did see very quickly in fact the calc composite then it disappears, the error page coming to front in the eclipse browser (http error 500). I am still wondering why i am stuck.<BR/><BR/>DanhAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-4619086770011361892008-06-17T16:13:00.000-07:002008-06-17T16:13:00.000-07:002008-06-17T16:13:00.000-07:00Hi dahn,in general you should get the calc app to ...Hi dahn,<BR/><BR/>in general you should get the calc app to run withing Eclipse before trying deploying it.<BR/><BR/>The Invalid Thread Access exception in the stack trace seems strange. Which version of RAP are you using? I believe I used RAP 1.1 M3.<BR/><BR/>Regarding the no application id error. If that happens in a deployed app it is very likely a problem with the build.properties. Double click build.properties and check that files like plugin.xml, META-INF, icons etc. are checked where it says "Binary build. Select files and folders to include". Otherwise those files do not get copied into the plugin.jar when you export.<BR/><BR/>Kind regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-23352780982395792442008-06-17T16:02:00.000-07:002008-06-17T16:02:00.000-07:002008-06-17T16:02:00.000-07:00Some other feedback,when I ran calc.ui.rap project...Some other feedback,<BR/>when I ran calc.ui.rap project from wihtin Eclipse (I made sure to only select calc.ui.rap bundle in the run dialog).<BR/><BR/>This time i got a HTTP ERROR 500.<BR/><BR/>Here is the log from Eclipse:<BR/><BR/>osgi> 18 juin 2008 00:57:17 org.mortbay.http.HttpServer doStart<BR/>INFO: Version Jetty/5.1.x<BR/>18 juin 2008 00:57:17 org.mortbay.util.Container start<BR/>INFO: Started org.eclipse.equinox.http.jetty.internal.Servlet25Handler@4a2ec6<BR/>18 juin 2008 00:57:17 org.mortbay.util.Container start<BR/>INFO: Started HttpContext[/,/]<BR/>18 juin 2008 00:57:17 org.mortbay.http.SocketListener start<BR/>INFO: Started SocketListener on 0.0.0.0:63549<BR/>18 juin 2008 00:57:17 org.mortbay.util.Container start<BR/>INFO: Started org.mortbay.http.HttpServer@89eb77<BR/>18 juin 2008 00:57:24 org.mortbay.jetty.servlet.ServletHandler handle<BR/>GRAVE: /rap?nocache=1213743444642: <BR/>org.eclipse.swt.SWTException: Invalid thread access<BR/> at org.eclipse.swt.SWT.error(SWT.java:1683)<BR/> at org.eclipse.swt.SWT.error(SWT.java:1603)<BR/> at org.eclipse.swt.SWT.error(SWT.java:1574)<BR/> at org.eclipse.swt.widgets.Widget.error(Widget.java:775)<BR/> at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)<BR/> at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:107)<BR/> at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:49)<BR/> at org.eclipse.rwt.lifecycle.WidgetUtil.find(WidgetUtil.java:198)<BR/> at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readFocusControl(DisplayLCA.java:484)<BR/> at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readData(DisplayLCA.java:255)<BR/> at org.eclipse.rwt.internal.lifecycle.ReadData.execute(ReadData.java:26)<BR/> at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:208)<BR/> at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:115)<BR/> at java.lang.Thread.run(Thread.java:613)<BR/><BR/>I do not know what i am doing wrong. The calc appears very furtively then i got the error page. I am stuck.<BR/><BR/>DanhAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-25157989369200850282008-06-17T15:55:00.000-07:002008-06-17T15:55:00.000-07:002008-06-17T15:55:00.000-07:00Hi, I tried to deploy this rap on macosx (10.4/Mac...Hi, I tried to deploy this rap on macosx (10.4/MacIntel). I strictly followed the same steps described previously, but nothing is displayed: I got a HTTP ERROR 404 at http://127.0.0.1:7070/rap.<BR/><BR/>Here is the log:<BR/><BR/>~/temp/calc.jetty danh$ Eclipse.app/Contents/MacOS/eclipse -console<BR/><BR/>osgi> 18 juin 2008 00:45:25 org.mortbay.http.HttpServer doStart<BR/>INFO: Version Jetty/5.1.x<BR/>18 juin 2008 00:45:25 org.mortbay.util.Container start<BR/>INFO: Started org.eclipse.equinox.http.jetty.internal.Servlet25Handler@8a1c9d<BR/>18 juin 2008 00:45:25 org.mortbay.util.Container start<BR/>INFO: Started HttpContext[/,/]<BR/>18 juin 2008 00:45:25 org.mortbay.http.SocketListener start<BR/>INFO: Started SocketListener on 0.0.0.0:7070<BR/>18 juin 2008 00:45:25 org.mortbay.util.Container start<BR/>INFO: Started org.mortbay.http.HttpServer@870147<BR/><BR/><BR/>osgi> ss<BR/><BR/>Framework is launched.<BR/><BR/>id State Bundle<BR/>0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900<BR/>1 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006<BR/>2 ACTIVE org.eclipse.update.configurator_3.2.101.R33x_v20070810<BR/>3 ACTIVE org.eclipse.rap.ui_1.1.0.20080613-1055<BR/>4 ACTIVE org.eclipse.equinox.http.jetty_1.1.0.v20080425<BR/>5 LAZY calc.ui.rap_1.0.0<BR/>6 LAZY com.ibm.icu_3.8.1.v20080530<BR/>7 RESOLVED javax.servlet_2.4.0.v200806031604<BR/>8 RESOLVED org.apache.commons.logging_1.0.4.v20080605-1930<BR/>9 RESOLVED org.eclipse.core.commands_3.4.0.I20080509-2000<BR/>10 LAZY org.eclipse.core.contenttype_3.3.0.v20080604-1400<BR/>11 LAZY org.eclipse.core.databinding_1.1.0.I20080527-2000<BR/>12 LAZY org.eclipse.core.expressions_3.4.0.v20080603-2000<BR/>13 ACTIVE org.eclipse.core.jobs_3.4.0.v20080512<BR/>14 ACTIVE org.eclipse.core.runtime_3.4.0.v20080512<BR/>15 ACTIVE org.eclipse.equinox.app_1.1.0.v20080421-2006<BR/>18 RESOLVED org.eclipse.equinox.http.registry_1.0.100.v20080427-0830<BR/>19 ACTIVE org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830<BR/>20 RESOLVED org.eclipse.equinox.launcher.carbon.macosx_1.0.3.R33x_v20080118<BR/> Master=21<BR/>21 RESOLVED org.eclipse.equinox.launcher_1.0.1.R33x_v20080118<BR/> Fragments=20<BR/>22 ACTIVE org.eclipse.equinox.preferences_3.2.200.v20080421-2006<BR/>23 ACTIVE org.eclipse.equinox.registry_3.4.0.v20080516-0950<BR/>24 RESOLVED org.eclipse.osgi.services_3.1.200.v20071203<BR/>25 RESOLVED org.eclipse.rap.jface.databinding_1.1.0.20080613-1055<BR/>26 ACTIVE org.eclipse.rap.jface_1.1.0.20080613-1055<BR/>27 RESOLVED org.eclipse.rap.rwt.q07_1.1.0.20080613-1055<BR/> Master=28<BR/>28 RESOLVED org.eclipse.rap.rwt_1.1.0.20080613-1055<BR/> Fragments=27<BR/>29 ACTIVE org.eclipse.rap.ui.workbench_1.1.0.20080613-1055<BR/>32 RESOLVED org.mortbay.jetty_5.1.14.v200806031611<BR/><BR/>I hope this will help to debug my problem. Thanks in advance.<BR/><BR/>DanhAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-72493627926850277342008-06-17T02:55:00.000-07:002008-06-17T02:55:00.000-07:002008-06-17T02:55:00.000-07:00Hi,I encountered a problem I can't solve.I follow ...Hi,<BR/>I encountered a problem I can't solve.<BR/>I follow strictly the instructions but I get allways following message:<BR/><BR/>java.lang.RuntimeException: No application id has been found.<BR/>at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:236)<BR/> at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)<BR/> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)<BR/> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)<BR/> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)<BR/> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)<BR/> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR/> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<BR/> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<BR/> at java.lang.reflect.Method.invoke(Unknown Source)<BR/> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)<BR/> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)<BR/> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-34265544775525391962008-05-23T12:36:00.000-07:002008-05-23T12:36:00.000-07:002008-05-23T12:36:00.000-07:00David,great to hear you were able to deploy on Mac...David,<BR/><BR/>great to hear you were able to deploy on Mac and Linux. Thanks for sharing this information with us.<BR/><BR/>Regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-73174173498963959972008-05-22T18:43:00.000-07:002008-05-22T18:43:00.000-07:002008-05-22T18:43:00.000-07:00I think I figured out how to get my standalone RAP...I think I figured out how to get my standalone RAP application to deploy and run on Linux or Mac. I deployed as described in this most helpful post, but I had to make a separate config folder for when executing from Mac or Linux Shell. Also there is a trick to workaround the dreaded NoClassDefFoundError: org.xml.sax.SAXException.<BR/><BR/> I describe in more detail here<BR/>http://www.eclipse.org/newsportal/article.php?id=3252&group=eclipse.technology.rap#3252David Donohuehttp://www.blogger.com/profile/00556308076450398293noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-5227841549830847802008-05-21T07:05:00.000-07:002008-05-21T07:05:00.000-07:002008-05-21T07:05:00.000-07:00Thanks! How can we launch our deployed RAP applic...Thanks! <BR/>How can we launch our deployed RAP application in Linux or Mac?David Donohuehttp://www.blogger.com/profile/00556308076450398293noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-39853438763800236092008-04-28T23:13:00.000-07:002008-04-28T23:13:00.000-07:002008-04-28T23:13:00.000-07:00Hi yuksel,yes, you're right. RAP does not require ...Hi yuksel,<BR/><BR/>yes, you're right. RAP does not require any platform specific bundles to run. You should be able to deploy it anywhere where you have a Java VM (1.4.x or newer).<BR/><BR/>Regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-29322188746726265912008-04-28T07:51:00.000-07:002008-04-28T07:51:00.000-07:002008-04-28T07:51:00.000-07:00Nice presentation.I have two questions:1) Is it po...Nice presentation.<BR/><BR/>I have two questions:<BR/><BR/>1) Is it possible to deploy a RAP application in a Linux environment?<BR/><BR/>2) An architectural picture of RAP that I saw on RAP wiki gave me the impression that it does not require platform specific pieces to run. Is that correct to assume?Yukselhttp://www.blogger.com/profile/14798198423541474294noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-91874822192331377692008-02-07T10:45:00.000-08:002008-02-07T10:45:00.000-08:002008-02-07T10:45:00.000-08:00Hi Christian,I'm glad this could be solved. Happy ...Hi Christian,<BR/><BR/>I'm glad this could be solved. Happy hacking with RAP.<BR/><BR/>Regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-78726024515245503572008-02-07T01:02:00.000-08:002008-02-07T01:02:00.000-08:002008-02-07T01:02:00.000-08:00Ohhhhhhh myyyyyyyy God...The error was the the typ...Ohhhhhhh myyyyyyyy God...<BR/><BR/>The error was the the typical user error. During my testing and probing, I have created more than one body page, so it all ended up in setting html/page1.html as the body parameter in the branding extension, but selecting html/page2.html in the "Build Configuration" tab of the plugin.<BR/><BR/>Sorry for making that unnecessary noise :-( and shame on me...<BR/><BR/>Greetings,<BR/>Christian<BR/><BR/>P.S. Why is it always, that after asking for help, one finds the solution for oneself.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-37103068876873040142008-02-06T23:38:00.000-08:002008-02-06T23:38:00.000-08:002008-02-06T23:38:00.000-08:00Hi Christian,with the information you provide it i...Hi Christian,<BR/><BR/>with the information you provide it is very hard for me to "guess" what might be going wrong.<BR/><BR/>I guess that it could be a bug or a problem with your configuration. <BR/><BR/>I suggest opening a bug against Technoly/RAP that contains an example that can be used to reproduce this issue. This way I or my colleagues from the RAP team can have a look at it.<BR/><BR/>You can <A HREF="https://bugs.eclipse.org/bugs/" REL="nofollow">open a bug here</A>. Please put me on the CC field.<BR/><BR/>Regards,<BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-8163758037431294412008-02-06T23:24:00.000-08:002008-02-06T23:24:00.000-08:002008-02-06T23:24:00.000-08:00Hello,Thanks for the good work.But I have one prob...Hello,<BR/><BR/>Thanks for the good work.<BR/><BR/>But I have one problem, when setting my own body HTML page in the org.eclipse.rap.ui.branding extension of the application, it works fine, when running the app from within Eclipse, but deploying it (as described in this blog entry) as a "stand-alone" application, it fails.<BR/>The servlet is not found:<BR/>HTTP 404 error, and the bundle is not started. The status stays on "LAZY".<BR/><BR/>Starting the bundle with "start", I get the following exception:<BR/><EM><BR/>osgi> start 8<BR/>org.osgi.framework.BundleException: The activator rap.Activator for bundle RAP is invalid<BR/> at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)<BR/><BR/>...<BR/></EM><BR/>So, what must I do to get this working? Or is it not possible in this kind of deployment?<BR/><BR/>I have not found any solution by my own, so far.<BR/><BR/>ChristianAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6180816727867247030.post-44361905546921601582008-02-03T21:10:00.000-08:002008-02-03T21:10:00.000-08:002008-02-03T21:10:00.000-08:00Hi David,that's a clever trick. Thanks for sharing...Hi David,<BR/><BR/>that's a clever trick. Thanks for sharing it with us!<BR/><BR/>Elias.Elias Volanakishttp://www.blogger.com/profile/05881712904794632968noreply@blogger.com