[jboss-jira] [JBoss JIRA] (AS7-2578) Domain does not boot with custom welcome root

Brian Stansberry (Assigned) (JIRA) jira-events at lists.jboss.org
Thu Nov 10 10:29:45 EST 2011


     [ https://issues.jboss.org/browse/AS7-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry reassigned AS7-2578:
-------------------------------------

    Assignee: Jean-Frederic Clere  (was: Brian Stansberry)


Is this just a documentation issue in the XSD? That is, the xsd should declare that specifying a default-web-module and setting enable-welcome-root="true" is a misconfiguration, since the two pieces of configuration contradict each other. This should be documented for both the default-web-module and enable-welcome-root attributes.

It should be documented in the :read-resource-description output for these attributes as well.
                
> Domain does not boot with custom welcome root
> ---------------------------------------------
>
>                 Key: AS7-2578
>                 URL: https://issues.jboss.org/browse/AS7-2578
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management, Web
>            Reporter: Heiko Braun
>            Assignee: Jean-Frederic Clere
>            Priority: Critical
>             Fix For: 7.1.0.CR1
>
>
> Declaring a custom welcome root other then root.war, leads to an error that prevents the domain from booting:
> {noformat}
>   <subsystem xmlns="urn:jboss:domain:web:1.1">
>                 <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http" enabled="true"/>
>                 <connector name="https" protocol="HTTP/1.1" socket-binding="https" scheme="https" enabled="true"/>
>                 <virtual-server name="default-host" default-web-module="test.war" enable-welcome-root="true">
>                     <alias name="localhost"/>
>                     <alias name="example.com"/>
>                 </virtual-server>
>             </subsystem>
> {noformat}
> {noformat}
> [Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[353,17]
> [Host Controller] Message: The welcome root can not be enabled on a host that has a default web module
> [Host Controller] 	at org.jboss.as.web.WebSubsystemParser.parseHost(WebSubsystemParser.java:596)
> [Host Controller] 	at org.jboss.as.web.WebSubsystemParser.readElement(WebSubsystemParser.java:446)
> [Host Controller] 	at org.jboss.as.web.WebSubsystemParser.readElement(WebSubsystemParser.java:117)
> [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.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
> [Host Controller] 	at org.jboss.as.controller.parsing.DomainXml.parseProfiles(DomainXml.java:536) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> [Host Controller] 	at org.jboss.as.controller.parsing.DomainXml.readDomainElement(DomainXml.java:208) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> [Host Controller] 	at org.jboss.as.controller.parsing.DomainXml.readElement(DomainXml.java:101) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> [Host Controller] 	at org.jboss.as.controller.parsing.DomainXml.readElement(DomainXml.java:86) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> [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) [j
> {noformat}

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