aspose file tools*
The moose likes Tomcat and the fly likes EntityManager injection not working with Tomcat + OpenEJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "EntityManager injection not working with Tomcat + OpenEJB" Watch "EntityManager injection not working with Tomcat + OpenEJB" New topic
Author

EntityManager injection not working with Tomcat + OpenEJB

Ariel Armas
Greenhorn

Joined: Aug 20, 2012
Posts: 1
Hello EveryOne!
I’m trying to use OpenEJB in my web project, but I could not make it work after a week. I’m searching in examples, blogs, googling… I'm a new developer in this web world and I’m a bit frustrated .
I’m using NetBeans IDE 7.1, Apache Tomcat 6.0.26, OpenEJB 3.0 and JSF 2.0. First I insert openejb.war into folder Apache Tomcat 6.0.26\webapps. Looks like the tomcat works ok because after running the project tomcat logs:

And this my code:
GenderManager

GenderController

persistence.xml
openejb.xml
I did not add extra code and when the line gm.getAllGender(); in GenderController tries to execute, I get the following exception:

After this long explication (really long)... please anybody can help me!?!?!? Because I'm in a dead point for this.

Thanks in advance
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EntityManager injection not working with Tomcat + OpenEJB