Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Having to refresh certain bundle each time after starting Equinox
Having to refresh certain bundle each time after starting Equinox [message #102899] Mon, 17 December 2007 02:40 Go to next message
Setya Mising name is currently offline Setya Mising nameFriend
Messages: 491
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: Having to refresh certain bundle each time after starting Equinox [message #103279 is a reply to message #102899] Fri, 04 January 2008 08:43 Go to previous messageGo to next message
Setya Mising name is currently offline Setya Mising nameFriend
Messages: 491
Registered: July 2009
Senior Member
Well, anybody ?

Setya
Re: Having to refresh certain bundle each time after starting Equinox [message #103370 is a reply to message #103279] Fri, 04 January 2008 21:38 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Hi Setya,

The way to track these sorts of problems down is to attach a debugger and
walk through the class loading of (in your case) ContentTypeManager and in
particular looking at what's happening when core.runtime is activated.
Perhaps place a breakpoint core.runitme's Activator.

I also see you have a mix of versions. It might be a good idea to simplify
your dependencies and use a proper 3.2 release or better still a 3.3 release
version of all of your components. In particular all of the server-side
components you have were built against 3.3 so that would make things far
easier as a basis for helping you out.

HTH
-Simon


"Setya" <jsetya@gmail.com> wrote in message
news:8463187d90779c5c315a80259cef9357$1@www.eclipse.org...
> Well, anybody ?
>
> Setya
>
Previous Topic:trusted bundles
Next Topic:WAR file deployment
Goto Forum:
  


Current Time: Wed Nov 26 15:40:51 GMT 2014

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

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