AnsweredAssumed Answered

Spring roo and Activiti

Question asked by pacozf on Dec 22, 2015
Latest reply on Dec 23, 2015 by pacozf
Hi,

I trying to add activiti process Engine to my Spring roo project. I add the maven activiti dependences to my pom.xml


                <dependency>
         <groupId>org.activiti</groupId>
         <artifactId>activiti-engine</artifactId>
         <version>5.19.0.1</version>
      </dependency>
      <dependency>
         <groupId>org.activiti</groupId>
         <artifactId>activiti-spring</artifactId>
         <version>5.19.0.1</version>
      </dependency>



If I use spring version = 3.2.8.RELEASE in my spring dependences, I get this error at compiler time:


SEVERE: StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/springframework/core/OrderComparator$OrderSourceProvider


Then I can resolve it changing the spring-core version to 4.1.1.RELEASE


<dependency>
         <groupId>org.springframework</groupId>
         <artifactId>spring-core</artifactId>
         <version>4.1.1.RELEASE</version>
         <exclusions>
            <exclusion>
               <groupId>commons-logging</groupId>
               <artifactId>commons-logging</artifactId>
            </exclusion>
         </exclusions>
      </dependency>


This change let me compile and generate the war file, but after deploy it in tomcat y get this error when I render a jsp page with 'form:select' tag:


java.lang.ClassNotFoundException: org.springframework.core.enums.LabeledEnum


I think this error is due spring 4 have not this class, but If I put spring 3 I get the first error ' SEVERE: StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/springframework/core/OrderComparator$OrderSourceProvider'.

How can I integrate Spring roo and activiti in the same project.

Thanks.

Outcomes