• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EntityManager injection not working with Tomcat + OpenEJB

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic