[jboss-jira] [JBoss JIRA] (AS7-3012) Setting enable-welcome-root="false" in standalone.xml works, but disappears from the file at shutdown

Jim Crossley (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 14 09:20:09 EST 2011


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

Jim Crossley commented on AS7-3012:
-----------------------------------

Ah, you're correct, Remy. A value of "true" remains in the config file. But how would a user know that? To me, it very much violates the "principal of least surprise".
                
> Setting enable-welcome-root="false" in standalone.xml works, but disappears from the file at shutdown
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AS7-3012
>                 URL: https://issues.jboss.org/browse/AS7-3012
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web
>    Affects Versions: 7.1.0.Beta1
>            Reporter: Jim Crossley
>            Assignee: jaikiran pai
>
> Details from IRC:
>         <jcrossley3> hey guys, if i set enable-welcome-root="false" in
>                      standalone.xml, and then start jboss, and stop it, i look
>                      in the file and the attribute is gone. where do i set it
>                      so the change persists across restarts?
>         <Jaikiran> jcrossley3: which version of AS7?
> [00:47] <jcrossley3> Jaikiran: 7.1.0.Beta1
>         <jcrossley3> it's actually an early EAP6 release
>         <Jaikiran> jcrossley3: and is it just the fact the attribute is
>                    missing from the xml or does it also prevent your custom
>                    app from being deployed at root context?
>         <jcrossley3> Jaikiran: the latter
> [00:49] <Jaikiran> jcrossley3: ok, looks like a bug then. if this is
>                    reproducible in upstream, could you please create a JIRA?
>                    or else i can take a look at this in about an hour and
>                    check it myself
>         <jcrossley3> Jaikiran: the strange thing is that once i set it, it
>                      seems to be set correctly for subsequent runs, but i
>                      wouldn't know it by looking in that file.
> [00:50] <Jaikiran> jcrossley3: what do you mean by subsequent runs? the
>                    subsequent runs after the restart?
>         <jcrossley3> Jaikiran: yes, multiple restarts of jboss
>         <jcrossley3> in other words, if i set it to true, my integration tests
>                      will fail each time i run them. i set it to false, and
>                      they pass, but i lose the attribute from the file (but
>                      the behavior remains, weird right?)
> [00:52] <jcrossley3> Jaikiran: the attribute disappears no matter what i set
>                      to the first time the server shuts down after setting it.
>         <Jaikiran> jcrossley3: my guess is that it has to do something with
>                    the not writing out the value of an attribute if it's the
>                    default value
>         <Jaikiran> but that's just a guess

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