[jboss-jira] [JBoss JIRA] (AS7-3777) Adding a server through the web console creates invalid xml which fails domain restart

Heiko Braun (JIRA) jira-events at lists.jboss.org
Thu Feb 16 01:44:36 EST 2012


    [ https://issues.jboss.org/browse/AS7-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666993#comment-12666993 ] 

Heiko Braun commented on AS7-3777:
----------------------------------

Is this a duplicate of AS7-3774 ?
                
> Adding a server through the web console creates invalid xml which fails domain restart
> --------------------------------------------------------------------------------------
>
>                 Key: AS7-3777
>                 URL: https://issues.jboss.org/browse/AS7-3777
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Console
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Rajesh Rajasekaran
>            Assignee: Heiko Braun
>
> Adding a server through the web console created invalid xml which fails domain restart
> To reproduce:
> 1. Start the domain mode
> 2. Add a server
> 3. Restart the domain
> XML generated in host.xml
> {code:xml}
>         <server name="test-server" group="main-server-group" auto-start="false">
>             <socket-bindings ref="standard-sockets" port-offset="600"/>
>         </server>
> {code}
> Error on restarting domain
> {code:xml}
> [Host Controller] 16:48:15,625 ERROR [org.jboss.as.controller] (Controller Boot Thread) JBAS014601: Error booting the container: java.lang.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
> [Host Controller] 	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:161) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
> [Host Controller] Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
> [Host Controller] 	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:125) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:151) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:302) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	... 1 more
> [Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[51,13]
> [Host Controller] Message: JBAS014788: Unexpected attribute 'ref' encountered
> [Host Controller] 	at org.jboss.as.controller.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:104) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.parseServerSocketBindings(HostXml.java:1030) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.parseServerContent1_1(HostXml.java:931) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.parseServer(HostXml.java:845) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.parseServers(HostXml.java:822) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.readHostElement_1_1(HostXml.java:389) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:117) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:97) [jboss-as-host-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
> [Host Controller] 	at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
> [Host Controller] 	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:117) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
> [Host Controller] 	... 4 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list