Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » rap war not runs on Tiny Java Web Server .
rap war not runs on Tiny Java Web Server . [message #658517] Tue, 08 March 2011 19:45 Go to next message
Heiko  is currently offline Heiko Friend
Messages: 7
Registered: March 2011
Junior Member
Hi,
Im new an rap technology. In the last days I build my first demo and a war-file like Holger described in this video: http://vimeo.com/13931789.
I used eclipse Indigo M5.
After that I played my demo on tomcat - all things are fine.
But our target platform is an embedded system and we like to use Tiny Java Web Server .
So I tried that - but it did not works:

I got:
404 ProxyServlet: /test2/rap


In the log file of the server I only found this:
..
[Tue Mar 08 19:29:05 CET 2011] Deploying test2
..
[Tue Mar 08 19:29:09 CET 2011] Servlet overriden by rogatkin.web.WebAppServlet@1552b76, for path:/test2
..
/127.0.0.1:7070 - - [08/Mrz/2011:20:37:18 +0100] "GET /test2/rap HTTP/1.1" 404 302 - -
..


In the OSGI Console I see:

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.7.0.v20110124-0830
                    Fragments=21
1       ACTIVE      com.ibm.icu.base_4.2.1.v20100412
2       ACTIVE      de.dresearch.test.config_app_1.0.0.201103070902
                    Fragments=3
3       RESOLVED    de.dresearch.test.config_app.rap_1.0.0.201103070902
                    Master=2
4       ACTIVE      org.eclipse.core.commands_3.6.0.I20110111-0800
5       ACTIVE      org.eclipse.core.contenttype_3.4.100.v20101203-1034
6       ACTIVE      org.eclipse.core.databinding_1.4.0.I20110111-0800
7       ACTIVE      org.eclipse.core.databinding.beans_1.2.100.I20100824-0800
8       ACTIVE      org.eclipse.core.databinding.observable_1.3.0.I20100824-0800
9       ACTIVE      org.eclipse.core.databinding.property_1.3.0.I20110111-0800
10      ACTIVE      org.eclipse.core.expressions_3.4.200.v20100505
11      ACTIVE      org.eclipse.core.jobs_3.5.100.v20101008
12      ACTIVE      org.eclipse.core.runtime_3.7.0.v20110110
13      ACTIVE      org.eclipse.equinox.app_1.3.100.v20110110
14      ACTIVE      org.eclipse.equinox.common_3.6.0.v20110110
15      ACTIVE      org.eclipse.equinox.http.registry_1.1.100.v20101101
16      ACTIVE      org.eclipse.equinox.http.servlet_1.1.100.v20101204
17      ACTIVE      org.eclipse.equinox.http.servletbridge_1.0.200.v20100503
18      ACTIVE      org.eclipse.equinox.preferences_3.4.0.v20110124-0830
19      ACTIVE      org.eclipse.equinox.registry_3.5.100.v20101101
20      ACTIVE      org.eclipse.equinox.servletbridge_1.2.0.v20100503
21      RESOLVED    org.eclipse.equinox.servletbridge.extensionbundle_1.2.0.v20100503
                    Master=0
22      ACTIVE      org.eclipse.help_3.5.0.v20100524
23      ACTIVE      org.eclipse.jdt.junit.runtime_3.4.300.v20101206-1800
24      ACTIVE      org.eclipse.osgi.services_3.3.0.v20110110
25      ACTIVE      org.eclipse.rap.jface_1.4.0.20110201-1534
26      ACTIVE      org.eclipse.rap.jface.databinding_1.4.0.20110201-1534
27      ACTIVE      org.eclipse.rap.junit_1.4.0.20110201-1534
28      ACTIVE      org.eclipse.rap.junit.runtime_1.4.0.20110201-1534
29      ACTIVE      org.eclipse.rap.rwt_1.4.0.20110201-1534
                    Fragments=30
30      RESOLVED    org.eclipse.rap.rwt.q07_1.4.0.20110201-1534
                    Master=29
31      ACTIVE      org.eclipse.rap.rwt.theme.classic_1.4.0.20110201-1534
32      ACTIVE      org.eclipse.rap.ui_1.4.0.20110201-1534
33      ACTIVE      org.eclipse.rap.ui.cheatsheets_1.4.0.20110201-1534
34      ACTIVE      org.eclipse.rap.ui.forms_1.4.0.20110201-1534
35      ACTIVE      org.eclipse.rap.ui.views_1.4.0.20110201-1534
36      ACTIVE      org.eclipse.rap.ui.workbench_1.4.0.20110201-1534
37      ACTIVE      org.junit_3.8.2.v3_8_2_v20100427-110


I dont know what I have to looking for to come on.
Do anyone have got an idea?

best from Berlin Heiko
Re: rap war not runs on Tiny Java Web Server . [message #658611 is a reply to message #658517] Wed, 09 March 2011 09:11 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
Messages: 166
Registered: July 2009
Senior Member
Hi Heiko,
great to hear that the WAR Products works. So, I took a look at your
console output and everything looks fine. With this information I can't
identify the problem. Two points are of interest to me:

1) [Tue Mar 08 19:29:09 CET 2011] Servlet overriden by
rogatkin.web.WebAppServlet@1552b76, for path:/test2
This makes me thinking. I don't know the tjws, is this normal?

2) The output of the osgi console command "services" would be
interesting to see if all services are there.

