Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-780

Place beans.xml under WEB-INF instead of WEB-INF/classes/META-INF in jsf/permalink example

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.2.Final
    • 1.1.0.Beta2
    • Examples

      As per Section 12.1 of CDI 1.0 specification:
      > • The WEB-INF/classes directory of a war is a bean archive if there is a file named beans.xml in the WEB-INF directory of the war.
      > • A directory in the JVM classpath is a bean archive if it has a file named beans.xml in the META-INF directory.

      However the jsf/permalink sample bundles beans.xml under WEB-INF/classes/META-INF. This may not work in other containers (for instance see http://java.net/jira/browse/GLASSFISH-15009 ). So request to move the file (in weld-core): from
      examples/jsf/permalink/src/main/resources/META-INF/beans.xml
      to
      examples/jsf/permalink/src/main/webapp/WEB-INF/beans.xml

              ajustin@redhat.com Ales Justin
              sivakumart_jira Sivakumar Thyagarajan (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: