users@glassfish.java.net

What would stop CDI from working?

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Oct 2010 07:45:13 PDT

How I got here: I am trying to convert my JSF 2 + GlassFish 3 project from the Netbeans ANT build to a Maven build. My plan was to create a new project using the Maven archetype for a Web application then move all my source files from the old project to the new one.

So after step 1 I create a simple page with one managed bean, and found out that CDI annotations don't work! If I change the bean to use @javax.faces.bean.ManagedBean, it works -- changing it back to @Model then it never gets instantiated. I get a javax.el.PropertyNotFoundException: where the target is unreachable.

So I have been hunting through the server log and configuration files looking for some clue as to why this is. The old project still works with CDI annotations on the same server. Does anyone know what configuration could affect this?
[Message sent by forum member 'alan94539']

http://forums.java.net/jive/thread.jspa?messageID=485599