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

beans.xml with comment only fails the deploy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • None
    • None
    • Hide

      I have create a jar file with a /META-INF/beans.xml file in it.

      When the file is empty -> deploy OK
      When the file contains only comments

      <!--
      empty beans xml
      -->
      

      Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001202: Error parsing vfs:/content/service.war/WEB-INF/lib/rudy-1.0-SNAPSHOT.jar/META-INF/beans.xml
      Caused by: org.xml.sax.SAXParseException; Premature end of file."},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"service.war\".PARSE"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}

      With it contains also a valid root element -> deploy OK.

      <!--
      empty beans xml
      -->
      <beans/>
      
      Show
      I have create a jar file with a /META-INF/beans.xml file in it. When the file is empty -> deploy OK When the file contains only comments <!-- empty beans xml --> Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001202 : Error parsing vfs:/content/service.war/WEB-INF/lib/rudy-1.0-SNAPSHOT.jar/META-INF/beans.xml Caused by: org.xml.sax.SAXParseException; Premature end of file."},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"service.war\".PARSE"] ,"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined} With it contains also a valid root element -> deploy OK. <!-- empty beans xml --> <beans/>

    Description

      A beans.xml file which contains only a comments, makes the deploy to fail on WildFly.

      Tested with WildFly 9, 10 and 10.1 + CDI 2 patch.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rdebusscher@gmail.com Rudy De Busscher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: