Rapdemo in Tomcat won't start [message #76397] |
Mon, 03 March 2008 16:58  |
Eclipse User |
|
|
|
I can't start rapdemo in Tomcat (either 5.5 or 6.0). The bundles install,
as you can see from the osgi console printout below, but when I try to
start, I get the following message:
org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: Missing Constraint: Require-Bundle: org.eclipse.rap.ui.workbench;
bundle-version="0.0.0".
In fact, none of the "INSTALLED" bundles can be started. If I try to start
the ui.workbench bundle, I get:
org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: Missing Constraint: Require-Bundle: org.eclipse.rap.rwt;
bundle-version="0.0.0"
Can anybody help. What's wrong here? Am I missing a bundle, or what?
Also, on a related matter, the help instructions for WAR Deployment in the
RAP Developer Guide don't work. The pde.exportFeatures target won't build
and there is no features or plugin directory created in under
WEB-INF/eclipse when the ant build completes.
Again, can anybody help me on this.
Thanks in advance.
Glenn Silverman....
******* OSGI console printout *****************
Framework is launched.
id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
Fragments=28
1 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
2 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
3 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
4 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
5 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
6 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200705071244
7 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.0.200705071244
8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200705071244
9 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
10 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
11 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
12 INSTALLED org.eclipse.rap.demo_1.0.0.200705071244
13 INSTALLED org.eclipse.rap.jface_1.0.0.200705071244
14 INSTALLED org.eclipse.rap.rwt_1.0.0.200705071244
15 INSTALLED org.eclipse.rap.ui.workbench_1.0.0.200705071244
16 INSTALLED org.eclipse.rap.w4t_1.0.0.200705071244
17 ACTIVE org.eclipse.update.configurator_3.2.2.R32x_v20070111
28 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
|
|
|
Re: Rapdemo in Tomcat won't start [message #76418 is a reply to message #76397] |
Mon, 03 March 2008 17:48   |
Eclipse User |
|
|
|
In OSGI the "INSTALLED" means that the bundle is actually missing a
dependancy as shown by the message you are seeing when trying to start it.
To find the missing dependancies you can type "Diag xx" at the OSGI console
where xx is the bundle ID that is installed. You may have to walk the
dependancy tree a bit to find your root cause. Meaning the workbench bundle
won't start because rap.rwt is "INSTALLED" so figure out what rap.rwt is
missing and so forth.
"Glenn Silverman" <glenn@exmbly.com> wrote in message
news:f6bd2caf06310f417f43a54539a880e4$1@www.eclipse.org...
>I can't start rapdemo in Tomcat (either 5.5 or 6.0). The bundles install,
>as you can see from the osgi console printout below, but when I try to
>start, I get the following message:
>
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: Missing Constraint: Require-Bundle: org.eclipse.rap.ui.workbench;
> bundle-version="0.0.0".
>
> In fact, none of the "INSTALLED" bundles can be started. If I try to start
> the ui.workbench bundle, I get:
>
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: Missing Constraint: Require-Bundle: org.eclipse.rap.rwt;
> bundle-version="0.0.0"
>
> Can anybody help. What's wrong here? Am I missing a bundle, or what?
>
> Also, on a related matter, the help instructions for WAR Deployment in the
> RAP Developer Guide don't work. The pde.exportFeatures target won't build
> and there is no features or plugin directory created in under
> WEB-INF/eclipse when the ant build completes.
>
> Again, can anybody help me on this.
>
> Thanks in advance.
>
> Glenn Silverman....
>
> ******* OSGI console printout *****************
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> Fragments=28
> 1 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
> 2 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
> 3 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
> 4 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
> 5 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
> 6 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200705071244
> 7 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.0.200705071244
> 8 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200705071244
> 9 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
> 10 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
> 11 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
> 12 INSTALLED org.eclipse.rap.demo_1.0.0.200705071244
> 13 INSTALLED org.eclipse.rap.jface_1.0.0.200705071244
> 14 INSTALLED org.eclipse.rap.rwt_1.0.0.200705071244
> 15 INSTALLED org.eclipse.rap.ui.workbench_1.0.0.200705071244
> 16 INSTALLED org.eclipse.rap.w4t_1.0.0.200705071244
> 17 ACTIVE org.eclipse.update.configurator_3.2.2.R32x_v20070111
> 28 RESOLVED
> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
>
|
|
|
|
Re: Rapdemo in Tomcat won't start [message #76479 is a reply to message #76433] |
Tue, 04 March 2008 01:24  |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
you must not install the servlet bundle, this will be provided by the
web applications classloader. This is why you get the class cast
exception now. The rapdemo normally can be deployed to tomcat without
any problems. But by the way, it seems that you are using a pretty old
RAP version (Build of May 2007), which is pre 1.0. At this time there
where sometimes problems on startup with bundles resolving. So I would
strongly recommend to switch to the latest version and see whether the
problem still persists.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Glenn Silverman [mailto:glenn@exmbly.com]
Bereitgestellt: Dienstag, 4. März 2008 00:50
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Rapdemo in Tomcat won't start
Betreff: Re: Rapdemo in Tomcat won't start
Thanks for your response.
However, the missing dependency seems to be javax.servlet.jar, which,
after installing, resolved all the "INSTALLED" bundles to "Active".
However, I then received the following error:
java.lang.ClassCastException:
org.eclipse.ui.internal.servlet.RequestHandler
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper
..initializeDelegate(ServletManager.java:191)
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper
..service(ServletManager.java:176)
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequ
est(ServletRegistration.java:91)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(Prox
yServlet.java:110)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServ
let.java:60)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.servletbridge.BridgeServlet.service(Brid geServlet.ja
va:115)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
In addition, the WAR Deployment section in the RAP Developer Guide
does'nt show javax.servlet bundle installed, nor is it included in the
rapdemo.war plugins directory.
Is the rapdemo example all wrong or what?
Glenn...
|
|
|
Powered by
FUDForum. Page generated in 0.03740 seconds