• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

@inject annotation throwing null pointer exception in Restful web service project

 
Ranch Hand
Posts: 56
Netbeans IDE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am using the following tutorial to build a web service project,

http://edwin.baculsoft.com/2012/04/beginning-rest-using-jboss-resteasy/

the above project works fine with the hard coded values that i am passing to the list in the service level,

but when i try to inject my class which will fetch values from the database then it throws null pointer exception, i have already added beans.xml, but still the injected class object is null.

i am not sure where i have gone wrong, any help will be appreciated.

thanks & Regards.
Sachin
 
reply
    Bookmark Topic Watch Topic
  • New Topic