Looking at docs for older version (Weld 1), I can see following: bq. That means each archive that contains beans must include a file named beans.xml in the META-INF directory of the classpath or WEB-INF directory of the web root (for war archives).
So I am quite surprised that it worked for you before on Tomcat 7 with Weld 1 under {{META-INF}}.
When you are deploying via IDE, what does the deployment look like? It is an actual WAR at all? If it's not, then Weld might be going a different way in discovering {{beans.xml}} perhaps.
Also noteworthy is that you are comparing Weld 1 and Weld 3 in this regards and there are likely some differences in this, especially given that servlet support isn't rooted in CDI spec at all. |
|