I’m new to implementing web services and I’m doing it with jax-rs API using eclipse IDE for java-ee developers 2022. I have written a simple web service that returns a response object including a java object, which has been converted into XML using JAXB, when I run it on tomcat10 a 404 message gets returned. I have heard of some
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