cancel
Showing results for 
Search instead for 
Did you mean: 

activiti diagram editor can not work

yhxjldx
Champ in-the-making
Champ in-the-making
I have installed Activiti BPMN 2.0 designer by eclipes hellp->install new software. but activiti diagram editor can not work.
XML info :
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
targetNamespace="http://www.activiti.org/bpmn2.0">
<process id="helloWorld">
<startEvent id="start" />
<sequenceFlow id="flow1" sourceRef="start" targetRef="script" />
<scriptTask id="script" name="HelloWorld" scriptFormat="groovy">
<script>System.out.println("Hello world")</script>
</scriptTask>
<sequenceFlow id="flow2" sourceRef="script" targetRef="theEnd" />
<endEvent id="theEnd" />
</process>
</definitions>
some error info like this:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.omg.org/spec/BPMN/20100524/MODEL' not found. (platform:/resource/testActivitinew/src/main/resources/diagrams/NewFile.xml, 4, 51)
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Hi,

Can you explain a bit more about the problem you are facing.
Can you use the diagram editor?
When do you get the error message you mentioned?

Best regards,

mhp
Champ in-the-making
Champ in-the-making
Go to Window –> Preferences –> XML –> XML Catalog –> Add…, and select the XML Schema from the file system in the folder ${activiti.home}/docs/xsd/BPMN20.xsd. Repeat this step with ${activiti.home}/docs/xsd/activiti-bpmn-extensions-5.4.xsd.


If you include above two files BPMN20.xsd , activiti-bpmn-extensions-5.4.xsd then you can able to draw graphical notations.

yhxjldx
Champ in-the-making
Champ in-the-making
Hi,

Can you explain a bit more about the problem you are facing.
Can you use the diagram editor?
When do you get the error message you mentioned?

Best regards,

I want to open XML by activiti diagram editor.some error info like this:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.omg.org/spec/BPMN/20100524/MODEL' not found. (platform:/resource/testActivitinew/src/main/resources/diagrams/NewFile.xml, 4, 51)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:216)
at org.eclipse.graphiti.ui.editor.DiagramEditorInput.getEObject(DiagramEditorInput.java:675)
at org.eclipse.graphiti.ui.editor.DiagramEditorInput.setEditorEditingDomain(DiagramEditorInput.java:570)
at org.eclipse.graphiti.ui.editor.DiagramEditorInput.<init>(DiagramEditorInput.java:271)
at org.eclipse.graphiti.ui.editor.DiagramEditorFactory.createEditorInput(DiagramEditorFactory.java:89)
at org.eclipse.graphiti.ui.internal.editor.DiagramEditorInternal.init(DiagramEditorInternal.java:1082)
at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.init(ActivitiDiagramEditor.java:51)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent(OpenWithMenu.java:215)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

yhxjldx
Champ in-the-making
Champ in-the-making
Go to Window –> Preferences –> XML –> XML Catalog –> Add…, and select the XML Schema from the file system in the folder ${activiti.home}/docs/xsd/BPMN20.xsd. Repeat this step with ${activiti.home}/docs/xsd/activiti-bpmn-extensions-5.4.xsd.


If you include above two files BPMN20.xsd , activiti-bpmn-extensions-5.4.xsd then you can able to draw graphical notations.

Thanks for your answer.
I have done like that. but activiti diagram editor can not still work. I can not loginto  http://www.omg.org/spec/BPMN/20100524/MODEL by IE. Is this normal?

http://activiti.org/bpmn detail info:
Entry element:  URI
Location:   F:\activiti-5.8\docs\xsd\BPMN20.xsd
URI:       file:///F:/activiti-5.8/docs/xsd/BPMN20.xsd
Key type:   Namespace name
Key:    http://www.omg.org/spec/BPMN/20100524/MODEL

http://www.omg.org/spec/BPMN/20100524/MODEL detail info:
Entry element:  URI
Location:   F:\activiti-5.8\docs\xsd\activiti-bpmn-extensions-5.4.xsd
URI:       file:///F:/activiti-5.8/docs/xsd/activiti-bpmn-extensions-5.4.xsd
Key type:   Namespace name
Key:    http://activiti.org/bpmn

yhxjldx
Champ in-the-making
Champ in-the-making
Go to Window –> Preferences –> XML –> XML Catalog –> Add…, and select the XML Schema from the file system in the folder ${activiti.home}/docs/xsd/BPMN20.xsd. Repeat this step with ${activiti.home}/docs/xsd/activiti-bpmn-extensions-5.4.xsd.


If you include above two files BPMN20.xsd , activiti-bpmn-extensions-5.4.xsd then you can able to draw graphical notations.

ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

java -version
java version "1.6.0_20-rev"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_20-rev-b05)
Java HotSpot(TM) Client VM (build 16.3-b04, mixed mode, sharing)

eclipes eclipse-jee-indigo-SR1-win32

activiti activiti-5.8

os windown 7 32-bit