[jboss-jira] [JBoss JIRA] Commented: (JBAS-7953) Incorrect parsing of jboss-service.xml
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Fri Dec 10 06:03:52 EST 2010
[ https://issues.jboss.org/browse/JBAS-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569200#comment-12569200 ]
Dimitris Andreadis commented on JBAS-7953:
------------------------------------------
I think the code for parsing this element is here:
https://svn.jboss.org/repos/jbossas/branches/JBPAPP_5_1/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataParser.java
see method parseValueFactoryParameter()
But I can hardly categorize this as a bug, this is more like a nice-to-have, I don't think we are going to bother.
> Incorrect parsing of jboss-service.xml
> --------------------------------------
>
> Key: JBAS-7953
> URL: https://issues.jboss.org/browse/JBAS-7953
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Naming, System service
> Affects Versions: JBossAS-5.1.0.GA
> Reporter: Pavel Macik
> Assignee: Dimitris Andreadis
>
> 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.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list