Skip to main content

NullPointer Exception using @Inject

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-01-02

Hi All,
I am getting Null pointer exception when I use @Inject annotation to inject a service class defined in jar into my fa?ade defined war .
I am using glassfish-4.0-b72 , primefaces 3.4 and JSF 2.2 defined in glassfish. Mojarra loads without any issues and so does primefaces.
When I use @Inject the injected bean does not get instantiated . Please let me know if I am missing something
I have beans.xml included in my .war and .jar as well.


glassfish_cdi_error.txt8.48 KB