• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ranch Hand
Posts: 56
Eclipse IDE Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!