[jboss-jira] [JBoss JIRA] (AS7-6452) jboss-ejb3.xml is not correctly validated
Josef Cacek (JIRA)
jira-events at lists.jboss.org
Tue Feb 5 08:49:52 EST 2013
Josef Cacek created AS7-6452:
--------------------------------
Summary: jboss-ejb3.xml is not correctly validated
Key: AS7-6452
URL: https://issues.jboss.org/browse/AS7-6452
Project: Application Server 7
Issue Type: Bug
Components: EJB
Reporter: Josef Cacek
Assignee: jaikiran pai
When the root element in the {{jboss-ejb3.xml}} is not correct, the parser doesn't fail. The parser should contain a better validation.
For instance ejb-security-interceptors quickstart wrongly uses:
{code:xml}
<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:jee="http://java.sun.com/xml/ns/javaee"
xmlns:ci ="urn:container-interceptors:1.0">
<jee:assembly-descriptor>
<ci:container-interceptors>
<!-- Class level container-interceptor which will be applicable for all business method
invocations on the bean -->
<jee:interceptor-binding>
<ejb-name>IntermediateEJB</ejb-name>
<interceptor-class>org.jboss.as.quickstarts.ejb_security_interceptors.ServerSecurityInterceptor</interceptor-class>
</jee:interceptor-binding>
<jee:interceptor-binding>
<ejb-name>SecuredEJB</ejb-name>
<interceptor-class>org.jboss.as.quickstarts.ejb_security_interceptors.ServerSecurityInterceptor</interceptor-class>
</jee:interceptor-binding>
</ci:container-interceptors>
</jee:assembly-descriptor>
</jboss>
{code}
And this works. But it works only untill the user wants to specify a security domain for instance. Then it fails, because the root element should not be {{<jboss>}} but {{<ejb-jar>}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list