Details
-
Type:
Enhancement
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: 1.1.2.Final
-
Fix Version/s: 1.1.3.Final
-
Component/s: Bootstrap and Metamodel API
-
Labels:None
-
Environment:Windows7 / weld 1.1.2 / tomcat6
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
- All
- Comments
- Work Log
- History
- Activity
- Links Hierarchy
-Dorg.jboss.weld.xml.disableValidating=true should disable xml parsing validation.
disableValidating = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
{ return Boolean.getBoolean("org.jboss.weld.xml.disableValidating"); }public Boolean run()
});