Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » NoClassDefFoundError starting org.eclipse.equinox.registry(NoClassDefFoundError BundleException starting org.eclipse.equinox.registry)
NoClassDefFoundError starting org.eclipse.equinox.registry [message #637945] Tue, 09 November 2010 12:40 Go to next message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 16
Registered: July 2009
Junior Member
I am getting this when starting org.eclipse.equinox.registry

java.lang.NoClassDefFoundError: org/osgi/framework/BundleException
at org.eclipse.core.internal.registry.osgi.EclipseBundleListene r.addBundle(EclipseBundleListener.java:177)
at org.eclipse.core.internal.registry.osgi.EclipseBundleListene r.processBundles(EclipseBundleListener.java:90)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .onStart(RegistryStrategyOSGI.java:224)
at org.eclipse.core.internal.registry.ExtensionRegistry.<init>(ExtensionRegistry.java:725)
at org.eclipse.core.runtime.RegistryFactory.createRegistry(Regi stryFactory.java:58)
at org.eclipse.core.internal.registry.osgi.Activator.startRegis try(Activator.java:137)
at org.eclipse.core.internal.registry.osgi.Activator.start(Acti vator.java:56)

My config.ini says:
osgi.bundles=\
org.eclipse.equinox.common@2:start,\
org.eclipse.equinox.concurrent@3:start,\
org.eclipse.core.jobs@3:start,\
org.eclipse.core.runtime@3:start,\
org.eclipse.equinox.registry@3:start,\
org.eclipse.equinox.preferences@3:start,\
org.eclipse.core.contenttype@3:start,\

The System bundle which is org.eclipse.osgi at [0] is exporting org.osgi.framework

The Manifest.MF on org.eclipse.equinox.registry imports org.osgi.framework.

I haven't seen this reported elsewhere.
Does anyone have any ideas on this?

Robert
Re: NoClassDefFoundError starting org.eclipse.equinox.registry [message #637964 is a reply to message #637945] Tue, 09 November 2010 13:51 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 437
Registered: July 2009
Senior Member
I have never seen this. It is quite strange because the class org.eclipse.core.internal.registry.osgi.Activator implements org.osgi.framework.BundleActivator so we know that the registry bundle's class loader is able to load some at least some classes from the org.osgi.framework package.

What version of equinox are you using?

Tom.
Re: NoClassDefFoundError starting org.eclipse.equinox.registry [message #637975 is a reply to message #637964] Tue, 09 November 2010 14:07 Go to previous messageGo to next message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 16
Registered: July 2009
Junior Member
Tom

Thanks for your reply

I am starting equinox with

java -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar

and am using

org.eclipse.equinox.registry_3.5.0.v20100503.jar

I have used the property:

org.osgi.framework.system.packages.extra= \

in config.ini

in order to acquire access to some further packages and I also have

eclipse.ignoreApp=true



Robert
Re: NoClassDefFoundError starting org.eclipse.equinox.registry [message #883387 is a reply to message #637975] Fri, 08 June 2012 12:30 Go to previous message
Dieter Van de Walle is currently offline Dieter Van de WalleFriend
Messages: 5
Registered: January 2012
Junior Member
Did you ever resolve this?
I am having the exact same problem ...
Previous Topic:How to stop already running OSGi frameworks from IDE
Next Topic:Configuring jetty, support for Thread parameters
Goto Forum:
  


Current Time: Mon Nov 24 20:18:26 GMT 2014

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

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