The pom of the activiti-spring example indicates
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<scope>provided</scope>
</dependency>
the local Maven repository download two jars when generating activiti
javax.persistance.1.0 & javax.persistance.1.0.2
javax/persistence/ValidationMode is not available in any of these jars
Checking in the internet, I saw the following explanation:
This error occurs because JPA 1 API is brought in, but method getValidationMode exists only since JPA 2.
However, I do not know what jar would be compatible with activiti.
What puzzle me is that I am just using activiti spring example with is bundle with the distribution. It works fine when using JUnit test, but fails when deployed in TomCat inside activiti-explorer.war
Therefore, the activiti-explorer.war may be incomplete (missing a required jar, but which one should be added?)