[jboss-jira] [JBoss JIRA] (AS7-1264) Add schema references to standalone.xml, domain.xml, host.xml

Jason Greene (Updated) (JIRA) jira-events at lists.jboss.org
Thu Nov 3 22:21:45 EDT 2011


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

Jason Greene updated AS7-1264:
------------------------------

      Fix Version/s: Open To Community
    Forum Reference: http://community.jboss.org/thread/169301  (was: http://community.jboss.org/thread/169301)


As mentioned above we do include the namespaces. We don't include schema location hints though because we don't know where on the filesystem as7 is installed. We could add web hint but then if you aren't on the Internet you can't validate.

As to schema validation on boot, we validate as part of our parsing code and once again during the management conversion, doing xsd validation on top of that is slow and doesn't buy much.
                
> Add schema references to standalone.xml, domain.xml, host.xml
> -------------------------------------------------------------
>
>                 Key: AS7-1264
>                 URL: https://issues.jboss.org/browse/AS7-1264
>             Project: Application Server 7
>          Issue Type: Task
>          Components: Domain Management
>    Affects Versions: 7.0.0.CR1
>            Reporter: Gerry Matte
>            Assignee: Brian Stansberry
>              Labels: domain, host, standalone, xml, xmlns
>             Fix For: Open To Community
>
>
> It appears that users of Jboss 7 will be often modifying these configuration files as they fine tune their server and when they discover how to implement new features.
> It seems quite surprising to me that these files do not have the schema references identified in the file header.  Any good XML editor would use those references to validate changes and new entries and thereby avoid a great deal of frustration for users and those who provide support for forum issues.
> I realise that if jboss validated each xml file when starting up there would be performance penalty that may be unacceptable to many users.  A command-line switch could be used to either turn on xml validation (if the default were that no validation is performed) or conversely to turn off xml validation if the default state was that xml validation was on.
> Personally I favor having a switch that turns off validation - to be used on production servers only.
> If the schema/dtd files were published online and referenced within the configuration xml files, future changes to the schema structure would be "enforced" upon the user community as they attempted to use an out-of-date version when upgrading to a new version of JBoss AS 7. 

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