I am building a RESTful Web Service with Java Jersey 2.17. The Client for it. I am developing with ExtJS 5.
My classes on the service
Main.java
By using @Path on method level, you are overriding the defined @Path at class level.
@Path
If you are using Apache Tomcat, use their CORS lib: Tomcat CORS filter. This way it is cleaner and covers all the exceptions as well.