As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<repositories> <repository> <id>Alfresco Maven Repository</id> <url>https://maven.alfresco.com/nexus/content/groups/public/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-engine</artifactId> <version>5.12</version></dependency></dependencies>
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 */ @SuppressWarnings("serial") public class TestingvaadinUI extends UI { @Override protected void init(VaadinRequest request) { ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine(); final VerticalLayout layout = new VerticalLayout(); layout.setMargin(true); setContent(layout); Button button = new Button("Hello"); button.addClickListener(new Button.ClickListener() { public void buttonClick(ClickEvent event) { layout.addComponent(new Label("Thank you for clicking")); } }); layout.addComponent(button); } }
java.lang.NoClassDefFoundError: org/activiti/engine/ProcessEngines
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:….I am getting the following error:java.lang.NoClassDefFoundError: org/activiti/engine/ProcessEnginesthe 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?
Vaadin 7 changes the basic architecture of Vaadin applications significantly, more than it did in the previous major revisions.
Thanks udoderk:What I finally did was create a Vaadin project with the wizard and a Activiti project with a wizard. I thin wet up the dependencies for Activiti in the Vaadin project using Ivy.