Bug 1302581

Summary: [GSS](6.4.z) jboss-web.xml validate problem.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: xuzhan
Component: WebAssignee: Radovan Netuka <rnetuka>
Status: CLOSED WONTFIX QA Contact: Radim Hatlapatka <rhatlapa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: bmaxwell, chaowan, rmaucher, rnetuka, xuzhan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-07 13:04:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screen shot of this issue. none

Description xuzhan 2016-01-28 08:31:10 UTC
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?

Comment 1 Chao Wang 2016-01-29 07:49:48 UTC
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?

Comment 2 xuzhan 2016-01-29 08:34:41 UTC
Thanks Wang,

It works at my side as well, I am updating to customer right now.

Best Regards,
Zhang Xu

Comment 9 xuzhan 2016-02-04 08:34:40 UTC
Thanks Wang for your reply.
I will update on "bz1302604" regarding to "jboss-app.xml" validation questions.

Best Regards,
Zhang Xu