|
Re: Cannot start ecore bundle [message #417728 is a reply to message #417722] |
Tue, 25 March 2008 12:23 |
Ed Merks 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?
Perhaps you using a JVM that's a bit more eager than normal about
loading classes... Which JVM are you using?<small><br>
</small>
<blockquote><small> public void start(BundleContext context) throws
Exception</small><br>
<small> {</small><br>
<small> super.start(context);</small><br>
<br>
<small> if (IS_RESOURCES_BUNDLE_AVAILABLE &&
System.getProperty(" org.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesP lugin ")
== null)</small><br>
<small> {</small><br>
<small> workspaceRoot =
ResourcesPlugin.getWorkspace().getRoot();</small><br>
<small> }</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 RESOLVED org.eclipse.core.resources.win32_3.2.0.v20060603
<br>
Master=47
<br>
47 ACTIVE org.eclipse.core.resources_3.2.2.R32x_v20061218
<br>
Fragments=46
<br>
55 RESOLVED org.eclipse.emf.ecore_2.2.2.v200702131851
<br>
<br>
When I try to start bundle 55:
<br>
<br>
osgi> 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>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1010)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
<br>
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
<br>
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
<br>
at java.lang.reflect.Method.invoke(Method.java:615)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
<br>
at java.lang.Thread.run(Thread.java:803)
<br>
Caused by: java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
<br>
at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
<br>
at
java.security.AccessController.doPrivileged(AccessController .java:242)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
<br>
... 13 more
<br>
Nested Exception:
<br>
java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
<br>
at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
<br>
at
java.security.AccessController.doPrivileged(AccessController .java:242)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
<br>
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
<br>
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
<br>
at java.lang.reflect.Method.invoke(Method.java:615)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
<br>
at java.lang.Thread.run(Thread.java:803)
<br>
Nested Exception:
<br>
java.lang.NoClassDefFoundError:
org.eclipse.core.resources.ResourcesPlugin
<br>
at
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation.star t(EcorePlugin.java:508)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
<br>
at
java.security.AccessController.doPrivileged(AccessController .java:242)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
<br>
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
<br>
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:239)
<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
<br>
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
<br>
at java.lang.reflect.Method.invoke(Method.java:615)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:145)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:293)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:278)
<br>
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:213)
<br>
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 |
Mike Gering 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!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03655 seconds