[jboss-jira] [JBoss JIRA] (AS7-6452) jboss-ejb3.xml is not correctly validated
Josef Cacek (JIRA)
jira-events at lists.jboss.org
Fri Feb 22 04:56:57 EST 2013
[ https://issues.jboss.org/browse/AS7-6452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755939#comment-12755939 ]
Josef Cacek commented on AS7-6452:
----------------------------------
BZ created: https://bugzilla.redhat.com/show_bug.cgi?id=914082
> 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