AnsweredAssumed Answered

java.lang.NoClassDefFoundError when starting process engine

Question asked by ericsnyder on Apr 1, 2013
Latest reply on Apr 3, 2013 by udoderk
I am trying to get Activiti and Vaadin working together so I can "play" with the two with some simple code and learn. I have added the following dependencies to Maven:

    <id>Alfresco Maven Repository</id>

My code looks like this:
package com.example.testingvaadin;

import org.activiti.engine.*;

import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

* Main UI class
public class TestingvaadinUI extends UI {

   protected void init(VaadinRequest request) {
      ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
      final VerticalLayout layout = new VerticalLayout();

      Button button = new Button("Hello");
      button.addClickListener(new Button.ClickListener() {
         public void buttonClick(ClickEvent event) {
            layout.addComponent(new Label("Thank you for clicking"));


I am getting the following error:
java.lang.NoClassDefFoundError: org/activiti/engine/ProcessEngines

the jars activiti-engine-5.12.jar and a couple of bpmn jars are in the Maven Dependencies path.

This is probably a java beginner issue but what is wrong here?