EntityManager injection not working with Tomcat + OpenEJB
posted 3 years ago
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:
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.