dev@glassfish.java.net

Re: domain.xml in notepad

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Thu, 14 Dec 2006 14:50:56 -0800

Ah, good point about the line endings.
I don't intend to "fix" that.
But more than that, it is expected that there is a uniformity
in formating the elements and attributes
and I was going to use this bug as a vehicle to fix it.

Kedar

Wayne Fay wrote:
> Unless I'm mistaken, the "trouble" is that the domain.xml file has
> Unix line endings (\n) rather than Windows line endings (\n\r) and so
> Windows Notepad does not open it properly. Instead the \r shows up as
> an unknown character (rendered as a box) and the XML appears as a huge
> blob with no line breaks.
>
> More historical data on line endings is available from Wikipedia:
> http://en.wikipedia.org/wiki/Line_feed
>
> I'm not positive that "fixing" this problem is really a great idea,
> instead I'd tell Windows users to please use a better editor that
> understands Windows and Unix line endings as previously mentioned in
> this thread... But that's my 2c.
>
> Wayne
>
> On 12/14/06, kedar <Kedar.Mhaswade_at_sun.com> wrote:
>> I agree. I will fix the bug in (almost) entirety.
>> Thanks for filing it.
>>
>> Arun Gupta wrote:
>> > Thanks for the tip, I've done that :)
>> >
>> > I'd like to understand why domain.xml cannot be XML formatted so that
>> > it's easy for all types of users.
>> >
>> > -Arun
>> >
>> > Sameer Tyagi wrote:
>> >> Wont solve your problem completely but if you open in wordpad or
>> >> editplus it
>> >> will be fine.
>> >>
>> >> /s
>> >>
>> >>
>> >>
>> >> Arun Gupta wrote:
>> >>
>> >>> domain.xml comes gobbled up in notepad and it's hard to edit. I
>> >>> added a jvm-option using XML Notepad [1] and that messed up the
>> >>> complete file and now I'm getting:
>> >>>
>> >>> -- cut here --
>> >>> com.sun.enterprise.config.ConfigException: Error refreshing
>> >>> ConfigContext:C:\tes
>> >>> tbed\glassfish\domains\domain1\config\domain.xml
>> >>> cause: Failed to create the XML-DOM Document. Check your XML to
>> >>> make sure it is
>> >>> correct.
>> >>> Element type "DOMAIN" must be declared.
>> >>> CLI156 Could not start the domain domain1.
>> >>> -- cut here --
>> >>>
>> >>> I'd rather use notepad provided domain.xml can be displayed
>> >>> XML-formatted. Any reason it's not ?
>> >>>
>> >>> [1] http://www.snapfiles.com/download/dlxmlnotepad.html
>> >>>
>> >>> -Arun
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> >> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>