[GLASSFISH-15018] Support beans.xml packaging under WEB-INF/classes/META-INF Created: 07/Dec/10  Updated: 07/Oct/12  Resolved: 07/Oct/12

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 3.1_b31
Fix Version/s: 4.0

Type: New Feature Priority: Minor
Reporter: Sivakumar Thyagarajan Assignee: Sivakumar Thyagarajan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by GLASSFISH-15935 Weld in Glassfish does not find @Name... Resolved
Tags: cdi

 Description   

Some CDI-enabled web archives (such as jsf/permalink sample in Weld) have beans.xml under WEB-INF/classes/META-INF. Though the specification does not require support for this scenario, this seems to be a common scenario and it would be nice to add support for this scenario in GlassFish as an ease of use feature.

See https://jira.jboss.org/browse/WELD-780 and http://java.net/jira/browse/GLASSFISH-15009 for more context on this RFE.



 Comments   
Comment by mwessendorf [ 11/Feb/11 ]

Why is this minor?

Comment by Mark Struberg [ 11/Feb/11 ]

folks, please read the spec, this is CLEARLY allowed and valid!

Section 12.1 Bean Archives
"A directory in the JVM classpath is a bean archive if it has a file named beans.xml in the META-INF directory."

so what more do you need? This is simply just broken.

Comment by Mark Struberg [ 11/Feb/11 ]

sorry for my previous comment sounding a bit gruntly, but I nearly daily get rants that CODI is broken and it most of the time turns out that glassfish or JbossAS are to blame

Comment by jjsnyder83 [ 07/Oct/12 ]

I only fixed this on the trunk.

Generated at Mon Apr 27 17:05:58 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.