Many question have been asked on this topic, but none them seems to resolve my issue.
I trying a sample project with Maven, Spring, Hibernate and JPA with Mysql 5.5. I
Add the geronimo-osgi-locator to add the missing class file. It seems tomcat and other app-servers also ship those class packaged with their appserver.
The javax.validation.Validation.java in line 209 accesses the ProviderLocator, which is imported in line 38.
javax.validation.Validation.java
import org.apache.geronimo.osgi.locator.ProviderLocator;
List serviceProviders = ProviderLocator.getServices(ValidationProvider.class.getName(), this.getClass(), cl);
Maven Dependency:
org.apache.geronimo.specs
geronimo-osgi-locator
1.1