[jboss-jira] [JBoss JIRA] (AS7-6452) jboss-ejb3.xml is not correctly validated

jaikiran pai (JIRA) jira-events at lists.jboss.org
Fri Feb 15 02:05:56 EST 2013


    [ https://issues.jboss.org/browse/AS7-6452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754323#comment-12754323 ] 

jaikiran pai commented on AS7-6452:
-----------------------------------

I don't get what the issue is. The jboss-ejb3.xml will contain the <jboss> element whose namespace is http://www.jboss.com/xml/ns/javaee. The xml you pasted uses that as the default namespace:

{quote}
xmlns="http://www.jboss.com/xml/ns/javaee"
{quote}
So jboss being the root element is right. What error did you run into?

                
> 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