Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Cannot start ecore bundle
Cannot start ecore bundle [message #417722] Mon, 24 March 2008 21:08 Go to next message
Mike Gering is currently offline Mike GeringFriend
Messages: 41
Registered: July 2009
Member
I'm running an application in a web container using the servlet bridge
(eclipse 3.2), and the org.eclipse.emf.ecore plugin refuses to start due
to org.eclipse.core.resources, but I don't know why. Using the OSGi
console, I see:

46 RESOLVED org.eclipse.core.resources.win32_3.2.0.v20060603
Master=47
47 ACTIVE org.eclipse.core.resources_3.2.2.R32x_v20061218
Fragments=46
55 RESOLVED org.eclipse.emf.ecore_2.2.2.v200702131851

When I try to start bundle 55:

osgi> start 55
org.osgi.framework.BundleException: Exception in
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t() of
bundle org.eclipse.emf.ecore.
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:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
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:803)
Caused by: java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(AccessController .java:242)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
... 13 more
Nested Exception:
java.lang.NoClassDefFoundError: org.eclipse.core.resources.ResourcesPlugin
at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(AccessController .java:242)
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:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
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:803)
Nested Exception:
java.lang.NoClassDefFoundError: org.eclipse.core.resources.ResourcesPlugin
at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(AccessController .java:242)
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:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
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:803)


This totally confuses me. What could be going wrong??

Thanks,
Mike Gering
Re: Cannot start ecore bundle [message #417728 is a reply to message #417722] Tue, 25 March 2008 12:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030608050902000001040901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Mike,

Normally I'd expect this guard to avoid using the resources plugin if
the plugin isn't available. Can you tell if the first guard is false?
Perhaps you using a JVM that's a bit more eager than normal about
loading classes... Which JVM are you using?

public void start(BundleContext context) throws Exception
{
super.start(context);

if (IS_RESOURCES_BUNDLE_AVAILABLE &&
System.getProperty(" org.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesP lugin ")
== null)
{
workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
}

It was nice seeing you at EclipseCon!


Mike Gering wrote:
> I'm running an application in a web container using the servlet bridge
> (eclipse 3.2), and the org.eclipse.emf.ecore plugin refuses to start
> due to org.eclipse.core.resources, but I don't know why. Using the
> OSGi console, I see:
>
> 46 RESOLVED org.eclipse.core.resources.win32_3.2.0.v20060603
> Master=47
> 47 ACTIVE org.eclipse.core.resources_3.2.2.R32x_v20061218
> Fragments=46
> 55 RESOLVED org.eclipse.emf.ecore_2.2.2.v200702131851
>
> When I try to start bundle 55:
>
> osgi> start 55
> org.osgi.framework.BundleException: Exception in
> org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t() of
> bundle org.eclipse.emf.ecore.
> 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:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> 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:803)
> Caused by: java.lang.NoClassDefFoundError:
> org.eclipse.core.resources.ResourcesPlugin
> at
> org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
>
> at
> java.security.AccessController.doPrivileged(AccessController .java:242)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
>
> ... 13 more
> Nested Exception:
> java.lang.NoClassDefFoundError:
> org.eclipse.core.resources.ResourcesPlugin
> at
> org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
>
> at
> java.security.AccessController.doPrivileged(AccessController .java:242)
> 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:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> 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:803)
> Nested Exception:
> java.lang.NoClassDefFoundError:
> org.eclipse.core.resources.ResourcesPlugin
> at
> org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
>
> at
> java.security.AccessController.doPrivileged(AccessController .java:242)
> 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:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> 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:803)
>
>
> This totally confuses me. What could be going wrong??
>
> Thanks,
> Mike Gering


