users@jersey.java.net

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

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Wed, 19 Nov 2008 19:36:14 +0100

On Wed, Nov 19, 2008 at 01:19:43PM -0500, Davis Ford wrote:
> Problem solved. I know this blog was mentioned in the group already:
>
> http://blogs.sun.com/japod/entry/building_simple_jersey_web_app
>
> I failed to notice the package namespace change. When I changed all
> the packages in web.xml to match the new namespace com.sun.jersey.* it
> works for me.

Great to read that. Do you use the latest snapshot (1.0.1-SNAPSHOT) version?
The blog needs an update!

If you want to start really quickly, you can now use:

mvn -DarchetypeCatalog=http://download.java.net/maven/2 archetype:generate

then select (2) and provide some package and app name.

~Jakub


>
> <exclamation>slap forehead</exclamation>
>
>
> On Wed, Nov 19, 2008 at 1:04 PM, Davis Ford <davisford_at_gmail.com> wrote:
> > I think the problem may be with the servlet-class ?
> >
> > Some examples on the web, including the official sun jersey blog indicate this:
> >
> > <servlet-class>com.sun.ws.rest.spi.container.servlet.ServletContainer</servlet-class>
> >
> > Below I was using this:
> >
> > <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>