AnsweredAssumed Answered

Error Saving Activiti Diagram -- Could not initialize class org.activiti.bpmn.converter.BpmnXMLConverter

Question asked by peilers on Dec 3, 2014
I have followed the steps at the bottom of this post to build the most recent Activiti Designer from the Github Master branch. The plug-in successfully executes the following:
1) Open Perspective/Activiti
2) New/Other/Activiti Project
3) New/Other/Activiti Diagram
…but when attempting to Save the newly created Activiti Diagram (containing a start event, user task, service task and stop event) the following error is presented:

Save Failed
Could not initialize class org.activiti.bpmn.converter.BpmnXMLConverter

Would appreciate guidance on how to resolve this…thanks in advance.

Build Steps
1. Start with clean workspace with EMF and Graphiti plug-ins installed and up to date.

2. Import the Activiti Designer source into the workspace via:
File/Import/Git/Projects from Git. Select "Clone URI" and provide: https://github.com/Activiti/Activiti-Designer.git as the URI.
Select the "master" branch. Select "Clone submodules".
Selected "Import as general project"

3. View the pom.xml in the parent Maven project –> it references Eclipse Juno version
Updated references from Juno to Luna

4. Updated build.properties for the manifest.mf (in org.activiti.designer.libs) to remove the ".,/" entry

5. In the Runtime tab for manifest file (in org.activiti.designer.libs) Added (3) jar files as follows:
org.activiti.designer.libs/activiti-bpmn-converter-5.16.2-SNAPSHOT.jar
org.activiti.designer.libs/activiti-bpmn-layout-5.16.2-SNAPSHOT.jar
org.activiti.designer.libs/activiti-bpmn-model-5.16.2-SNAPSHOT.jar

6. Executed >mvn clean eclipse:clean –> BUILD SUCCESS

7. Executed >mvn eclipse:eclipse –> BUILD SUCCESS

8. File/Import/Existing Projects into Workspace (Search for nested projects from local repository into workspace)–select each of the projects one-by-one so that they create top level projects. NOTE: Import the libs project first.

9. File/Import/Maven/Existing Maven Project

10. Repeat #5 above (unknown why this is required)–add jar files again to org.activiti.designer.libs in the Classpath pane of the manifest.mf Runtime tab:
org.activiti.designer.libs/activiti-bpmn-converter-5.16.2-SNAPSHOT.jar
org.activiti.designer.libs/activiti-bpmn-layout-5.16.2-SNAPSHOT.jar
org.activiti.designer.libs/activiti-bpmn-model-5.16.2-SNAPSHOT.jar

11. Selected all top level Activiti Designer projects and performed File/Refresh

12. Selected Project/Clean for all projects (at this point there are no project level errors…progress)

Outcomes