Issue Details (XML | Word | Printable)

Key: GLASSFISH-15018
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Sivakumar Thyagarajan
Reporter: Sivakumar Thyagarajan
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

Support beans.xml packaging under WEB-INF/classes/META-INF

Created: 07/Dec/10 04:28 AM   Updated: 07/Oct/12 05:03 PM   Resolved: 07/Oct/12 04:55 PM
Component/s: cdi
Affects Version/s: 3.1_b31
Fix Version/s: 4.0

Time Tracking:
Not Specified

Issue Links:

Tags: cdi
Participants: jjsnyder83, Mark Struberg, mwessendorf and Sivakumar Thyagarajan

 Description  « Hide

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 and for more context on this RFE.

mwessendorf added a comment - 11/Feb/11 12:35 AM

Why is this minor?

Mark Struberg added a comment - 11/Feb/11 12:48 AM

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.

Mark Struberg added a comment - 11/Feb/11 02:46 AM

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

jjsnyder83 added a comment - 07/Oct/12 05:03 PM

I only fixed this on the trunk.