I created my project as "maven project" and I use JSF with beans (defined in faces-config.xml). Right now I'm using my beans to access my DAO object which communicate with DB. I want to add EJBs in my project but I am kind of stuck. In my POJOs i'm using JPA annotations.
I tried to create persistence.xml file where i basically copied my hibernate.cfg file: (see attached url)
then i created class UserSessionBean which should represent EJB for user and annotated it with @LocalBean @Stateless: (see attached url)
and add it to my backing bean with annotation @EJB (see attached url)
examples: http://pastebin.com/kZm6m8n8
when I try to run my projects I get these errors: http://pastebin.com/FTQb98Hh
Can somebody tell me where is the problem?
Thank you!