Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » calc example does not work with RAP from CVS
calc example does not work with RAP from CVS [message #84506] Thu, 24 April 2008 07:42 Go to next message
Eclipse UserFriend
Hi,

The calculator example
( http://rapblog.innoopract.com/2008/03/getting-started-with-c alculator-example.html)

does not work against RAP from CVS. It does work fine against the RAP
1.1M3 target platform. I am on Eclipse 3.3. When I run (Calculator
Example.launch and then http://127.0.0.1:8080/rap?startup=calc), I get
the following error:


WARNING: Error for /rap?startup=calc
java.lang.ExceptionInInitializerError
at
org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
at
org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
at
org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
at
org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
at
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
at org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
at
org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
Caused by: java.lang.RuntimeException: Could not load facade for
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade
at
org.eclipse.rwt.internal.FacadesInitializer.load(FacadesInit ializer.java:26)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade . <clinit>(DisplayLCAFacade.java:29)
... 33 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.rwt.internal.FacadesInitializer.load(FacadesInit ializer.java:22)
... 34 more
Re: calc example does not work with RAP from CVS [message #84517 is a reply to message #84506] Thu, 24 April 2008 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ryan,

between M3 and HEAD we did a split of the RWT layer. This resulted in a
plugin (org.eclipse.rap.rwt) and a fragment (org.eclipse.rap.rwt.q07).
Be sure to add the q07 fragment to your launch configuration when
starting the server.

Greets
Benny

Ryan Donnelly wrote:
> Hi,
>
> The calculator example
> ( http://rapblog.innoopract.com/2008/03/getting-started-with-c alculator-example.html)
>
>
> does not work against RAP from CVS. It does work fine against the RAP
> 1.1M3 target platform. I am on Eclipse 3.3. When I run (Calculator
> Example.launch and then http://127.0.0.1:8080/rap?startup=calc), I get
> the following error:
>
>
> WARNING: Error for /rap?startup=calc
> java.lang.ExceptionInInitializerError
> at
> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
> at
> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:52)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
> at
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
> Caused by: java.lang.RuntimeException: Could not load facade for
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade
> at
> org.eclipse.rwt.internal.FacadesInitializer.load(FacadesInit ializer.java:26)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade . <clinit>(DisplayLCAFacade.java:29)
>
> ... 33 more
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.rwt.internal.FacadesInitializer.load(FacadesInit ializer.java:22)
>
> ... 34 more
Re: calc example does not work with RAP from CVS [message #84527 is a reply to message #84517] Thu, 24 April 2008 08:18 Go to previous message
Eclipse UserFriend
Yes, that fixed it. Thanks a lot.

Benjamin Muskalla wrote:
> Hi Ryan,
>
> between M3 and HEAD we did a split of the RWT layer. This resulted in a
> plugin (org.eclipse.rap.rwt) and a fragment (org.eclipse.rap.rwt.q07).
> Be sure to add the q07 fragment to your launch configuration when
> starting the server.
>
> Greets
> Benny
>
> Ryan Donnelly wrote:
>> Hi,
>>
>> The calculator example
>> ( http://rapblog.innoopract.com/2008/03/getting-started-with-c alculator-example.html)
>>
>>
>> does not work against RAP from CVS. It does work fine against the RAP
>> 1.1M3 target platform. I am on Eclipse 3.3. When I run (Calculator
>> Example.launch and then http://127.0.0.1:8080/rap?startup=calc), I get
>> the following error:
>>
>>
>> WARNING: Error for /rap?startup=calc
>> java.lang.ExceptionInInitializerError
>> at
>> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
>>
>> at
>> org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
>>
>> at
>> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>>
>> at
>> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>>
>> at
>> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
>>
>> at
>> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
>> at
>> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:52)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>>
>> at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>>
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
>> at
>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
>> at
>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>> Caused by: java.lang.RuntimeException: Could not load facade for
>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade
>> at
>> org.eclipse.rwt.internal.FacadesInitializer.load(FacadesInit ializer.java:26)
>>
>> at
>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade . <clinit>(DisplayLCAFacade.java:29)
>>
>> ... 33 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at
>> org.eclipse.rwt.internal.FacadesInitializer.load(FacadesInit ializer.java:22)
>>
>> ... 34 more
Previous Topic:How to record load test for RAP Application using JMeter?
Next Topic:Translation
Goto Forum:
  


Current Time: Sat Aug 30 08:51:13 EDT 2025

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

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

Back to the top