Please note that for this case "MyResourceConfig" is useless as there's no specific code added to this class.
You can run your code without it, just replace its full path in the file "web.xml" by "org.glassfish.jersey.server.ResourceConfig".
REST service: MyEntityRestAPI.java
Java entity: MyEntity.java
Build and test the rest application
Apache Maven: mvn clean package
Apache Tomcat: deploy the war file "mtitek-rest-sample-1.0.0-SNAPSHOT.war" in the folder "${TOMCAT_ROOT}/webapps/"