dev@glassfish.java.net

Re: domain.xml in notepad

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Thu, 14 Dec 2006 15:58:23 -0800

Notepad is the default text editor that is shipped out-of-the-box with
all Windows platform and widely used by Windows community. So I'd expect
it to be able to open any text-based file correctly.

Moreover, I'd expect the Windows build to be closer to Windows
environment than Unix.

As mentioned earlier, I know the workarounds and can live with that but
the comment was more from a usability perspective.

-Arun

Wayne Fay wrote:
> Perhaps its just my system or I'm not understanding something, but
> when I open domain.xml in TextPad, it is already nicely indented etc.
> The "trouble" is simply the line endings in certain editors.
>
> Wayne
>
> On 12/14/06, Byron Nevins <Byron.Nevins_at_sun.com> wrote:
>> My guess is that the code that writes domain.xml uses binary mode
>> instead of text mode. Writing in text mode will automatically put in
>> the right line-ending character(s).
>>
>> If the bug gets fixed anyways -- why not put in spaces or tabs and
>> indent it properly? It would be much easier to read in a simple text
>> editor...
>>
>>
>> kedar 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta