The ResourceConfig instance does not contain any root resource classes The ResourceConfig instance does not contain any root resource classes java java

The ResourceConfig instance does not contain any root resource classes


Have you tried adding

<init-param>  <param-name>com.sun.jersey.config.property.packages</param-name>  <param-value>my.package.name</param-value></init-param>

to your SpringServlet definition? Obviously replace my.package.name with the package that AdminUiResource is in and make sure it is in the classpath.


I am new to Jersey - I had the same issue, But when I removed the "/" and just used the @path("admin") it worked.

@Path("admin")public class AdminUiResource { ... }


YOU NEED TO ADD YOUR PACKAGE NAME AT

<init-param>  <param-name>com.sun.jersey.config.property.packages</param-name>  <param-value>your.package.name</param-value></init-param>

ALSO ONE SILLY THING I HAVE NOTICED,
I Need to refresh my project after MAVEN BUILD else it show me same error.
Please comment If you know reason why we need to refresh project?