Reputation: 1588
I'm trying to develop a simple login form with JSF, Glassfish, OSGI and CDI. This is the source code: http://www.2shared.com/file/45Jdr1iu/NetBeansProjects.html The problem is that when I add beans.xml file into WEB-INF directory I get this error stack into Glassfish log file.
It's very important to fix this CDI issue because I get NPE when I try to call method from the OSGI bundle. When I try to open the page from the web browser I get empty page.
Would you help me to find the problem so I can fix it, please?
Best wishes, Peter
Upvotes: 0
Views: 175
Reputation: 5378
You have a few exceptions, one of them is a ClassNotFoundException, probably has something to do with the scopes and visibility in your OSGI bundle (I'm not an OSGI expert, FYI). I also saw a NonSerializableException towards the bottom too. Meaning you have a bean that is in a scope that must be serializable (SessionScoped or ConversationScoped most likely) which has a member that isn't serializable or transient.
Upvotes: 1