cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to compile/run Activiti Designer Plugin

sjmo
Champ in-the-making
Champ in-the-making
After spending a lot of time I'm not able to get the Activiti Designer plugin compilable.

I preceed according the description (http://docs.codehaus.org/display/ACT/Activiti+Designer+Developer+Guide).

Therefore I made a new Installation from scratch
- Indigo RCP/RAP
- Eclipse Modelling Framework (EMF) SDK
- Eclipse Graphiti SDK 0.9.1
- Subversive

After checking out the trunk (revision 223) within eclipse from https://github.com/Activiti/Activiti-Designer I switched over to the commandline and did execute
mvn clean eclipse:clean
and
mvn eclipse:eclipse

both commands was successful.

After this I switched back to the eclipse and made a refresh.

Up to this point everything seems to be ok.

But now I have a strange behavior:

1. According the description I should be able to perform the clean command. But this option is disabled (independant which node I select).
2. To run Designer, right click the org.activiti.designer.eclipse project and choose Run as > Eclipse application –> On my Installation I have only maven goals listed.
3. If I select the parent project (org.activiti.designer.parent) and try to run the target maven clean install the following output appears:

Reactor Summary:
[INFO]
[INFO] Activiti Designer - Parent project ……………. SUCCESS [0.093s]
[INFO] Activiti Designer - Libs …………………….. SUCCESS [0.343s]
[INFO] Activiti Designer - Integration ………………. SUCCESS [1.031s]
[INFO] Activiti Designer - Util …………………….. FAILURE [0.390s]
[INFO] Activiti Designer - Eclipse ………………….. SKIPPED
[INFO] Activiti Designer - GUI ……………………… SKIPPED
[INFO] Activiti Designer - Help …………………….. SKIPPED
[INFO] Activiti Designer - Validate BPMN 2.0 …………. SKIPPED
[INFO] Activiti Designer - Feature ………………….. SKIPPED
[INFO] Activiti Designer - Update site ………………. SKIPPED
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 32.980s
[INFO] Finished at: Tue Jan 15 11:14:13 CET 2013
[INFO] Final Memory: 68M/163M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.16.0:compile (default-compile) on project org.activiti.designer.util: Compilation failure: Compilation failure:
[ERROR] W:\activiti-designer-plugin\workspace\Activiti-Designer\org.activiti.designer.util\src\main\java\org\activiti\designer\util\workspace\BpmnProcessParser.java:[23,0]
[ERROR] import org.activiti.bpmn.model.Process;
…….

I know that this classes are in the enclosed activiti-bpmn-converter-5.12-SNAPSHOT.jar and activiti-bpmn-model-5.12-SNAPSHOT.jar, both located in the project
org.activiti.designer.libs

I also tried to run maven from the commandline -> same error.

Question: Do I need to put this jar to a special location (I tried to add the jars to the different projects but there is no way to add them as external jar or so.

To be sure, that I made something wrong, I asked my co-worker to try to get this project compilable (but he has the same problem).

I would be happy if someone could help me.

Many thanks, sjmo
11 REPLIES 11

peilers
Champ in-the-making
Champ in-the-making
I am having the same problem as well ("org.activiti.designer.eclipse" unable to instantiate class "org.activiti.designer.eclipse.editor.ActivitiDiagramEditor" when user attempts to create an Activiti diagram).

I am using Eclipse Luna and the Activiti source downloaded just today (12/2/14) from Github. It appears that anything in the "org.activiti.bpmn" package cannot be resolved but I am unclear as to how to resolve this. If any of the previous posters have figured out how to fix this please advise. Much appreciated. (The .classpath file is attached her for the org.activiti.designer.libs project.)

peilers
Champ in-the-making
Champ in-the-making
For the benefit of others, this was resolved by essentially following Tijs' step #10 above–navigated to org.activiti.designer.libs project. Opened the manifest.mf file. Added the following (3) jar files to the Classpath list in the 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
After this was done <a second time> then the creation of an Activiti Diagram succeeded without errors.