This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1) I know this topic was here before, but I couldnt find solution working for me. I have netbeans project using jsf+facelets in web application. And then ejb module.
My problem is when I call ejb from managed (backing) bean, I recieve NullPointerException. It seems that container cannot instantialize bean.
2) During reading config faces-config I got exception, that document is invalid and grammar is not found. Googled it and the problem could be using JSF1.1 grammar components in JSF1.2? Is it possible? Or where the problem could be? I have installed NB 6.7.1 with facelets plugin installed. (project works with this exception btw, but.. :-) )
Code and exceptions:
For invoking ejb method i use classic @EJB annotation.
Thanks for all answers
Joined: Mar 19, 2009
Tried reinstalling GlassFish, Netbeans btw.
Still same problem. Mainly with EJB injection, still getting NullPointerException. Here is full stack trace after invoking simple method haha
I found out that, if I create now pure JSF project (with default ViewHandler) and so on, calling ejb is ok and injection works. But if I create project and also add Facelets as framework, I', getting NullPointerException. Im using netbeans 6.7.1 and its plugin for Facelets support.