Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » war deployment with products: how to access RAP servlet?
war deployment with products: how to access RAP servlet? [message #551865] Mon, 09 August 2010 20:22 Go to next message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 36
Registered: July 2009
Member
Folks;

followed the guide [1] on how to deploy RAP applications using Eclipse
products, I basically got where I want, got a .war file exported,
deployed, running.... While in there, it seems the framework commands
all are working (context being demo -> /demo/sp_test, ...), whereas
anything else (/demo/rap, /demo/bridge/rap , ...) seems to end up in a
404. So, maybe a stupid question: How to access RAP in this situation?
OSGi console is available, and it seems all the bundles are running yet
I even fail to access the usual stuff provided by the rap.demo
bundle... Any hints / debugging help on that?

TIA and all the best,
Kristian


[1] http://wiki.eclipse.org/RAP/WAR_Deployment_with_products
Re: war deployment with products: how to access RAP servlet? [message #552298 is a reply to message #551865] Wed, 11 August 2010 15:37 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi,

here is a list of some common problems:

http://wiki.eclipse.org/RAP/FAQ#Exported_WAR_file_does_not_w ork

If it still doesn't work, you could post the output "ss" here.

Regards,
Ben

Kristian Rink wrote:
> Folks;
>
> followed the guide [1] on how to deploy RAP applications using Eclipse
> products, I basically got where I want, got a .war file exported,
> deployed, running.... While in there, it seems the framework commands
> all are working (context being demo -> /demo/sp_test, ...), whereas
> anything else (/demo/rap, /demo/bridge/rap , ...) seems to end up in a
> 404. So, maybe a stupid question: How to access RAP in this situation?
> OSGi console is available, and it seems all the bundles are running yet
> I even fail to access the usual stuff provided by the rap.demo
> bundle... Any hints / debugging help on that?
>
> TIA and all the best,
> Kristian
>
>
> [1] http://wiki.eclipse.org/RAP/WAR_Deployment_with_products


--
Benjamin Muskalla | EclipseSource Karlsruhe
Need professional support for RAP and RCP?
Go to: http://eclipsesource.com/support
Twitter : @bmuskalla
Blog : http://eclipsesource.com/blogs/tag/rap/
Re: war deployment with products: how to access RAP servlet? [message #554600 is a reply to message #551865] Mon, 23 August 2010 16:25 Go to previous messageGo to next message
Yannick Saillet is currently offline Yannick SailletFriend
Messages: 24
Registered: July 2009
Junior Member
I have exactly the same problem:
I've created the war using the link provided by the first tester, and tried to deploy and tomcat and WebSphere and in both cases, I can only make access sp_test.
I have tried to reduce the problem by including only org.eclipse.rap.demo and a few dependencies in the war, and I try to access the demo.

Here is my ss output

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.6.0.v20100517
Fragments=61
2 ACTIVE org.eclipse.rap.jface.databinding_1.3.0.20100615-1704
3 ACTIVE org.eclipse.datatools.enablement.postgresql.dbdefinition_1.0 .1.v200906161800
4 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100503
5 ACTIVE org.eclipse.datatools.enablement.ibm.db2.zseries_1.0.2.v2010 05211230
6 ACTIVE org.eclipse.osgi.services_3.2.100.v20100503
7 ACTIVE org.eclipse.datatools.enablement.ibm.db2.luw_1.0.2.v20100521 1230
8 ACTIVE org.eclipse.rap.jface_1.3.0.20100615-1704
9 ACTIVE org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945
10 ACTIVE org.eclipse.core.jobs_3.5.0.v20100515
11 ACTIVE org.eclipse.datatools.connectivity.sqm.core_1.2.0.v201005270 630
12 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100503
13 ACTIVE org.eclipse.equinox.common_3.6.0.v20100503
14 ACTIVE org.eclipse.datatools.enablement.sybase.asa.dbdefinition_1.0 .0.v200906161800
15 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100601-0800
16 ACTIVE org.eclipse.datatools.enablement.ibm.db2.iseries_1.0.2.v2010 05211230
17 ACTIVE org.eclipse.datatools.enablement.ingres.dbdefinition_1.0.0.v 200906161800
18 ACTIVE org.eclipse.core.databinding_1.3.100.I20100601-0800
19 RESOLVED org.eclipse.rap.ui.views_1.3.0.20100615-1704
20 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100601-0800
21 ACTIVE com.ibm.icu_4.2.1.v20100412
22 ACTIVE org.eclipse.datatools.enablement.ibm.informix.dbdefinition_1 .0.4.v201005211230
23 ACTIVE org.eclipse.rap.demo_1.3.0.20100615-1704
24 ACTIVE org.eclipse.datatools.enablement.sap.maxdb.dbdefinition_1.0. 0.v200906161800
25 ACTIVE com.ibm.icu.base_4.2.1.v20100412
26 ACTIVE org.eclipse.datatools.enablement.ibm.db2.iseries.dbdefinitio n_1.0.3.v200906161800
27 ACTIVE org.eclipse.core.expressions_3.4.200.v20100505
28 ACTIVE org.eclipse.core.resources_3.6.0.v20100526-0737
29 ACTIVE org.eclipse.datatools.enablement.ibm.informix_1.0.1.v2010052 11230
30 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100503
31 RESOLVED org.eclipse.rap.ui.workbench_1.3.0.20100615-1704
32 ACTIVE org.eclipse.datatools.enablement.sqlite.dbdefinition_1.0.1.v 201002041100
33 ACTIVE org.eclipse.datatools.connectivity_1.2.0.v201005270426
34 RESOLVED org.eclipse.rap.ui_1.3.0.20100615-1704
35 ACTIVE org.eclipse.help_3.5.0.v20100524
36 ACTIVE org.eclipse.datatools.enablement.msft.sqlserver.dbdefinition _1.0.0.v201004211630
37 ACTIVE org.eclipse.rap.design.example_1.3.0.20100615-1704
38 ACTIVE org.eclipse.rap.rwt_1.3.0.20100615-1704
Fragments=39
39 RESOLVED org.eclipse.rap.rwt.q07_1.3.0.20100615-1704
Master=38
40 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.201008231734
41 ACTIVE org.eclipse.datatools.enablement.ibm.db2.zseries.dbdefinitio n_1.0.4.v201005211230
42 ACTIVE org.eclipse.datatools.enablement.oracle.dbdefinition_1.0.101 .v201004211630
43 ACTIVE org.eclipse.emf.common_2.6.0.v20100614-1136
44 ACTIVE org.eclipse.datatools.enablement.hsqldb.dbdefinition_1.0.0.v 200906161800
45 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100503
46 ACTIVE org.eclipse.datatools.modelbase.dbdefinition_1.0.2.v20100213 0228
47 ACTIVE org.eclipse.equinox.servletbridge_1.2.0.201008231734
48 ACTIVE org.eclipse.emf.ecore_2.6.0.v20100614-1136
49 ACTIVE org.eclipse.datatools.enablement.sybase.ase.dbdefinition_1.0 .0.v200906161800
50 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846
51 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100505-1235
52 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v20100521-1846
53 ACTIVE org.eclipse.datatools.enablement.mysql.dbdefinition_1.0.4.v2 00906161800
54 ACTIVE org.eclipse.core.filesystem_1.3.0.v20100526-0737
55 ACTIVE org.eclipse.core.commands_3.6.0.I20100512-1500
56 ACTIVE org.eclipse.core.runtime_3.6.0.v20100505
57 ACTIVE org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition_1. 0.4.v201005211215
58 ACTIVE org.eclipse.gmf.runtime.notation_1.1.4.v20090304-0314
59 ACTIVE org.eclipse.core.databinding.beans_1.2.100.I20100601-0800
60 ACTIVE org.eclipse.rap.ui.forms_1.3.0.20100615-1704
61 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.2.0
Master=0
62 ACTIVE org.eclipse.equinox.app_1.3.0.v20100512


All dependencies are resolved and org.eclipse.rap.demo is ACTIVE.
I have produced a WAR file demo.war containing WEB-INF and everything underneath, have copied this file in the webapps directory of tomcat and have restarted tomcat, which has unpacked it under webapps/demo.

Now what is the URL to access the demo?
http://localhost:8080/demo/sp_test works
Anything else returns a 404.

Did I miss something in my tomcat configuration? (I'm new to Tomcat, and only installed it, because I didn't get it work on WebSphere as well and all information you find on the net is for Tomcat)

Thanks

Yannick
Re: war deployment with products: how to access RAP servlet? [message #554715 is a reply to message #554600] Tue, 24 August 2010 08:06 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
Messages: 166
Registered: July 2009
Senior Member
Hi Yannik,
did you active the -consolelog? Maybe this will provide a hint to
resolve the error.

BTW: We created a WAR Tooling called WAR products. You can test it
following the steps described here:
http://eclipsesource.com/blogs/2010/08/17/equinoxrap-war-dep loyment-an-end-to-the-pain/

Regards

Holger



On 2010-08-23 18:26:00 +0200, Yannick Saillet <ysaillet@de.ibm.com> said:

> I have exactly the same problem:
> I've created the war using the link provided by the first tester, and
> tried to deploy and tomcat and WebSphere and in both cases, I can only
> make access sp_test.
> I have tried to reduce the problem by including only
> org.eclipse.rap.demo and a few dependencies in the war, and I try to
> access the demo.
> Here is my ss output
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.6.0.v20100517
> Fragments=61
> 2 ACTIVE org.eclipse.rap.jface.databinding_1.3.0.20100615-1704
> 3 ACTIVE
> org.eclipse.datatools.enablement.postgresql.dbdefinition_1.0
> .1.v200906161800
> 4 ACTIVE org.eclipse.equinox.preferences_3.3.0.v20100503
> 5 ACTIVE
> org.eclipse.datatools.enablement.ibm.db2.zseries_1.0.2.v2010 05211230
> 6 ACTIVE org.eclipse.osgi.services_3.2.100.v20100503
> 7 ACTIVE
> org.eclipse.datatools.enablement.ibm.db2.luw_1.0.2.v20100521 1230
> 8 ACTIVE org.eclipse.rap.jface_1.3.0.20100615-1704
> 9 ACTIVE org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945
> 10 ACTIVE org.eclipse.core.jobs_3.5.0.v20100515
> 11 ACTIVE
> org.eclipse.datatools.connectivity.sqm.core_1.2.0.v201005270 630
> 12 ACTIVE org.eclipse.equinox.http.registry_1.1.0.v20100503
> 13 ACTIVE org.eclipse.equinox.common_3.6.0.v20100503
> 14 ACTIVE
> org.eclipse.datatools.enablement.sybase.asa.dbdefinition_1.0
> .0.v200906161800
> 15 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20100601-0800
> 16 ACTIVE
> org.eclipse.datatools.enablement.ibm.db2.iseries_1.0.2.v2010 05211230
> 17 ACTIVE
> org.eclipse.datatools.enablement.ingres.dbdefinition_1.0.0.v
> 200906161800
> 18 ACTIVE org.eclipse.core.databinding_1.3.100.I20100601-0800
> 19 RESOLVED org.eclipse.rap.ui.views_1.3.0.20100615-1704
> 20 ACTIVE org.eclipse.core.databinding.observable_1.3.0.I20100601-0800
> 21 ACTIVE com.ibm.icu_4.2.1.v20100412
> 22 ACTIVE
> org.eclipse.datatools.enablement.ibm.informix.dbdefinition_1
> .0.4.v201005211230
> 23 ACTIVE org.eclipse.rap.demo_1.3.0.20100615-1704
> 24 ACTIVE
> org.eclipse.datatools.enablement.sap.maxdb.dbdefinition_1.0.
> 0.v200906161800
> 25 ACTIVE com.ibm.icu.base_4.2.1.v20100412
> 26 ACTIVE
> org.eclipse.datatools.enablement.ibm.db2.iseries.dbdefinitio
> n_1.0.3.v200906161800
> 27 ACTIVE org.eclipse.core.expressions_3.4.200.v20100505
> 28 ACTIVE org.eclipse.core.resources_3.6.0.v20100526-0737
> 29 ACTIVE
> org.eclipse.datatools.enablement.ibm.informix_1.0.1.v2010052 11230
> 30 ACTIVE org.eclipse.equinox.registry_3.5.0.v20100503
> 31 RESOLVED org.eclipse.rap.ui.workbench_1.3.0.20100615-1704
> 32 ACTIVE
> org.eclipse.datatools.enablement.sqlite.dbdefinition_1.0.1.v
> 201002041100
> 33 ACTIVE org.eclipse.datatools.connectivity_1.2.0.v201005270426
> 34 RESOLVED org.eclipse.rap.ui_1.3.0.20100615-1704
> 35 ACTIVE org.eclipse.help_3.5.0.v20100524
> 36 ACTIVE
> org.eclipse.datatools.enablement.msft.sqlserver.dbdefinition
> _1.0.0.v201004211630
> 37 ACTIVE org.eclipse.rap.design.example_1.3.0.20100615-1704
> 38 ACTIVE org.eclipse.rap.rwt_1.3.0.20100615-1704
> Fragments=39
> 39 RESOLVED org.eclipse.rap.rwt.q07_1.3.0.20100615-1704
> Master=38
> 40 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.201008231734
> 41 ACTIVE
> org.eclipse.datatools.enablement.ibm.db2.zseries.dbdefinitio
> n_1.0.4.v201005211230
> 42 ACTIVE
> org.eclipse.datatools.enablement.oracle.dbdefinition_1.0.101
> .v201004211630
> 43 ACTIVE org.eclipse.emf.common_2.6.0.v20100614-1136
> 44 ACTIVE
> org.eclipse.datatools.enablement.hsqldb.dbdefinition_1.0.0.v
> 200906161800
> 45 ACTIVE org.eclipse.equinox.http.servlet_1.1.0.v20100503
> 46 ACTIVE
> org.eclipse.datatools.modelbase.dbdefinition_1.0.2.v20100213 0228
> 47 ACTIVE org.eclipse.equinox.servletbridge_1.2.0.201008231734
> 48 ACTIVE org.eclipse.emf.ecore_2.6.0.v20100614-1136
> 49 ACTIVE
> org.eclipse.datatools.enablement.sybase.ase.dbdefinition_1.0
> .0.v200906161800
> 50 ACTIVE org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846
> 51 ACTIVE org.eclipse.core.contenttype_3.4.100.v20100505-1235
> 52 ACTIVE org.eclipse.emf.ecore.change_2.5.0.v20100521-1846
> 53 ACTIVE
> org.eclipse.datatools.enablement.mysql.dbdefinition_1.0.4.v2 00906161800
> 54 ACTIVE org.eclipse.core.filesystem_1.3.0.v20100526-0737
> 55 ACTIVE org.eclipse.core.commands_3.6.0.I20100512-1500
> 56 ACTIVE org.eclipse.core.runtime_3.6.0.v20100505
> 57 ACTIVE
> org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition_1.
> 0.4.v201005211215
> 58 ACTIVE org.eclipse.gmf.runtime.notation_1.1.4.v20090304-0314
> 59 ACTIVE org.eclipse.core.databinding.beans_1.2.100.I20100601-0800
> 60 ACTIVE org.eclipse.rap.ui.forms_1.3.0.20100615-1704
> 61 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.2.0
> Master=0
> 62 ACTIVE org.eclipse.equinox.app_1.3.0.v20100512
>
>
> All dependencies are resolved and org.eclipse.rap.demo is ACTIVE.
> I have produced a WAR file demo.war containing WEB-INF and everything
> underneath, have copied this file in the webapps directory of tomcat
> and have restarted tomcat, which has unpacked it under webapps/demo.
>
> Now what is the URL to access the demo?
> http://localhost:8080/demo/sp_test works
> Anything else returns a 404.
> Did I miss something in my tomcat configuration? (I'm new to Tomcat,
> and only installed it, because I didn't get it work on WebSphere as
> well and all information you find on the net is for Tomcat)
>
> Thanks
>
> Yannick


--
--
Holger Staudacher | EclipseSource Karlsruhe

Need professional support for RAP and RCP?
Go to: http://eclipsesource.com/support
Twitter : @hstaudacher
Blog : http://eclipsesource.com/blogs/tag/rap/
Re: war deployment with products: how to access RAP servlet? [message #555129 is a reply to message #551865] Wed, 25 August 2010 14:21 Go to previous message
Yannick Saillet is currently offline Yannick SailletFriend
Messages: 24
Registered: July 2009
Junior Member
Ok, I finally got it work.
The problem was that my plugin used in the branding extension point a ThemeId which was not found. (It was a copy from the RAP sample projects, and the plugin providing this Theme was not included in my feature).
I have removed the ThemeId from the plugin.xml, and now it works.

Thanks

Yannick
Previous Topic:WAR Deployment problem
Next Topic:Eclipse will not start
Goto Forum:
  


Current Time: Sat Feb 24 06:29:10 GMT 2024

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

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

Back to the top