• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EntityManager is null!! what can be the problem?

 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
EntityManager is null, tried everything but still not able to detect problem. Please help me??

index.xhtml



Users.java My Entity bean



UsersFacade.java my Stateless session bean



here is stack trace :



this is my persistence.xml


Thanks in advance
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do any errors occur during deployment?

How are you accessing the SessionBean? It seems you may be accessing it as a JavaBean not as an SessionBean, so not getting injection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic