glassfish
  1. glassfish
  2. GLASSFISH-15018

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

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1_b31
    • Fix Version/s: 4.0
    • Component/s: cdi
    • Labels:
      None

      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.

        Issue Links

          Activity

          Hide
          mwessendorf added a comment -

          Why is this minor?

          Show
          mwessendorf added a comment - Why is this minor?
          Hide
          Mark Struberg added a comment -

          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.

          Show
          Mark Struberg added a comment - 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.
          Hide
          Mark Struberg added a comment -

          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

          Show
          Mark Struberg added a comment - 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
          Hide
          jjsnyder83 added a comment -

          I only fixed this on the trunk.

          Show
          jjsnyder83 added a comment - I only fixed this on the trunk.

            People

            • Assignee:
              Sivakumar Thyagarajan
              Reporter:
              Sivakumar Thyagarajan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: