Bug 779677 (SOA-2042) - Incorrect parsing of jboss-service.xml
Summary: Incorrect parsing of jboss-service.xml
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2042
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossAS
Version: 5.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0 GA
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-20 12:18 UTC by Pavel Macik
Modified: 2011-10-07 08:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-07 08:36:55 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-2042 0 None None None Never

Description Pavel Macik 2010-04-20 12:18:02 UTC
project_key: SOA

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.

Comment 1 Pavel Macik 2010-04-20 12:20:11 UTC
Link: Added: This issue depends JBAS-7953


Comment 2 Pavel Macik 2010-04-20 13:52:52 UTC
Link: Removed: This issue depends JBAS-7953 


Comment 3 Pavel Macik 2010-04-20 13:53:30 UTC
Link: Added: This issue depends JBPAPP-4136


Comment 4 Anne-Louise Tangring 2010-09-21 20:40:56 UTC
This was triaged for SOA 5.1.0. This will not be in SOA 5.1.0

Comment 5 David Le Sage 2011-09-27 03:58:27 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Writer: Added: dlesage
Release Notes Text: Added: https://issues.jboss.org/browse/SOA-2042

The jboss-service.xml file was being parsed incorrectly.  The parser was not ignoring white space.  A code change has been applied and, as a result, this file is now parsed correctly.


Comment 6 Pavel Macik 2011-10-07 08:36:55 UTC
Verified in 520ER4


Note You need to log in before you can comment on or make changes to this bug.