Regards Holger


On 2011-03-08 20:45:46 +0100, Heiko <heiko@kendziorra-berlin.de> said:

> Hi,
> Im new an rap technology. In the last days I build my first demo and a
> war-file like Holger described in this video: http://vimeo.com/13931789
> I used eclipse Indigo M5.
> After that I played my demo on tomcat - all things are fine.
> But our target platform is an embedded system and we like to use
> http://tjws.sourceforge.net
> So I tried that - but it did not works:
>
> I got: 404 ProxyServlet: /test2/rap
>
> In the log file of the server I only found this:
> .
> [Tue Mar 08 19:29:05 CET 2011] Deploying test2
> .
> [Tue Mar 08 19:29:09 CET 2011] Servlet overriden by
> rogatkin.web.WebAppServlet@1552b76, for path:/test2
> .
> /127.0.0.1:7070 - - [08/Mrz/2011:20:37:18 +0100] "GET /test2/rap
> HTTP/1.1" 404 302 - -
> .
>
>
> In the OSGI Console I see:
>
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.7.0.v20110124-0830
> Fragments=21
> 1 ACTIVE com.ibm.icu.base_4.2.1.v20100412
> 2 ACTIVE de.dresearch.test.config_app_1.0.0.201103070902
> Fragments=3
> 3 RESOLVED de.dresearch.test.config_app.rap_1.0.0.201103070902
> Master=2
> 4 ACTIVE org.eclipse.core.commands_3.6.0.I20110111-0800
> 5 ACTIVE org.eclipse.core.contenttype_3.4.100.v20101203-1034
> 6 ACTIVE org.eclipse.core.databinding_1.4.0.I20110111-0800
> 7 ACTIVE org.eclipse.core.databinding.beans_1.2.100.I20100824-0800
> 8 ACTIVE
> org.eclipse.core.databinding.observable_1.3.0.I20100824-0800
> 9 ACTIVE org.eclipse.core.databinding.property_1.3.0.I20110111-0800
> 10 ACTIVE org.eclipse.core.expressions_3.4.200.v20100505
> 11 ACTIVE org.eclipse.core.jobs_3.5.100.v20101008
> 12 ACTIVE org.eclipse.core.runtime_3.7.0.v20110110
> 13 ACTIVE org.eclipse.equinox.app_1.3.100.v20110110
> 14 ACTIVE org.eclipse.equinox.common_3.6.0.v20110110
> 15 ACTIVE org.eclipse.equinox.http.registry_1.1.100.v20101101
> 16 ACTIVE org.eclipse.equinox.http.servlet_1.1.100.v20101204
> 17 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.v20100503
> 18 ACTIVE org.eclipse.equinox.preferences_3.4.0.v20110124-0830
> 19 ACTIVE org.eclipse.equinox.registry_3.5.100.v20101101
> 20 ACTIVE org.eclipse.equinox.servletbridge_1.2.0.v20100503
> 21 RESOLVED
> org.eclipse.equinox.servletbridge.extensionbundle_1.2.0.v201 00503
> Master=0
> 22 ACTIVE org.eclipse.help_3.5.0.v20100524
> 23 ACTIVE org.eclipse.jdt.junit.runtime_3.4.300.v20101206-1800
> 24 ACTIVE org.eclipse.osgi.services_3.3.0.v20110110
> 25 ACTIVE org.eclipse.rap.jface_1.4.0.20110201-1534
> 26 ACTIVE org.eclipse.rap.jface.databinding_1.4.0.20110201-1534
> 27 ACTIVE org.eclipse.rap.junit_1.4.0.20110201-1534
> 28 ACTIVE org.eclipse.rap.junit.runtime_1.4.0.20110201-1534
> 29 ACTIVE org.eclipse.rap.rwt_1.4.0.20110201-1534
> Fragments=30
> 30 RESOLVED org.eclipse.rap.rwt.q07_1.4.0.20110201-1534
> Master=29
> 31 ACTIVE org.eclipse.rap.rwt.theme.classic_1.4.0.20110201-1534
> 32 ACTIVE org.eclipse.rap.ui_1.4.0.20110201-1534
> 33 ACTIVE org.eclipse.rap.ui.cheatsheets_1.4.0.20110201-1534
> 34 ACTIVE org.eclipse.rap.ui.forms_1.4.0.20110201-1534
> 35 ACTIVE org.eclipse.rap.ui.views_1.4.0.20110201-1534
> 36 ACTIVE org.eclipse.rap.ui.workbench_1.4.0.20110201-1534
> 37 ACTIVE org.junit_3.8.2.v3_8_2_v20100427-110
>
> I dont know what I have to looking for to come on. Do anyone have got an idea?
>
> best from Berlin Heiko


