Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EntityManager injection not working with Tomcat + OpenEJB  RSS feed

Ariel Armas
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!