aspose file tools*
The moose likes Object Relational Mapping and the fly likes EntityManager is null!! what can be the problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "EntityManager is null!! what can be the problem?" Watch "EntityManager is null!! what can be the problem?" New topic
Author

EntityManager is null!! what can be the problem?

Nitesh Panchal
Ranch Hand

Joined: Dec 23, 2008
Posts: 48
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

Joined: Oct 01, 2007
Posts: 553
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.


TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EntityManager is null!! what can be the problem?