--
--
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: rap war not runs on Tiny Java Web Server . [message #658699 is a reply to message #658517] Wed, 09 March 2011 14:07 Go to previous messageGo to next message
Heiko  is currently offline Heiko Friend
Messages: 7
Registered: March 2011
Junior Member
The line "Servlet overriden by rogatkin.web.WebAppServlet" makes me thoughtful too, but I find it at all webapplications.

But I found starting problems at some other war-files too. But it not to easy to found the reason, because there are no logs.
I'm not sure, if the org.eclipse.equinox.servletbridge.BridgeServlet is called or not.

Holger ask for services out put. Here it is:

osgi> services
{org.eclipse.osgi.framework.console.CommandProvider}={service.ranking=2147483647, service.id=1}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.osgi.service.packageadmin.PackageAdmin}={service.ranking=2147483647, service.pid=0.org.eclipse.osgi.framework.internal.core.PackageAdminImpl, service.vendo
r=Eclipse.org - Equinox, service.id=2}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
    org.eclipse.core.runtime_3.7.0.v20110110 [12]
    org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
    org.eclipse.core.jobs_3.5.100.v20101008 [11]
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
    org.eclipse.equinox.registry_3.5.100.v20101101 [19]
    org.eclipse.equinox.http.registry_1.1.100.v20101101 [15]
{org.osgi.service.permissionadmin.PermissionAdmin, org.osgi.service.condpermadmin.ConditionalPermissionAdmin}={service.ranking=2147483647, service.pid=0.org.ecl
ipse.osgi.internal.permadmin.SecurityAdmin, service.vendor=Eclipse.org - Equinox, service.id=3}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.osgi.service.startlevel.StartLevel}={service.ranking=2147483647, service.pid=0.org.eclipse.osgi.framework.internal.core.StartLevelManager, service.vendor=E
clipse.org - Equinox, service.id=4}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.service.debug.DebugOptions}={service.ranking=2147483647, service.pid=0.org.eclipse.osgi.framework.debug.FrameworkDebugOptions, service.vendor=
Eclipse.org - Equinox, service.id=5}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
    org.eclipse.core.runtime_3.7.0.v20110110 [12]
    org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
    org.eclipse.core.jobs_3.5.100.v20101008 [11]
    org.eclipse.equinox.registry_3.5.100.v20101101 [19]
    org.eclipse.core.contenttype_3.4.100.v20101203-1034 [5]
    org.eclipse.help_3.5.0.v20100524 [22]
{java.lang.ClassLoader}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.ContextFinder, service.vendor=Eclipse.org - Equinox
, equinox.classloader.type=contextClassLoader, service.id=6}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.framework.log.FrameworkLog}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.EclipseLogFactory, service.ve
ndor=Eclipse.org - Equinox, service.id=9}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
    org.eclipse.core.databinding.observable_1.3.0.I20100824-0800 [8]
    org.eclipse.core.databinding_1.4.0.I20110111-0800 [6]
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
{org.eclipse.osgi.service.environment.EnvironmentInfo}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentIn
fo, service.vendor=Eclipse.org - Equinox, service.id=19}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.core.runtime_3.7.0.v20110110 [12]
{org.eclipse.osgi.service.resolver.PlatformAdmin}={service.ranking=2147483647, service.pid=0.org.eclipse.osgi.internal.baseadaptor.StateManager, service.vendor=
Eclipse.org - Equinox, service.id=20}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.service.pluginconversion.PluginConverter}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.PluginConverter
Impl, service.vendor=Eclipse.org - Equinox, service.id=21}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.framework.console.CommandProvider}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.EclipseCommandProvider
, service.vendor=Eclipse.org - Equinox, service.id=22}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.eclipse.osgi.service.localization.BundleLocalization}={service.ranking=2147483647, service.pid=0.org.eclipse.core.runtime.internal.adaptor.BundleLocalizati
onImpl, service.vendor=Eclipse.org - Equinox, service.id=23}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
{org.osgi.service.log.LogReaderService, org.eclipse.equinox.log.ExtendedLogReaderService}={service.id=7}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
    org.eclipse.core.runtime_3.7.0.v20110110 [12]
{org.osgi.service.log.LogService, org.eclipse.equinox.log.ExtendedLogService}={service.id=8}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
    org.eclipse.core.runtime_3.7.0.v20110110 [12]
{javax.xml.parsers.SAXParserFactory}={service.id=11}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{javax.xml.parsers.DocumentBuilderFactory}={service.id=12}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.service.datalocation.Location}={type=osgi.user.area, service.id=13}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.service.datalocation.Location}={type=osgi.instance.area, service.id=14}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
{org.eclipse.osgi.service.datalocation.Location}={type=osgi.configuration.area, service.id=15}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
    org.eclipse.equinox.registry_3.5.100.v20101101 [19]
    org.eclipse.core.runtime_3.7.0.v20110110 [12]
{org.eclipse.osgi.service.datalocation.Location}={type=osgi.install.area, service.id=16}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
{org.eclipse.osgi.service.datalocation.Location}={type=eclipse.home.location, service.id=17}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.service.urlconversion.URLConverter}={protocol=[bundleentry,bundleresource], service.id=18}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.signedcontent.SignedContentFactory}={service.id=25}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.eclipse.osgi.internal.provisional.verifier.CertificateVerifierFactory}={service.id=26}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.osgi.service.framework.CompositeBundleFactory}={service.id=27}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.
{org.eclipse.osgi.service.urlconversion.URLConverter}={protocol=platform, service.id=28}
  Registered by bundle: org.eclipse.equinox.common_3.6.0.v20110110 [14]
  No bundles using service.
{org.eclipse.core.runtime.IAdapterManager}={service.id=29}
  Registered by bundle: org.eclipse.equinox.common_3.6.0.v20110110 [14]
  No bundles using service.
{org.osgi.service.url.URLStreamHandlerService}={url.handler.protocol=[platform], service.id=30}
  Registered by bundle: org.eclipse.equinox.common_3.6.0.v20110110 [14]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.eclipse.core.internal.preferences.exchange.IProductPreferencesService}={service.id=31}
  Registered by bundle: org.eclipse.core.runtime_3.7.0.v20110110 [12]
  No bundles using service.
{org.eclipse.core.runtime.preferences.IPreferencesService}={service.id=32}
  Registered by bundle: org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
  No bundles using service.
{org.osgi.service.prefs.PreferencesService}={service.id=33}
  Registered by bundle: org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
  No bundles using service.
{org.eclipse.core.runtime.jobs.IJobManager}={service.id=34}
  Registered by bundle: org.eclipse.core.jobs_3.5.100.v20101008 [11]
  No bundles using service.
{org.eclipse.core.runtime.IExtensionRegistry}={service.id=35}
  Registered by bundle: org.eclipse.equinox.registry_3.5.100.v20101101 [19]
  Bundles using service:
    org.eclipse.equinox.preferences_3.4.0.v20110124-0830 [18]
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
    org.eclipse.core.contenttype_3.4.100.v20101203-1034 [5]
    org.eclipse.equinox.http.registry_1.1.100.v20101101 [15]
    org.eclipse.equinox.registry_3.5.100.v20101101 [19]
{org.eclipse.osgi.framework.console.CommandProvider}={service.id=36}
  Registered by bundle: org.eclipse.equinox.registry_3.5.100.v20101101 [19]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.osgi.service.application.ApplicationDescriptor}={eclipse.application.type=main.thread, application.name=, application.visible=true, application.container=o
rg.eclipse.equinox.app, service.pid=de.dresearch.test.config_app.application, application.launchable=true, application.locked=false, application.location=initia
l@reference:file:plugins/de.dresearch.test.config_app_1.0.0.201103070902.jar/, service.id=37}
  Registered by bundle: org.eclipse.equinox.app_1.3.100.v20110110 [13]
  Bundles using service:
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
{org.osgi.service.application.ApplicationDescriptor}={eclipse.application.type=main.thread, application.name=, application.visible=false, application.container=
org.eclipse.equinox.app, service.pid=org.eclipse.equinox.app.error, application.launchable=true, application.locked=false, application.location=initial@referenc
e:file:plugins/org.eclipse.equinox.app_1.3.100.v20110110.jar/, service.id=38}
  Registered by bundle: org.eclipse.equinox.app_1.3.100.v20110110 [13]
  Bundles using service:
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
{org.eclipse.osgi.framework.console.CommandProvider}={service.id=39}
  Registered by bundle: org.eclipse.equinox.app_1.3.100.v20110110 [13]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.eclipse.osgi.service.localization.LocaleProvider}={service.id=40}
  Registered by bundle: org.eclipse.rap.ui.workbench_1.4.0.20110201-1534 [36]
  Bundles using service:
    org.eclipse.equinox.registry_3.5.100.v20101101 [19]
{org.eclipse.core.runtime.content.IContentTypeManager}={service.id=41}
  Registered by bundle: org.eclipse.core.contenttype_3.4.100.v20101203-1034 [5]
  No bundles using service.
{org.eclipse.equinox.http.registry.HttpContextExtensionService}={service.id=42}
  Registered by bundle: org.eclipse.equinox.http.registry_1.1.100.v20101101 [15]
  Bundles using service:
    org.eclipse.rap.ui.workbench_1.4.0.20110201-1534 [36]
{org.osgi.service.http.HttpService, org.eclipse.equinox.http.servlet.ExtendedHttpService}={service.vendor=Eclipse.org, service.description=Equinox Servlet Bridg
e, commandline=-registryMultiLanguage -console 7890 -consolelog, enableFrameworkControls=false, service.id=43}
  Registered by bundle: org.eclipse.equinox.http.servlet_1.1.100.v20101204 [16]
  Bundles using service:
    org.eclipse.equinox.http.registry_1.1.100.v20101101 [15]
    org.eclipse.rap.ui.workbench_1.4.0.20110201-1534 [36]
{org.eclipse.osgi.framework.console.ConsoleSession}={service.id=44}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.osgi_3.7.0.v20110124-0830 [0]
{org.eclipse.osgi.framework.log.FrameworkLog}={service.ranking=-2147483648, performance=true, service.pid=46org.eclipse.core.runtime.internal.adaptor.EclipseLog
Factory$1, service.vendor=Eclipse.org - Equinox, service.id=10}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  Bundles using service:
    org.eclipse.equinox.app_1.3.100.v20110110 [13]
    org.eclipse.core.databinding.observable_1.3.0.I20100824-0800 [8]
    org.eclipse.core.databinding_1.4.0.I20110111-0800 [6]
    org.eclipse.equinox.common_3.6.0.v20110110 [14]
{org.eclipse.osgi.service.security.TrustEngine}={service.ranking=-2147483648, osgi.signedcontent.trust.engine=org.eclipse.osgi, service.id=24}
  Registered by bundle: org.eclipse.osgi_3.7.0.v20110124-0830 [0]
  No bundles using service.



Hope it will help.

Heiko
Re: rap war not runs on Tiny Java Web Server . [message #659013 is a reply to message #658699] Thu, 10 March 2011 17:02 Go to previous messageGo to next message
Heiko  is currently offline Heiko Friend
Messages: 7
Registered: March 2011
Junior Member
I know some more - but it not much .... Confused

I added some stacktrace in the server and found that:
 at java.lang.reflect.Method.invoke(Unknown Source)
 at rogatkin.web.WebAppServlet$WebAppContextFilter$2.invoke(WebAppServlet.java:2583)
 at rogatkin.web.$Proxy1.sendError(Unknown Source)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:78)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
 at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
 at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:2718)
 at rogatkin.web.WebAppServlet$WebAppContextFilter.doFilter(WebAppServlet.java:2425)



seems the org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce - method response with 404??? Now I hope of help by the eclipse developers ....

Heiko
Re: rap war not runs on Tiny Java Web Server . [message #659055 is a reply to message #659013] Thu, 10 March 2011 19:13 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1291
Registered: July 2009
Senior Member

Hi Heiko,

I tried to run on tjws and found two interesting files inside the
server's root directory:

WebServer/AWS-1299662106636.log

and there is also an eclipse log at

WebServer/eclipse/workspace/.metadata/.log

could you look for similar files in your setup and post them?

Thanks, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: rap war not runs on Tiny Java Web Server . [message #659060 is a reply to message #658517] Thu, 10 March 2011 20:10 Go to previous messageGo to next message
Heiko  is currently offline Heiko Friend
Messages: 7
Registered: March 2011
Junior Member
Hello Ralf,
In the moment I try these things at home on windows. There I can find the AWS-log files from the server.
The WebServer/eclipse/workspace/.metadata directory contains only a ".plugins" folder with an empty "org.eclipse.rap.ui" folder as content.

How can I define the eclipse log (folder, name)?
How are the default names?
Have to be there a log from start (osgi console says that a lot of plugins are started).?
Is the bridgeServlet logging somthing and where I have to look for?

all the best - Heiko
Re: rap war not runs on Tiny Java Web Server . [message #659076 is a reply to message #659060] Thu, 10 March 2011 21:38 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1291
Registered: July 2009
Senior Member

Hi Heiko,

I don't know how to configure logging on the ljws. I just downloaded the
latest version (WebServer-181.zip), unzipped, copied some war into the
webapps folder and started. Then I found these log files with some usable
content, but this relates to my application, yours may differ. In my
web.xml, the -console and -consolelog parameter are not set.

I don't think that the bridge servlet is logging something. It probably
returns a 404 because there's no servlet registered at this URL. But
since the workbench bundle is obviously using the HTTP service (as seen
in your services output), I suppose there is some kind of exception
happening somewhere in between and you need to find it...


Good luck, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: rap war not runs on Tiny Java Web Server . [message #659224 is a reply to message #658517] Fri, 11 March 2011 15:25 Go to previous messageGo to next message
Heiko  is currently offline Heiko Friend
Messages: 7
Registered: March 2011
Junior Member
I solved the problem !!! Very Happy

It is a bug in the Tiny Java Web Server.

The generated war file contains a web.xml with this servlet mapping:
<servlet-mapping>
    <servlet-name>equinoxbridgeservlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping> 


On my example I have to call in the browser now:
http://localhost:7070/test/rap?startup=configApp

The org.eclipse.equinox.http.servlet.internal.HttpServletRequest Adaptor trys to call getPathInfo - and this is calculated wrong by the tjws. To compare:
Tomcat povides:
getContexPath: /test
getServletPath: (empty String)
getPathInfo: /rap

TJWS provides.
getContexPath: /test
getServletPath: /rap
getPathInfo: null

Workaround:
change your web.xml
<servlet-mapping>
    <servlet-name>equinoxbridgeservlet</servlet-name>
    <url-pattern>/anOtherString/*</url-pattern>
  </servlet-mapping> 

an call: http://localhost:7070/test/anOtherString/rap?startup=configA pp

This will work.

The problem in the TJWS is in rogatkin.web.WebAppServlet
and there the inner class WebAppContextFilter in the method extractPath!

I try to fix this source and will post it later here and in the TJWS forum.

Thanks to Holger and Ralf. Hope it will help some other ...

Heiko
Re: rap war not runs on Tiny Java Web Server . [message #659291 is a reply to message #659224] Fri, 11 March 2011 21:13 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1291
Registered: July 2009
Senior Member

Great news, Heiko!

Thanks for letting us know. Keep us posted when the bug is fixed.

Cheers, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: rap war not runs on Tiny Java Web Server . [message #660101 is a reply to message #659291] Wed, 16 March 2011 19:58 Go to previous message
Heiko  is currently offline Heiko Friend
Messages: 7
Registered: March 2011
Junior Member
The bug in the Tiny server is fixed and rap is working!
You find it in Version 1.83 from Mar 14th, 2011.
Please be carfull this Version is jet open. It was 1.83 before the fix too und may be other changes will be added later. Check the date!

Heiko
Previous Topic:RAP Deployment
Next Topic:RAP doesn't wrap "\n" in table cell
Goto Forum:
  


Current Time: Tue Nov 25 02:08:26 GMT 2014

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

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