Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem starting Equinox
Problem starting Equinox [message #67706] Wed, 02 January 2008 06:10 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

Each time I start Equinox to test my RAP application when I invoke 'ss'
command not all bundles are activated as follows:

osgi> Dec 17, 2007 9:07:29 AM org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.x
Dec 17, 2007 9:07:29 AM org.mortbay.util.Container start
INFO: Started org.mortbay.jetty.servlet.ServletHandler@4e280c
Dec 17, 2007 9:07:29 AM org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
Dec 17, 2007 9:07:29 AM org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:8080
Dec 17, 2007 9:07:29 AM org.mortbay.util.Container start
INFO: Started org.mortbay.http.HttpServer@f1bb78
ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
1 RESOLVED com.farbeyond.core_1.0.0
2 ACTIVE javax.servlet_2.4.0.20071207-1851
3 ACTIVE org.apache.commons.logging_1.0.4.20071207-1851
4 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
5 RESOLVED org.eclipse.core.contenttype_3.2.0.v20060603
6 RESOLVED org.eclipse.core.expressions_3.2.2.r322_v20070109a
7 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
8 RESOLVED org.eclipse.core.runtime_3.2.0.v20060603
9 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
10 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.20071207-1851
11 ACTIVE org.eclipse.equinox.http.registry_1.0.0.20071207-1851
12 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.20071207-1851
13 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
14 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
15 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
16 ACTIVE org.eclipse.rap.jface_1.0.1.20071207-1851
17 ACTIVE org.eclipse.rap.rwt_1.0.1.20071207-1851
18 RESOLVED org.eclipse.rap.ui_1.0.1.20071207-1851
19 RESOLVED org.eclipse.rap.ui.views_1.0.1.20071207-1851
20 RESOLVED org.eclipse.rap.ui.workbench_1.0.1.20071207-1851
21 ACTIVE org.mortbay.jetty_5.1.11.20071207-1851

From my observation all the problem originates from bundle
org.eclipse.core.contenttype_3.2.0.v20060603, so I started it manually
with 'start' command but then it throws exception for not being able to
find certain classes :

osgi> start 5
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.content.Activator.start() of bundle
org.eclipse.core.contenttype.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1010)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/core/internal/content/ContentTypeManager
at org.eclipse.core.internal.content.Activator.start(Activator. java:48)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
... 13 more
Nested Exception:
java.lang.NoClassDefFoundError:
org/eclipse/core/internal/content/ContentTypeManager
at org.eclipse.core.internal.content.Activator.start(Activator. java:48)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
at java.lang.Thread.run(Thread.java:619)
Nested Exception:
java.lang.NoClassDefFoundError:
org/eclipse/core/internal/content/ContentTypeManager
at org.eclipse.core.internal.content.Activator.start(Activator. java:48)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
at java.lang.Thread.run(Thread.java:619)

Finally I can activate the bundle by issuing 'refresh' instead of 'start' :

osgi> refresh 5

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
1 ACTIVE com.farbeyond.core_1.0.0
2 ACTIVE javax.servlet_2.4.0.20071207-1851
3 ACTIVE org.apache.commons.logging_1.0.4.20071207-1851
4 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
5 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
6 ACTIVE org.eclipse.core.expressions_3.2.2.r322_v20070109a
7 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
8 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
9 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
10 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.20071207-1851
11 ACTIVE org.eclipse.equinox.http.registry_1.0.0.20071207-1851
12 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.20071207-1851
13 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
14 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
15 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
16 ACTIVE org.eclipse.rap.jface_1.0.1.20071207-1851
17 ACTIVE org.eclipse.rap.rwt_1.0.1.20071207-1851
18 ACTIVE org.eclipse.rap.ui_1.0.1.20071207-1851
19 ACTIVE org.eclipse.rap.ui.views_1.0.1.20071207-1851
20 ACTIVE org.eclipse.rap.ui.workbench_1.0.1.20071207-1851
21 ACTIVE org.mortbay.jetty_5.1.11.20071207-1851

But then I have to do this each time I restart Equinox. What's the problem
?

Any help would be greatly appreciated.

Best Regards,

