[jboss-jira] [JBoss JIRA] Commented: (JBAS-7976) jboss-app.xml is not parsed when no application.xml is provided

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Fri Apr 30 11:10:06 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBAS-7976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12528272#action_12528272 ] 

Alessio Soldano commented on JBAS-7976:
---------------------------------------

jboss-app.xml

<?xml version="1.0" encoding="UTF-8"?>

<jboss-app>
  <security-domain>java:/jaas/JBossWS</security-domain>
</jboss-app>

jboss.xml

<?xml version="1.0" encoding="UTF-8"?>

<jboss xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd" version="3.0">
  <jndi-binding-policy>org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JavaEE6JndiBindingPolicy</jndi-binding-policy>
  <enterprise-beans>
    <ejb>
      <ejb-name>Hello</ejb-name>
      <jndi-name/>
      <home-jndi-name/>
      <port-component>
        <port-component-name>Hello</port-component-name>
        <port-component-uri>/WSEjbBasicAuth/HelloService/Hello</port-component-uri>
        <auth-method>BASIC</auth-method>
      </port-component>
    </ejb>
  </enterprise-beans>
</jboss>

> jboss-app.xml is not parsed when no application.xml is provided
> ---------------------------------------------------------------
>
>                 Key: JBAS-7976
>                 URL: https://jira.jboss.org/jira/browse/JBAS-7976
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Deployers
>    Affects Versions: JBossAS-6.0.0.M2
>            Reporter: Alessio Soldano
>            Assignee: Ales Justin
>             Fix For: 6.0.0.CR1
>
>         Attachments: [JBAS-7976]__fix_JBossAppParsing_deployer_.patch
>
>
> JBossAppParsingDeployers does not actually parse jboss-app.xml when no application.xml descriptor is provided. In that case, the EARContentsDeployer creates a JBoss50AppMetaData instance and attach that to the deployment unit. Later JBossAppParsingDeployer (actually AbstractParsingDeployerWithOutput::createMetaData(DeploymentUnit unit, Set<String> names, String suffix, String key)) finds the metadata are already there and returns without doing the actual parse.
> A consequence of this is that, for instance, a security domain declared in jboss-app.xml is not picked up.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list