[jboss-jira] [JBoss JIRA] Created: (JBAS-7953) Incorrect parsing of jboss-service.xml

Pavel Macik (JIRA) jira-events at lists.jboss.org
Tue Apr 20 08:20:49 EDT 2010


Incorrect parsing of jboss-service.xml
--------------------------------------

                 Key: JBAS-7953
                 URL: https://jira.jboss.org/jira/browse/JBAS-7953
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: System service
    Affects Versions: JBossAS-5.1.0.GA
            Reporter: Pavel Macik
            Assignee: Dimitris Andreadis


n the server/<config>/conf/jboss-service.xml file there is mbean's attributes configured as following:

<server>
  <mbean ... name="jboss:service=Naming" ...>
    ...
    <attribute name="BindAddress">
         <value-factory bean="ServiceBindingManager" method="getStringBinding">
            <parameter>jboss:service=Naming</parameter>
            <parameter>Port</parameter>
            <parameter><null/></parameter>
         </value-factory>
    </attribute>
    ...
  </mbean>
  ...
</server>

This exact configuration is fine. But while I change element formatting as follows, the </null> parameter parsing fails.
    ...
    <attribute name="BindAddress">
         <value-factory bean="ServiceBindingManager" method="getStringBinding">
            <parameter>jboss:service=Naming</parameter>
            <parameter>Port</parameter>
            <parameter>
               <null/>
            </parameter>
         </value-factory>
    </attribute>
    ...

It seems the parser that parses this file doesn't ignore white-spaces around the <null/> element and the mbean behaves in different way.

-- 
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