NullPointer Exception using @Inject
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.