users@glassfish.java.net

Re: Glassfish + Open Web Beans

From: <forums_at_java.net>
Date: Tue, 9 Aug 2011 20:34:04 -0500 (CDT)

thanks for your reply oversteer,

I've added the five OWB dependencies(1.1.0) and the listener to my project
and got an exception:

Caused by: java.lang.NoClassDefFoundError:
org/scannotation/archiveiterator/Filter

so i added the filter dependency
(http://www.jarvana.com/jarvana/view/org/apache/geronimo/bundles/scannotation/1.0.2_1/scannotation-1.0.2_1.jar!/org/scannotation/archiveiterator/Filter.class?classDetails=ok
and now i can deploy my app:

but now my EJB is not injected and i got NullpointerException when i try to
use it:

    @EJB
    private GenericHibernateDao<T, K> genericHibernateDao;

 

its a Local EJB 3.1 which has an injected EntityManager with
PersistenceContext type Extended

My stack is GF 3.1(3.1.1),Mojarra 2.1.3 (FCS b01), CODI 1.0.0-SNAPSHOT,
primefaces 3.0M2 and Hibernate 3.5.1

here is my startup log: http://pastebin.com/index/KN2LzHuR

Thanks for your help.


--
[Message sent by forum member 'rmpestano']
View Post: http://forums.java.net/node/830181