This error occurrs for me when I try to use the package("com.example") method in my JerseyConfig class. I just added the classes individually using register(Example.class) method (which is a chore) and it does not throw this error anymore.