users@glassfish.java.net

Re: What would stop CDI from working?

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Tue, 19 Oct 2010 16:34:48 +0200

put beans.xml into /WEB-INF/, in maven its /src/main/webapp/WEB-INF/



On Tue, Oct 19, 2010 at 4:45 PM, <glassfish_at_javadesktop.org> wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
Dominik Dorn
http://dominikdorn.com
http://twitter.com/domdorn
Tausche Deine Lernunterlagen auf http://www.studyguru.eu !