dev@glassfish.java.net

warning from mini parser (upgrade related)

From: Bobby Bissett <Robert.Bissett_at_Sun.COM>
Date: Tue, 22 Sep 2009 16:22:43 -0400

Starting with a v2 domain, the following message comes from the parser
during an upgrade and then from every start-domain and stop-domain
after that:

> Sep 22, 2009 5:32:05 AM
> com.sun.enterprise.universal.xml.MiniXmlParser read
> WARNING: XML file was parsed twice because the configs element
> appears before the servers element. To prevent this waste of time,
> move the servers element before the configs element.

Since we've (hopefully) conditioned users not to edit domain.xml
manually, could we change that warning to Level.INFO or even lower?
This could also be changed by the upgrade service to move the elements
around, but I doubt anyone wants to own that right now. Besides seeing
that warning in the console at every start/stop, it also makes the
upgrade tool pass along a "warning or error detected" message to the
user at every upgrade. I can work around that, but it would add an odd
dependency to the upgrade tool to detect that specific message in the
asadmin output.

Cheers,
Bobby