Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1193948

Summary: jboss-ejb-container-interceptors_1_0.xsd is invalid
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: sgilda
Component: EJBAssignee: Weston M. Price <wprice>
Status: CLOSED WONTFIX QA Contact: Jan Martiska <jmartisk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: cdewolf, darran.lofthouse, wprice
Target Milestone: ---   
Target Release: EAP 6.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-30 13:39:21 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:

Description sgilda 2015-02-18 15:38:40 UTC
Description of problem:

Importing the ejb-security-interceptors quickstart into JBDS results in the following jboss-ejb3.xml validation errors.

cvc-complex-type.2.4.a: Invalid content was found starting with element 'jee:interceptor-binding'. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":ejb-name}' is expected.	
jboss-ejb3.xml	
/jboss-ejb-security-interceptors/src/main/resources/META-INF	line 31	
XML Problem

Carlo said this is a problem with the jboss-ejb-container-interceptors_1_0.xsd schema. The schema has been uploaded to: http://www.jboss.org/j2ee/schema/jboss-ejb-container-interceptors_1_0.xsd

See quickstart Bug 1193543.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Carlo de Wolf 2015-02-19 08:25:17 UTC
This is a flaw in the design of container-interceptors.

The xml as originally coded at https://github.com/jbossas/jboss-eap/commit/3ad941690b6c7f3c256309ea0edd3eeea68d7af2#diff-15c3e2a4b5220bb357311f6a3c6a6439R23 is wrong.

It mixes up interceptors and interceptor-bindings badly. See https://github.com/jbossas/jboss-eap/blob/b7fa0674f42af11e9a3af5b9c04027492166dc49/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/interceptor/inject/ejb-jar.xml#L7 for a pristine spec example.

So both xsd and implementation must be redone.

Comment 2 David M. Lloyd 2015-02-19 11:53:12 UTC
In a backwards-compatible manner of course...

Comment 3 sgilda 2015-02-19 12:56:41 UTC
Adding Darran, the quickstart owner, so he is aware of this issue.

This will also impact the documentation.

Comment 5 sgilda 2015-02-19 14:59:19 UTC
The quickstart issue in the description above is wrong. It should be Bug 1178748.

Comment 6 sgilda 2015-02-19 15:04:00 UTC
Created JIRA: https://issues.jboss.org/browse/WFLY-4365