Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting exception while running restful webservices  RSS feed

 
somashaker goud
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to java restful webservices. When I am trying to access my webservice I am getting "com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes ".

early response will help me to learn more

Below is my code




Below is my DD

 
jeetendra Choudhary
Ranch Hand
Posts: 41
Eclipse IDE Mac OS X Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please provide which version of jersey you are using? Also what is the exact error is it just that what you posted or is there any thing more than that?

BR
 
Knute Snortum
Sheriff
Posts: 4091
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

A note on your post: Please use code tags to surround your code (and even your XML). You'll find people are more willing to help you when the code is clear. I'll do it for you this time.
 
somashaker goud
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Jeetendra : below are the jars which I am using

asm-3.1
jersey-client-1.17
jersey-core-1.17
jersey-server-1.17
jersey-servlet-1.17
jsr311-api-1.1.1
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!