Having to refresh certain bundle each time after starting Equinox [message #102899] |
Mon, 17 December 2007 02:40 |
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02691 seconds