Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFScript] problems using with Eclipse 3.3
[MOFScript] problems using with Eclipse 3.3 [message #379822] Mon, 01 October 2007 11:30 Go to next message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
I'm trying to use MOFScript with eclipse 3.3 and am having problems.
I know that previous messages have been posted on this topic
but it is not clear what the solution is.

The symptom is that I can not open existing MOFScript files. I get
the exception given below. This seems to imply an issue with
Antlr, but I have installed Antlr from
http://antlreclipse.sourceforge.net/updates/
as described in the manual. I also have the Antlr 3.0.0 plugin
installed, as I'm using other tools (e.g. Xtext) that depend
on it.

Any insights as to what I might have done wrong would be
appreciated.

Andy.



org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.sintef.mofscript.editor (689).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:243)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:239)
at
org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:231)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:841)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:797)
at
org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: org.osgi.framework.BundleException: The activator
org.sintef.mofscript.editor.MofScriptEditorPlugin for bundle
org.sintef.mofscript.editor is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 57 more
Caused by: java.lang.NoClassDefFoundError: antlr/TokenStream
at
org.sintef.mofscript.editor.MofScriptEditorPlugin.getParserU til(MofScriptEditorPlugin.java:217)
at
org.sintef.mofscript.editor.MofScriptEditorPlugin.<init>(MofScriptEditorPlugin.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
... 62 more


--
-- ------------------------------------------------------------ -------------
Dr Andy Carpenter
School of Computer Science,
University of Manchester, Manchester M13 9PL, UK
Email: Andy.Carpenter@manchester.ac.uk
Tel: +44 161 275 6168
Fax: +44 161 275 6280
Re: [MOFScript] problems using with Eclipse 3.3 [message #379824 is a reply to message #379822] Mon, 01 October 2007 12:25 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Andy,

It seems like there have been an error at build time for the lates release
of MOFScript.
In paricular with a plugin dependency, editor requires UML2 plugin, (should
be optional).

But I am not sure if this is the source of error..

My configuration always contains this plug-in so I havent noticed.

Do you have the uml2 plugin installed?

/G
Re: [MOFScript] problems using with Eclipse 3.3 [message #379826 is a reply to message #379824] Mon, 01 October 2007 13:00 Go to previous messageGo to next message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
G
Re: [MOFScript] problems using with Eclipse 3.3 [message #379830 is a reply to message #379826] Wed, 03 October 2007 08:34 Go to previous messageGo to next message
Tor Neple is currently offline Tor NepleFriend
Messages: 57
Registered: July 2009
Member
If my memory serves me right the ANTLR version to use is 2.7.6 (I think
i had trouble using 3.0.0), at least that is the version that is used
when building MOFScript here at SINTEF. I will check the dependencies
(version numbers).


Tor


Andy Carpenter wrote:
> Gøran,
>
> I've just checked; I do have the uml 2 pugin installed.
>
> thanks
> Andy.
>
> "Gøran K. Olsen" <Goran.K.Olsen@Sintef.no> wrote in message
> news:fdqovd$mii$1@build.eclipse.org...
>> Hello Andy,
>>
>> It seems like there have been an error at build time for the lates release
>> of MOFScript.
>> In paricular with a plugin dependency, editor requires UML2 plugin,
>> (should be optional).
>>
>> But I am not sure if this is the source of error..
>>
>> My configuration always contains this plug-in so I havent noticed.
>>
>> Do you have the uml2 plugin installed?
>>
>> /Gøran
>>
>>
>> "Andy Carpenter" <Andy.Carpenter@manchester.ac.uk> wrote in message
>> news:fdqm0b$e9g$1@build.eclipse.org...
>>> I'm trying to use MOFScript with eclipse 3.3 and am having problems.
>>> I know that previous messages have been posted on this topic
>>> but it is not clear what the solution is.
>>>
>>> The symptom is that I can not open existing MOFScript files. I get
>>> the exception given below. This seems to imply an issue with
>>> Antlr, but I have installed Antlr from
>>> http://antlreclipse.sourceforge.net/updates/
>>> as described in the manual. I also have the Antlr 3.0.0 plugin
>>> installed, as I'm using other tools (e.g. Xtext) that depend
>>> on it.
>>>
>>> Any insights as to what I might have done wrong would be
>>> appreciated.
>>>
>>> Andy.
>>>
>>>
>>>
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
>>> An error occurred while automatically activating bundle
>>> org.sintef.mofscript.editor (689).
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
>>> at
>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>>> at
>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
>>> at
>>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>>> at
>>> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:243)
>>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:239)
>>> at
>>> org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:231)
>>> at
>>> org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:841)
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
>>> at
>>> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
>>> at
>>> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
>>> at
>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
>>> at
>>> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:797)
>>> at
>>> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
>>> at
>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>> 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.equinox.launcher.Main.invokeFramework(Main.java: 504)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
>>> Caused by: org.osgi.framework.BundleException: The activator
>>> org.sintef.mofscript.editor.MofScriptEditorPlugin for bundle
>>> org.sintef.mofscript.editor is invalid
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
>>> at
>>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>>> ... 57 more
>>> Caused by: java.lang.NoClassDefFoundError: antlr/TokenStream
>>> at
>>> org.sintef.mofscript.editor.MofScriptEditorPlugin.getParserU til(MofScriptEditorPlugin.java:217)
>>> at
>>> org.sintef.mofscript.editor.MofScriptEditorPlugin.<init>(MofScriptEditorPlugin.java:92)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
>>> at java.lang.Class.newInstance0(Class.java:355)
>>> at java.lang.Class.newInstance(Class.java:308)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
>>> ... 62 more
>>>
>>>
>>> --
>>> -- ------------------------------------------------------------ -------------
>>> Dr Andy Carpenter
>>> School of Computer Science,
>>> University of Manchester, Manchester M13 9PL, UK
>>> Email: Andy.Carpenter@manchester.ac.uk
>>> Tel: +44 161 275 6168
>>> Fax: +44 161 275 6280
>>>
>>
>
>
Re: [MOFScript] problems using with Eclipse 3.3 [message #379832 is a reply to message #379830] Wed, 03 October 2007 15:45 Go to previous message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
Tor,

I have the ANTLR 2.7.6 plugin installed (downloaded from
http://antlreclipse.sourceforge.net/updates/). I also have
the ANTLR 3.0.0 plugin installed, as I'm using other plugins that
are dependent on this version.

Andy.


"Tor Neple" <tor.neple@sintef.no> wrote in message
news:fdvk5n$ao9$1@build.eclipse.org...
> If my memory serves me right the ANTLR version to use is 2.7.6 (I think i
> had trouble using 3.0.0), at least that is the version that is used when
> building MOFScript here at SINTEF. I will check the dependencies (version
> numbers).
>
>
> Tor
>
>
> Andy Carpenter wrote:
>> G
Re: [MOFScript] problems using with Eclipse 3.3 [message #607586 is a reply to message #379822] Mon, 01 October 2007 12:25 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Andy,

It seems like there have been an error at build time for the lates release
of MOFScript.
In paricular with a plugin dependency, editor requires UML2 plugin, (should
be optional).

But I am not sure if this is the source of error..

My configuration always contains this plug-in so I havent noticed.

Do you have the uml2 plugin installed?

/G
Re: [MOFScript] problems using with Eclipse 3.3 [message #607588 is a reply to message #379824] Mon, 01 October 2007 13:00 Go to previous message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
G
Re: [MOFScript] problems using with Eclipse 3.3 [message #608035 is a reply to message #379826] Wed, 03 October 2007 08:34 Go to previous message
Tor Neple is currently offline Tor NepleFriend
Messages: 57
Registered: July 2009
Member
If my memory serves me right the ANTLR version to use is 2.7.6 (I think
i had trouble using 3.0.0), at least that is the version that is used
when building MOFScript here at SINTEF. I will check the dependencies
(version numbers).


Tor


Andy Carpenter wrote:
> Gøran,
>
> I've just checked; I do have the uml 2 pugin installed.
>
> thanks
> Andy.
>
> "Gøran K. Olsen" <Goran.K.Olsen@Sintef.no> wrote in message
> news:fdqovd$mii$1@build.eclipse.org...
>> Hello Andy,
>>
>> It seems like there have been an error at build time for the lates release
>> of MOFScript.
>> In paricular with a plugin dependency, editor requires UML2 plugin,
>> (should be optional).
>>
>> But I am not sure if this is the source of error..
>>
>> My configuration always contains this plug-in so I havent noticed.
>>
>> Do you have the uml2 plugin installed?
>>
>> /Gøran
>>
>>
>> "Andy Carpenter" <Andy.Carpenter@manchester.ac.uk> wrote in message
>> news:fdqm0b$e9g$1@build.eclipse.org...
>>> I'm trying to use MOFScript with eclipse 3.3 and am having problems.
>>> I know that previous messages have been posted on this topic
>>> but it is not clear what the solution is.
>>>
>>> The symptom is that I can not open existing MOFScript files. I get
>>> the exception given below. This seems to imply an issue with
>>> Antlr, but I have installed Antlr from
>>> http://antlreclipse.sourceforge.net/updates/
>>> as described in the manual. I also have the Antlr 3.0.0 plugin
>>> installed, as I'm using other tools (e.g. Xtext) that depend
>>> on it.
>>>
>>> Any insights as to what I might have done wrong would be
>>> appreciated.
>>>
>>> Andy.
>>>
>>>
>>>
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
>>> An error occurred while automatically activating bundle
>>> org.sintef.mofscript.editor (689).
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
>>> at
>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>>> at
>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
>>> at
>>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>>> at
>>> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:243)
>>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:239)
>>> at
>>> org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:231)
>>> at
>>> org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:841)
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
>>> at
>>> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
>>> at
>>> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
>>> at
>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
>>> at
>>> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:797)
>>> at
>>> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
>>> at
>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>> 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.equinox.launcher.Main.invokeFramework(Main.java: 504)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
>>> Caused by: org.osgi.framework.BundleException: The activator
>>> org.sintef.mofscript.editor.MofScriptEditorPlugin for bundle
>>> org.sintef.mofscript.editor is invalid
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
>>> at
>>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>>> ... 57 more
>>> Caused by: java.lang.NoClassDefFoundError: antlr/TokenStream
>>> at
>>> org.sintef.mofscript.editor.MofScriptEditorPlugin.getParserU til(MofScriptEditorPlugin.java:217)
>>> at
>>> org.sintef.mofscript.editor.MofScriptEditorPlugin.<init>(MofScriptEditorPlugin.java:92)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:5 13)
>>> at java.lang.Class.newInstance0(Class.java:355)
>>> at java.lang.Class.newInstance(Class.java:308)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
>>> ... 62 more
>>>
>>>
>>> --
>>> -- ------------------------------------------------------------ -------------
>>> Dr Andy Carpenter
>>> School of Computer Science,
>>> University of Manchester, Manchester M13 9PL, UK
>>> Email: Andy.Carpenter@manchester.ac.uk
>>> Tel: +44 161 275 6168
>>> Fax: +44 161 275 6280
>>>
>>
>
>
Re: [MOFScript] problems using with Eclipse 3.3 [message #608037 is a reply to message #379830] Wed, 03 October 2007 15:45 Go to previous message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
Tor,

I have the ANTLR 2.7.6 plugin installed (downloaded from
http://antlreclipse.sourceforge.net/updates/). I also have
the ANTLR 3.0.0 plugin installed, as I'm using other plugins that
are dependent on this version.

Andy.


"Tor Neple" <tor.neple@sintef.no> wrote in message
news:fdvk5n$ao9$1@build.eclipse.org...
> If my memory serves me right the ANTLR version to use is 2.7.6 (I think i
> had trouble using 3.0.0), at least that is the version that is used when
> building MOFScript here at SINTEF. I will check the dependencies (version
> numbers).
>
>
> Tor
>
>
> Andy Carpenter wrote:
>> G
Previous Topic:[TCS] Symbols, operators, tokens, and lexer section
Next Topic:[MOFScript] Model to Text Traceability in MOFScript
Goto Forum:
  


Current Time: Thu Apr 18 08:50:02 GMT 2024

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

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

Back to the top