Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Running an application using workspace RWT plugins
Running an application using workspace RWT plugins [message #117976] Fri, 09 January 2009 15:21 Go to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hello,

I was wondering if anyone could tell me if/how it is possible to run a RAP
application in eclipse using the RAP plugins checked out from CVS head
into your workspace. I have it working using all of the plugins except
rwt and the q07 fragment. I want my run target to use all of the RAP
plugins that I have in the workspace. But right now the only way I can do
that is to export the rwt and fragment to my target platform and rebuild.

When I run with all the workspace RAP plugins included in my run target, I
get this error:

javax.servlet.ServletException: Failed to load Browser Survey HTML Page
(Reason: Failed to load Browser Survey HTML Page. Resource
org/eclipse/rwt/internal/service/rwt-index.html could not be found.)
at
org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:56)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:46 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:34)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
at
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
at org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
at
org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
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)


Any thoughts?

Thanks.
Re: Running an application using workspace RWT plugins [message #117989 is a reply to message #117976] Fri, 09 January 2009 15:35 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2396
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Austin,

check your application run configuration. In Bundles tab select the
following plugins from the workspace:
org.eclipse.rap.jface
org.eclipse.rap.jface.databinding
org.eclipse.rap.rwt
org.eclipse.rap.rwt.q07
org.eclipse.rap.ui
org.eclipse.rap.ui.workbench
org.eclipse.rap.ui.views
org.eclipse.rap.ui.forms
and deselect them from the target platform. Validate bundles to makes
sure that all needed bundles are selected.

Best,
Ivan

Austin Riddle wrote:
> Hello,
>
> I was wondering if anyone could tell me if/how it is possible to run a
> RAP application in eclipse using the RAP plugins checked out from CVS
> head into your workspace. I have it working using all of the plugins
> except rwt and the q07 fragment. I want my run target to use all of
> the RAP plugins that I have in the workspace. But right now the only
> way I can do that is to export the rwt and fragment to my target
> platform and rebuild.
> When I run with all the workspace RAP plugins included in my run
> target, I get this error:
>
> javax.servlet.ServletException: Failed to load Browser Survey HTML
> Page (Reason: Failed to load Browser Survey HTML Page. Resource
> org/eclipse/rwt/internal/service/rwt-index.html could not be found.)
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:56)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:46 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:34)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
> at
> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>
> 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)
>
>
> Any thoughts?
>
> Thanks.
>
Re: Running an application using workspace RWT plugins [message #118060 is a reply to message #117989] Fri, 09 January 2009 19:45 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Thanks for your response.

The exception that I posted previously is what I receive when my
application configuration is set as you suggested. Sorry about a mixup of
terms. When I said run target, I meant application configuration.

Any other suggestions?
Re: Running an application using workspace RWT plugins [message #118073 is a reply to message #118060] Fri, 09 January 2009 20:13 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2396
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Austin,

can you provide a list of all selected bundles (both workspace and
target platform) from your application run configuration?

Best,
Ivan

Austin Riddle wrote:
> Thanks for your response.
>
> The exception that I posted previously is what I receive when my
> application configuration is set as you suggested. Sorry about a
> mixup of terms. When I said run target, I meant application
> configuration.
>
> Any other suggestions?
>
Re: Running an application using workspace RWT plugins [message #118083 is a reply to message #118073] Fri, 09 January 2009 20:21 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Target_bundles:

org.eclipse.core.contenttype@default:default,
org.eclipse.equinox.http.jetty@default:default,
org.eclipse.rap.demo.databinding@default:default,
org.eclipse.equinox.http.servlet@default:default,
org.eclipse.equinox.common@default:default,
org.eclipse.equinox.app@default:default,
org.eclipse.equinox.preferences@default:default,
org.eclipse.core.jobs@default:default,
org.eclipse.core.databinding.beans@default:default,
org.eclipse.core.databinding@default:default,
org.eclipse.equinox.http.registry@default:default,
org.eclipse.equinox.registry@default:default,
com.ibm.icu@default:default,
org.eclipse.rap.source@default:default,
org.eclipse.core.commands@default:default,
org.eclipse.osgi.services@default:default,
org.apache.commons.logging@default:default,
javax.servlet@default:default,
org.mortbay.jetty@default:default,
org.eclipse.osgi@default:default,
org.eclipse.core.runtime@default:default,
org.eclipse.core.expressions@default:default

Workspace_bundles:

Bug_Demo@default:default,
org.eclipse.rap.rwt@default:default,
org.eclipse.rap.jface.databinding@default:default,
org.eclipse.rap.jface@default:default,
org.eclipse.rap.ui.views@default:default,
org.eclipse.rap.rwt.q07@default:false,
org.eclipse.rap.ui@default:default,
org.eclipse.rap.ui.forms@default:default,
org.eclipse.rap.ui.workbench@default:default
Re: Running an application using workspace RWT plugins [message #118094 is a reply to message #118083] Fri, 09 January 2009 20:41 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2396
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
There are 2 bundles that you don't need in target section:
org.eclipse.rap.demo.databinding@default:default,
org.eclipse.rap.source@default:default,

If you get an error message again after deselecting them, please type
the command "ss" in the osgi console and post the result here.

Best,
Ivan

Austin Riddle wrote:
> Target_bundles:
>
> org.eclipse.core.contenttype@default:default,
> org.eclipse.equinox.http.jetty@default:default,
> org.eclipse.rap.demo.databinding@default:default,
> org.eclipse.equinox.http.servlet@default:default,
> org.eclipse.equinox.common@default:default,
> org.eclipse.equinox.app@default:default,
> org.eclipse.equinox.preferences@default:default,
> org.eclipse.core.jobs@default:default,
> org.eclipse.core.databinding.beans@default:default,
> org.eclipse.core.databinding@default:default,
> org.eclipse.equinox.http.registry@default:default,
> org.eclipse.equinox.registry@default:default,
> com.ibm.icu@default:default,
> org.eclipse.rap.source@default:default,
> org.eclipse.core.commands@default:default,
> org.eclipse.osgi.services@default:default,
> org.apache.commons.logging@default:default,
> javax.servlet@default:default,
> org.mortbay.jetty@default:default,
> org.eclipse.osgi@default:default,
> org.eclipse.core.runtime@default:default,
> org.eclipse.core.expressions@default:default
>
> Workspace_bundles:
>
> Bug_Demo@default:default,
> org.eclipse.rap.rwt@default:default,
> org.eclipse.rap.jface.databinding@default:default,
> org.eclipse.rap.jface@default:default,
> org.eclipse.rap.ui.views@default:default,
> org.eclipse.rap.rwt.q07@default:false,
> org.eclipse.rap.ui@default:default,
> org.eclipse.rap.ui.forms@default:default,
> org.eclipse.rap.ui.workbench@default:default
>
Re: Running an application using workspace RWT plugins [message #118105 is a reply to message #118094] Fri, 09 January 2009 20:46 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20080916-2300
1 ACTIVE org.eclipse.equinox.app_1.2.0.v20080901
2 ACTIVE com.ibm.icu_3.8.1.v20080530
3 ACTIVE org.eclipse.equinox.http.jetty_1.1.0.v20080425
4 ACTIVE org.mortbay.jetty_5.1.14.v200806031611
6 ACTIVE org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
7 ACTIVE org.eclipse.core.commands_3.4.0.I20080509-2000
8 ACTIVE javax.servlet_2.4.0.v200806031604
9 ACTIVE org.eclipse.core.databinding_1.2.0.I20080917-1800
12 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203
13 ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930
15 ACTIVE org.eclipse.core.jobs_3.4.100.v20080825
16 ACTIVE org.eclipse.core.databinding.beans_1.2.0.I20080915-1800
18 ACTIVE org.eclipse.core.contenttype_3.3.0.v20080604-1400
19 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006
20 ACTIVE Bug_Demo_1.0.0
23 ACTIVE org.eclipse.core.expressions_3.4.100.v20080915-0800
24 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20080722-0430
27 ACTIVE org.eclipse.core.runtime_3.4.100.v20080714
28 ACTIVE org.eclipse.equinox.registry_3.4.100.v20080722-0430
29 ACTIVE org.eclipse.equinox.http.registry_1.0.100.v20080427-0830
32 ACTIVE org.eclipse.rap.jface_1.2.0.qualifier
34 ACTIVE org.eclipse.rap.ui.views_1.2.0.qualifier
35 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.qualifier
36 ACTIVE org.eclipse.rap.ui_1.2.0.qualifier
38 ACTIVE org.eclipse.rap.ui.forms_1.2.0.qualifier
39 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.qualifier
42 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.qualifier
Master=43
43 ACTIVE org.eclipse.rap.rwt_1.2.0.qualifier
Fragments=42
Re: Running an application using workspace RWT plugins [message #118115 is a reply to message #118105] Fri, 09 January 2009 21:03 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2396
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Everything looks good. Currently I have no other ideas.

Austin Riddle wrote:
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.5.0.v20080916-2300
> 1 ACTIVE org.eclipse.equinox.app_1.2.0.v20080901
> 2 ACTIVE com.ibm.icu_3.8.1.v20080530
> 3 ACTIVE org.eclipse.equinox.http.jetty_1.1.0.v20080425
> 4 ACTIVE org.mortbay.jetty_5.1.14.v200806031611
> 6 ACTIVE org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
> 7 ACTIVE org.eclipse.core.commands_3.4.0.I20080509-2000
> 8 ACTIVE javax.servlet_2.4.0.v200806031604
> 9 ACTIVE org.eclipse.core.databinding_1.2.0.I20080917-1800
> 12 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203
> 13 ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930
> 15 ACTIVE org.eclipse.core.jobs_3.4.100.v20080825
> 16 ACTIVE org.eclipse.core.databinding.beans_1.2.0.I20080915-1800
> 18 ACTIVE org.eclipse.core.contenttype_3.3.0.v20080604-1400
> 19 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006
> 20 ACTIVE Bug_Demo_1.0.0
> 23 ACTIVE org.eclipse.core.expressions_3.4.100.v20080915-0800
> 24 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20080722-0430
> 27 ACTIVE org.eclipse.core.runtime_3.4.100.v20080714
> 28 ACTIVE org.eclipse.equinox.registry_3.4.100.v20080722-0430
> 29 ACTIVE
> org.eclipse.equinox.http.registry_1.0.100.v20080427-0830
> 32 ACTIVE org.eclipse.rap.jface_1.2.0.qualifier
> 34 ACTIVE org.eclipse.rap.ui.views_1.2.0.qualifier
> 35 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.qualifier
> 36 ACTIVE org.eclipse.rap.ui_1.2.0.qualifier
> 38 ACTIVE org.eclipse.rap.ui.forms_1.2.0.qualifier
> 39 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.qualifier
> 42 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.qualifier
> Master=43
> 43 ACTIVE org.eclipse.rap.rwt_1.2.0.qualifier
> Fragments=42
>
Re: Running an application using workspace RWT plugins [message #118125 is a reply to message #118105] Fri, 09 January 2009 21:03 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Some additional information is that myself and my team members have tried
this on multiple machines running Ganymede 3.4 and the same target
platform, different workspaces, and multiple distinct application plugins.
The Bug_Demo plugin is just the project I use for posting to the RAP bugs
list ;-). We really like to keep up with CVS Head and running with the
RAP code in the workspace is very important to us. Thanks for your help.
Re: Running an application using workspace RWT plugins [message #118136 is a reply to message #118125] Fri, 09 January 2009 21:17 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2396
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
One more think come in my mind - do you use a team project set [1] for
plugins checkout? Make sure that you get the plugins from
"cvsroot/rt/org.eclipse.rap" and not from the old location
"cvsroot/technology/org.eclipse.rap".

[1] http://www.eclipse.org/rap/resources/rap.psf

Best,
Ivan

Austin Riddle wrote:
> Some additional information is that myself and my team members have
> tried this on multiple machines running Ganymede 3.4 and the same
> target platform, different workspaces, and multiple distinct
> application plugins. The Bug_Demo plugin is just the project I use for
> posting to the RAP bugs list ;-). We really like to keep up with CVS
> Head and running with the RAP code in the workspace is very important
> to us. Thanks for your help.
>
Re: Running an application using workspace RWT plugins [message #118145 is a reply to message #118136] Fri, 09 January 2009 23:00 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Thanks for all of the help Ivan.

I figured out that there was a problem with the pde building my rap
plugins because the bin directory did not include any of the html files
from the src directory. It did have some other files (.xml and
properties) but not the .html files. After some digging it turns out that
some people with the WTP plugins installed have been having problems
exporting their plugins that have resources that use the web editors. I
am not sure what is wrong exactly, but am continuing to investigate. A
team member successfully is running with the RAP plugins in the workspace
using 3.4.1 without the WTP or Java EE plugins which many of my teammates
have.

Thanks.
Re: Running an application using workspace RWT plugins [message #118421 is a reply to message #118145] Tue, 13 January 2009 17:48 Go to previous message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
After some digging I have found the solution.

Please see:
http://dev.eclipse.org/newslists/news.eclipse.platform/msg74 524.html

Apparently a NAUGHTY plugin put '*.html' in my list of filtered resources
under Preferences->Java->Compiler->Building->Output Folder->Filtered
Resources

I am not sure which plugin it was, but for anyone who comes to the same
problem I have, look there first.

Thanks for the help Ivan.
Previous Topic:insight required on changing values in TableViewer with asyncExec
Next Topic:Invalid thread acces after workbench.close();
Goto Forum:
  


Current Time: Tue Jan 31 19:14:51 GMT 2023

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

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

Back to the top