I struggled getting mine to work as well, but I was advised to either add beans.xml to WEB-INF or META-INF folder.
I learned that in NetBeans, for META-INF, you create a new folder in the same folder that contain all your java code. Netbeans does not like META-INF/beans.xml, you get squiggly lines etc when trying to code, so the full path of mine is as follows: C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml Empty beans.xml would be like the following: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> </beans> On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <[email protected]> wrote: > Now CDI is item number one in the feature list of TomEE Web Profile and > has been since version 1.0 if I remember correctly. I just can't get it to > work...
