Created attachment 1119066 [details] Screen shot of this issue. Description of problem: Create "jboss-web.xml" from article "https://access.redhat.com/solutions/159753" in JBDS 8.0.0, error shows: ~~~ No grammar constraints (DTD or XML Schema) referenced in the document. ~~~ Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. create "jboss-web.xml" in JDBS 8.0.0 as below: ~~~ <?xml version="1.1" encoding="UTF-8"?> <jboss-web version="7.2" xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.org/j2ee/schema/jboss-web_7_2.xsd"> <context-root>/example</context-root> <overlay>/path/to/contents/</overlay> </jboss-web> ~~~ 2. an "XML Problem" shows "No grammar constraints (DTD or XML Schema) referenced in the document." Actual results: "No grammar constraints (DTD or XML Schema) referenced in the document." Expected results: No errors. Additional info: Customer wants to validate this file, please let us know if it is a bug or not?
https://github.com/jboss-developer/jboss-eap-quickstarts/blob/6.4.x/servlet-security/src/main/webapp/WEB-INF/jboss-web.xml is an jboss-web.xml example in quickstart <?xml version="1.1" encoding="UTF-8"?> <!DOCTYPE jboss-web> <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.org/schema/jbossas http://www.jboss.org/schema/jbossas/jboss-web_7_2.xsd"> ... ... I did not see any error with this inside my IDE. Could you try it in your JBDS?
Thanks Wang, It works at my side as well, I am updating to customer right now. Best Regards, Zhang Xu
Thanks Wang for your reply. I will update on "bz1302604" regarding to "jboss-app.xml" validation questions. Best Regards, Zhang Xu