users@jersey.java.net

Re: [Jersey] The ResourceConfig instance does not contain any root resource classes.

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 21 Apr 2009 16:21:37 +0200

On Apr 21, 2009, at 4:06 PM, Farrukh Najmi wrote:

> Hi Guys,
>
> I have a different issue from the other I posted minutes ago, in a
> separate test project from my main one. I am getting an error from
> jersey code on startup. This error has been discussed in archives
> but I cannot determine what might cause it based on reading the
> archives.

It means that in your web.xml configuration or otherwise, presumably
using package scanning that no root resource classes have been found.
You should see some log output before the error stating that it is
scanning.

Paul.


> Thanks for any suggestions on what to look for:
>
> [WARN] Nested in javax.servlet.ServletException:
> com.sun.jersey.api.container.ContainerException: The ResourceConfig
> instance does not contain any root resource classes.:
> com.sun.jersey.api.container.ContainerException: The ResourceConfig
> instance does not contain any root resource classes.
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application
> .WebApplicationImpl.processRootResources(WebApplicationImpl.java:718)
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application.WebApplicationImpl.initiate(WebApplicationImpl.java:590)
> at
> com
> .sun
> .jersey
> .spi
> .spring.container.servlet.SpringServlet.initiate(SpringServlet.java:
> 78)
> at com.sun.jersey.spi.container.servlet.ServletContainer
> $InternalWebComponent.initiate(ServletContainer.java:242)
> at
> com
> .sun
> .jersey.spi.container.servlet.WebComponent.load(WebComponent.java:449)
> at
> com
> .sun
> .jersey.spi.container.servlet.WebComponent.init(WebComponent.java:169)
> at
> com
> .sun
> .jersey
> .spi.container.servlet.ServletContainer.init(ServletContainer.java:
> 281)
> at
> com
> .sun
> .jersey
> .spi.container.servlet.ServletContainer.init(ServletContainer.java:
> 442)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
> at
> org
> .mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
> 433)
>
> --
> Regards,
> Farrukh
>
> Web: http://www.wellfleetsoftware.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>