Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Missing required bundle org.eclipse.ocl.ecore_0.0.0.
Missing required bundle org.eclipse.ocl.ecore_0.0.0. [message #166615] Wed, 02 January 2008 17:15 Go to next message
Eclipse UserFriend
Hi,

when I try to use OCL as constrain language suggested by Tutorial 2, I
always get the following error message when I tried to run the generated
diagram plug-in as an RCP application:

Missing required bundle org.eclipse.ocl.ecore_0.0.0

then I can't run the RCP application.

The ocl plug-in is there. Besides, I can run the examples.mindmap within
the same eclipse. I don't think it's caused by Eclipse global setup. I
doubt something wrong with my model. However, I made the exact constrain
suggested by Tutorial 2. Does anyone happen to know where else I should
take a look?

thanks and happy new year!
Sam
Re: Missing required bundle org.eclipse.ocl.ecore_0.0.0. [message #166623 is a reply to message #166615] Thu, 03 January 2008 00:11 Go to previous messageGo to next message
Eclipse UserFriend
The following procedure is my another approach trying to solve the problem
of "Missing required bundle org.eclipse.ocl.ecore_0.0.0."

First, remove the plug-in "org.eclipse.ocl.ecore" from the plug-in
dependencies of the generated diagram (RCP) application.

Second, adding external jars
"org.eclipse.ocl.ecore_1.1.0.v200706071450.jar" and
"org.eclipse.ocl_1.1.1.v200707131415.jar" to the generated diagram
application.

Then try to run the generated diagram application as RCP. Unfortunately,
the following error popup and then the editor can not be open:

Cannot open input element
Reason:
Diagram is not present in resource

I compare the Plug-in Dependencies between my diagram and mindmap.diagram.
They are exactly same except the ecore part. (mindmap.diagram works fine)

The following is the detailed error message when running the generated
diagram application, any hint will be greatly appreciated!



org.eclipse.core.runtime.CoreException: ERROR
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
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.PartPane.setVisible(PartPane.java:29 9)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
at
bpel.diagram.part.MybpelDiagramEditorUtil.openDiagram(Mybpel DiagramEditorUtil.java:79)
at
bpel.diagram.part.MybpelCreationWizard$1.run(MybpelCreationW izard.java:133)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
at
bpel.diagram.part.MybpelCreationWizard.performFinish(MybpelC reationWizard.java:143)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:616)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at
bpel.diagram.application.DiagramEditorActionBarAdvisor$NewDi agramAction.run(DiagramEditorActionBarAdvisor.java:321)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:256)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
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
bpel.diagram.application.MybpelApplication.run(MybpelApplica tion.java:18)
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.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:572)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:171)
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: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Re: Missing required bundle org.eclipse.ocl.ecore_0.0.0. [message #166721 is a reply to message #166615] Thu, 03 January 2008 08:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Sam,

If you have the OCL Ecore plug-in installed and get this message, then the
problem is likely that it does not resolve because some dependency is
missing or at the wrong version.

How did you install the OCL run-time into your RCP app? Try pressing
the "Validate Plug-ins" button (or some such name) in the "Plug-ins" tab of
your launch configuration for your RCP app, to see which of the
org.eclipse.ocl.ecore's dependencies is missing or at the wrong version.

HTH,

Christian


Sam wrote:

> Hi,
>
> when I try to use OCL as constrain language suggested by Tutorial 2, I
> always get the following error message when I tried to run the generated
> diagram plug-in as an RCP application:
>
> Missing required bundle org.eclipse.ocl.ecore_0.0.0
>
> then I can't run the RCP application.
>
> The ocl plug-in is there. Besides, I can run the examples.mindmap within
> the same eclipse. I don't think it's caused by Eclipse global setup. I
> doubt something wrong with my model. However, I made the exact constrain
> suggested by Tutorial 2. Does anyone happen to know where else I should
> take a look?
>
> thanks and happy new year!
> Sam
Re: Missing required bundle org.eclipse.ocl.ecore_0.0.0. [message #166755 is a reply to message #166721] Thu, 03 January 2008 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the help, Christian! However, I didn't find the "Validate
Plug-ins" button. I use Eclipse 3.3. Also, I don't think it's the OCL
installation/version problem, because I can run mindmap as RCP with OCL
constrain language using the same Eclipse. I also compare the plug-in
dependences between my application with mindmap, they are exactly same!
(except for the model plug-in and edit plug-in) I really have no idea!

Anyway, I reinstall the Eclipse (3.3) with the GMF (2.0.1). (I didn't
manually install OCL runtime because the update site
( http://download.eclipse.org/modeling/gmf/update-site/release s/site.xml)
already includes it). However, the same problem still exist! Now I am
doubting it's a bug of GMF.

Does anyone get any idea to solve this problem? I really need help!
Sam
Re: Missing required bundle org.eclipse.ocl.ecore_0.0.0. [message #166763 is a reply to message #166721] Thu, 03 January 2008 14:53 Go to previous message
Eclipse UserFriend
Thank you very much, Christian! I just found the place you mentioned about
and fix the problem as your suggestion.

Thanks again!
Sam
Previous Topic:Connection perpendicular to the shape
Next Topic:question about multi-hierarchy palette tool
Goto Forum:
  


Current Time: Sun Jun 08 08:36:05 EDT 2025

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

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

Back to the top