Setya
Re: Problem starting Equinox [message #72576 is a reply to message #67706] Fri, 01 February 2008 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

seems to me that you are running against the 3.2 equinox implementation.
I've encountered such problems occasionally with the 3.2 version, but didn't
really find out the reason. Sometimes it helped to change the startlevel of
the bundle that caused the problem (in your case the contenttype bundle)
from default to 1 or 2. The problem vanished completely as we switched
finally to the 3.3 version of equinox .

Ciao
Frank


"Setya" <jsetya@gmail.com> schrieb im Newsbeitrag
news:aa023068687892b85401f881d1dfea4c$1@www.eclipse.org...
> Hi all,
>
> Each time I start Equinox to test my RAP application when I invoke 'ss'
> command not all bundles are activated as follows:
>
> osgi> Dec 17, 2007 9:07:29 AM org.mortbay.http.HttpServer doStart
> INFO: Version Jetty/5.1.x
> Dec 17, 2007 9:07:29 AM org.mortbay.util.Container start
> INFO: Started org.mortbay.jetty.servlet.ServletHandler@4e280c
> Dec 17, 2007 9:07:29 AM org.mortbay.util.Container start
> INFO: Started HttpContext[/,/]
> Dec 17, 2007 9:07:29 AM org.mortbay.http.SocketListener start
> INFO: Started SocketListener on 0.0.0.0:8080
> Dec 17, 2007 9:07:29 AM org.mortbay.util.Container start
> INFO: Started org.mortbay.http.HttpServer@f1bb78
> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> 1 RESOLVED com.farbeyond.core_1.0.0
> 2 ACTIVE javax.servlet_2.4.0.20071207-1851
> 3 ACTIVE org.apache.commons.logging_1.0.4.20071207-1851
> 4 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
> 5 RESOLVED org.eclipse.core.contenttype_3.2.0.v20060603
> 6 RESOLVED org.eclipse.core.expressions_3.2.2.r322_v20070109a
> 7 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
> 8 RESOLVED org.eclipse.core.runtime_3.2.0.v20060603
> 9 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
> 10 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.20071207-1851
> 11 ACTIVE org.eclipse.equinox.http.registry_1.0.0.20071207-1851
> 12 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.20071207-1851
> 13 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
> 14 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
> 15 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
> 16 ACTIVE org.eclipse.rap.jface_1.0.1.20071207-1851
> 17 ACTIVE org.eclipse.rap.rwt_1.0.1.20071207-1851
> 18 RESOLVED org.eclipse.rap.ui_1.0.1.20071207-1851
> 19 RESOLVED org.eclipse.rap.ui.views_1.0.1.20071207-1851
> 20 RESOLVED org.eclipse.rap.ui.workbench_1.0.1.20071207-1851
> 21 ACTIVE org.mortbay.jetty_5.1.11.20071207-1851
>
> From my observation all the problem originates from bundle
> org.eclipse.core.contenttype_3.2.0.v20060603, so I started it manually
> with 'start' command but then it throws exception for not being able to
> find certain classes :
>
> osgi> start 5
> org.osgi.framework.BundleException: Exception in
> org.eclipse.core.internal.content.Activator.start() of bundle
> org.eclipse.core.contenttype.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1010)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/content/ContentTypeManager
> at org.eclipse.core.internal.content.Activator.start(Activator. java:48)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
> .. 13 more
> Nested Exception:
> java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/content/ContentTypeManager
> at org.eclipse.core.internal.content.Activator.start(Activator. java:48)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
> at java.lang.Thread.run(Thread.java:619)
> Nested Exception:
> java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/content/ContentTypeManager
> at org.eclipse.core.internal.content.Activator.start(Activator. java:48)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
> at java.lang.Thread.run(Thread.java:619)
>
> Finally I can activate the bundle by issuing 'refresh' instead of 'start'
> :
>
> osgi> refresh 5
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> 1 ACTIVE com.farbeyond.core_1.0.0
> 2 ACTIVE javax.servlet_2.4.0.20071207-1851
> 3 ACTIVE org.apache.commons.logging_1.0.4.20071207-1851
> 4 ACTIVE org.eclipse.core.commands_3.2.0.I20060605-1400
> 5 ACTIVE org.eclipse.core.contenttype_3.2.0.v20060603
> 6 ACTIVE org.eclipse.core.expressions_3.2.2.r322_v20070109a
> 7 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
> 8 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
> 9 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
> 10 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.20071207-1851
> 11 ACTIVE org.eclipse.equinox.http.registry_1.0.0.20071207-1851
> 12 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.20071207-1851
> 13 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
> 14 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
> 15 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
> 16 ACTIVE org.eclipse.rap.jface_1.0.1.20071207-1851
> 17 ACTIVE org.eclipse.rap.rwt_1.0.1.20071207-1851
> 18 ACTIVE org.eclipse.rap.ui_1.0.1.20071207-1851
> 19 ACTIVE org.eclipse.rap.ui.views_1.0.1.20071207-1851
> 20 ACTIVE org.eclipse.rap.ui.workbench_1.0.1.20071207-1851
> 21 ACTIVE org.mortbay.jetty_5.1.11.20071207-1851
>
> But then I have to do this each time I restart Equinox. What's the problem
> ?
>
> Any help would be greatly appreciated.
>
> Best Regards,
>
> Setya
>
Re: Problem starting Equinox [message #72870 is a reply to message #72576] Mon, 04 February 2008 07:04 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

> seems to me that you are running against the 3.2 equinox implementation.
> I've encountered such problems occasionally with the 3.2 version, but didn't
> really find out the reason. Sometimes it helped to change the startlevel of
> the bundle that caused the problem (in your case the contenttype bundle)
> from default to 1 or 2. The problem vanished completely as we switched
> finally to the 3.3 version of equinox .

Thanks for your info. I don't experience such problems anymore after
switching to RAP 1.1.0-M1.

Best Regards,

Setya
Previous Topic:Rap Demo - Default Entry Point not Found
Next Topic:Adjusts panel problem in Internet Explore
Goto Forum:
  


Current Time: Sat Apr 27 00:51:20 GMT 2024

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

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

Back to the top