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

beans.xml schema validation should be configurable to turn if off

    Details

      Description

      • when you use the standard beans.xml schema location in your beans.xml (referencing http://java.sun.com/xml/ns/javaee/beans_1_0.xsd) then WELD tries to look it up on the internet.
      • Currently (10.10.2011) oracle seems to have technical issues with their web servers and returns an html error page when accessing the URL. this leads to a very long startup of our weld applications because of url retrieval timeouts and in most cases even leads to a stopping of the web application

      -> in my opinion there should be configuration option (system property?) to turn schema validation of beans.xml off.
      for production environments this is often not neccessary and maybe even will result in a speedup.

        Gliffy Diagrams

          Activity

          Hide
          alesj Ales Justin added a comment -

          -Dorg.jboss.weld.xml.disableValidating=true should disable xml parsing validation.

          disableValidating = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
          public Boolean run()

          { return Boolean.getBoolean("org.jboss.weld.xml.disableValidating"); }

          });

          Show
          alesj Ales Justin added a comment - -Dorg.jboss.weld.xml.disableValidating=true should disable xml parsing validation. disableValidating = AccessController.doPrivileged(new PrivilegedAction<Boolean>() { public Boolean run() { return Boolean.getBoolean("org.jboss.weld.xml.disableValidating"); } });

            People

            • Assignee:
              alesj Ales Justin
              Reporter:
              mhartl Manuel Hartl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development