Skip to content
Advertisement

Tag: tomcat10

Getting error : org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory

I have a project Webservice with Hibernate in Eclipse (Tomcat v10.0 et java JDK 8). When I run, I got this error: ” Servlet.service() for servlet [Jersey Web Application] in context with path [/musichall] threw exception [org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory] with root cause java.lang.ClassNotFoundException: javax.validation.ValidatorFactory” Below is my pom.xml Here is my file “persistence.xml” Here is the “MusicienService” class Here is

Advertisement