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

Warning about invalid beans.xml

XMLWordPrintable

      When deploying a sample web application, I see the following warning in the server log:

      [2013-04-10T20:31:07.463+0200] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1365618667463] [levelValue: 900] [[
      WELD-001208 Error when validating jar:file:/home/hwellmann/gf/glassfish-4.0-b82/glassfish/domains/domain1/applications/pax-exam-sample7-web/WEB-INF/lib/pax-exam-sample7-service-3.1.0-SNAPSHOT.jar!/META-INF/beans.xml@18 against xsd. cvc-elt.1: Deklaration des Elements "beans" kann nicht gefunden werden.]]

      The message is caused by a beans.xml file containing nothing but <beans/>. The message disappears when you add the correct namespace definition.

      When starting GlassFish with

      LANG=de_DE.UTF-8 bin/asadmin start-domain --verbose

      the error message appears. Using any of LANG=de_DE (without UTF-8) or LANG=C, LANG=en, LANG=en_US, LANG=en_US.UTF-8 the message does not appear.

      Please see https://java.net/jira/browse/GLASSFISH-20267 for full details.

            mkouba@redhat.com Martin Kouba
            jjsnyder Joseph Snyder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: