Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7953

Incorrect parsing of jboss-service.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • No Release
    • JBossAS-5.1.0.GA
    • Naming, System service
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              dandread1@redhat.com Dimitrios Andreadis
              pmacik@redhat.com Pavel Macik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: