AnsweredAssumed Answered

Issue with Activiti/JPA example when using Activiti 5.20 in TomCat+MySql

Question asked by waltable@activiti on May 23, 2016
Latest reply on Jun 3, 2016 by jbarrez
I have slighted changed activiti-spring-jpa example that is shiped with Activiti 5.20 to use MySql.
It worked fine when using JUnit, however, when I deployed it in TomCat I got an exception

21-May-2016 23:44:05.903 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.activiti.explorer.servlet.WebConfigurer
java.lang.NoClassDefFoundError: javax/persistence/ValidationMode

Steps:

a) I have created a clean TomCat 9.0 installation
b) I created a jar file containing the JPAStringTest java files and configuration files
c) I placed this jar file inside C:\Tomcat 9.0\webapps\activiti-explorer-5.20\WEB-INF\lib
d) I placed the configuration files into C:\Tomcat 9.0\webapps\activiti-explorer-5.20\WEB-INF\classes

I am attaching the exception and configuration files.

My guess is that there is a conflict between the libraries used by the example and the libraries used by activiti 5.20

Outcomes