Bug 1183165

Summary: (6.4.z) Schema validation errors against jboss-service_7_0.xsd
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: sgilda
Component: unspecified, ServerAssignee: Tomas Hofman <thofman>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Truhlar <jtruhlar>
Severity: unspecified Docs Contact: eap-docs <eap-docs>
Priority: unspecified    
Version: 6.4.0CC: bmaxwell, cdewolf, jtruhlar, mcada, rnetuka, thofman
Target Milestone: CR1   
Target Release: EAP 6.4.15   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-19 08:10:01 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:
Bug Depends On:    
Bug Blocks: 1419353    

Description sgilda 2015-01-16 21:59:43 UTC
Description of problem:



When you import a quickstart containing a jboss-service.xml file, you get the following XML:

cvc-complex-type.2.3: Element 'attribute' cannot have character [children], because the type's content type is element-only.

The quickstart source is located here:
https://github.com/jboss-developer/jboss-eap-quickstarts/tree/6.4.x-develop/helloworld-mbean

I searched the https://github.com/jbossas/jboss-eap/ source code for other jboss-service.xml examples, and found a few with syntax similar to what the quickstarts use:

    sar/src/test/resources/test/serviceXmlDeployment.jar/META-INF/jboss-service.xml
    testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/sar/injection/jboss-service.xml
    testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/sar/jboss-service.xml
    arquillian/container-managed/src/test/resources/sar-example.sar/META-INF/jboss-service.xml
    arquillian/container-remote/src/test/resources/sar-example.sar/META-INF/jboss-service.xml

There seems to be an error in the schema:
http://www.jboss.org/schema/jbossas/jboss-service_7_0.xsd

The quickstart bug is located here: https://bugzilla.redhat.com/show_bug.cgi?id=1178782

This is related to: https://issues.jboss.org/browse/WFLY-4260

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Tomas Hofman 2015-07-17 13:06:13 UTC
PR: https://github.com/jbossas/jboss-eap/pull/2481

Comment 3 sgilda 2015-10-15 17:47:51 UTC
@thofman: 

I can see that WFLY-4260 was merged, but https://github.com/jbossas/jboss-eap/pull/2481 is still open. 

Do you know the status?

Also, will you be able to follow through and see that the corrected schema is published?

Comment 4 Tomas Hofman 2015-10-16 08:35:21 UTC
@sgilda the current situation is such that only BZs with customer cases are considered for CP releases, so I'm not sure if this one can make it. It will be part of EAP7 however.

I will see what I can do about publishing the updated XSD - I presume you want to see it here: http://www.jboss.org/schema/jbossas/jboss-service_7_0.xsd ?

Comment 5 sgilda 2015-10-16 13:01:07 UTC
@thofman, That would be great! Thanks!

Comment 6 Mike McCune 2016-03-28 23:39:55 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 7 Michael Cada 2017-04-26 13:12:16 UTC
Verified with EAP 6.4.15.CP.CR2

Comment 8 Petr Penicka 2017-05-19 08:10:01 UTC
Released on May 18 as part of EAP 6.4.15.