Showing posts with label exception. Show all posts
Showing posts with label exception. Show all posts

Tuesday, September 20, 2011

Guice + Jersey: The ResourceConfig instance does not contain any root resource classes

This happens because Jersey cannot or doesn't know how to find Resource classes. Jersey has to be told the package name in which Resource classes are located. The most obvious way is to add an init-param to the web.xml file. But since I'm using Guice servlets, I wanted to do it in Guice-way.