--------------030608050902000001040901
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mike,<br>
<br>
Normally I'd expect this guard to avoid using the resources plugin if
the plugin isn't available. Can you tell if the first guard is false?&nbsp;
Perhaps you using a JVM that's a bit more eager than normal about
loading classes...&nbsp; Which JVM are you using?<small><br>
</small>
<blockquote><small>&nbsp;&nbsp;&nbsp; public void start(BundleContext context) throws
Exception</small><br>
<small>&nbsp;&nbsp;&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.start(context);</small><br>
<br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (IS_RESOURCES_BUNDLE_AVAILABLE &amp;&amp;
System.getProperty(" org.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesP lugin ")
== null)</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</small><br>
<small> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; workspaceRoot =
ResourcesPlugin.getWorkspace().getRoot();</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</small><br>
</blockquote>
It was nice seeing you at EclipseCon!<br>
<br>
<br>
Mike Gering wrote:
<blockquote cite="mid:fs956r$6vj$1@build.eclipse.org" type="cite">I'm
running an application in a web container using the servlet bridge
(eclipse 3.2), and the org.eclipse.emf.ecore plugin refuses to start
due to org.eclipse.core.resources, but I don't know why. Using the OSGi
console, I see:
<br>
<br>
46&nbsp;&nbsp;&nbsp; RESOLVED&nbsp;&nbsp;&nbsp; org.eclipse.core.resources.win32_3.2.0.v20060603
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Master=47
<br>
47&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.core.resources_3.2.2.R32x_v20061218
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Fragments=46
<br>
55&nbsp;&nbsp;&nbsp; RESOLVED&nbsp;&nbsp;&nbsp; org.eclipse.emf.ecore_2.2.2.v200702131851
<br>
<br>
When I try to start bundle 55:
<br>
<br>
osgi&gt; start 55
<br>
org.osgi.framework.BundleException: Exception in
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t() of
bundle org.eclipse.emf.ecore.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1010)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.reflect.Method.invoke(Method.java:615)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.Thread.run(Thread.java:803)
<br>
Caused by: java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
java.security.AccessController.doPrivileged(AccessController .java:242)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;... 13 more
<br>
Nested Exception:
<br>
java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
java.security.AccessController.doPrivileged(AccessController .java:242)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.reflect.Method.invoke(Method.java:615)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.Thread.run(Thread.java:803)
<br>
Nested Exception:
<br>
java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
java.security.AccessController.doPrivileged(AccessController .java:242)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.reflect.Method.invoke(Method.java:615)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.Thread.run(Thread.java:803)
<br>
<br>
<br>
This totally confuses me. What could be going wrong??
<br>
<br>
Thanks,
<br>
Mike Gering
<br>
</blockquote>
<br>
</body>
</html>

--------------030608050902000001040901--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Cannot start ecore bundle [message #417735 is a reply to message #417728] Tue, 25 March 2008 15:55 Go to previous message
Mike Gering is currently offline Mike GeringFriend
Messages: 41
Registered: July 2009
Member
Ed,

After more debugging, I think the problem is caused, in part, by the JRE. I changed from the RSA installed JRE 1.5
to IBM 1.4.2, the error goes away. Switching back to the original JRE also succeeds. Maybe the j9 cache was corrupt?

Anyway, there is still some mystery. I set the system property ...doNotLoadResourcesPlugin in the launch.ini and
the osgi console reflects that fact. But stepping through the code, it is not set in that jvm environment.
Isn't that strange? I remember there was some strangeness about the servlet bridge and how it created the
execution environments in the web container. I'll poke into that now.

And why we need the resources plugin in our environment is another issue I need to resolve.

It was good to finally meet you at EclipseCon.

Best regards,

Mike

Ed Merks wrote:

> Mike,
>
> Normally I'd expect this guard to avoid using the resources plugin if
> the plugin isn't available. Can you tell if the first guard is false?
> Perhaps you using a JVM that's a bit more eager than normal about
> loading classes... Which JVM are you using?
>
> public void start(BundleContext context) throws Exception
> {
> super.start(context);
>
> if (IS_RESOURCES_BUNDLE_AVAILABLE &&
> System.getProperty(" org.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesP lugin ")
> == null)
> {
> workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
> }
>
> It was nice seeing you at EclipseCon!
>
>
Previous Topic:Problem with Genmodel with multiple ecores
Next Topic:UML to XMI export programmatically?
Goto Forum:
  


Current Time: Fri Apr 26 15:14:42 GMT 2024

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

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

Back to the top