File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
 
Consider Paul's rocket mass heater.
 
subject: EntityManager is null!! what can be the problem?
 
Similar Threads
Members are not poppulated?
JPA criteriaBuilder method not found
using Hibernate with Session Bean
Can a class be mapped to a table and be Embeddable at the same time?
problem persisting an object with collections and manytomany relationship