Hi,
I have some web application (.war) which reads XML files on
initialialization. When I run this application on Tomcat on Widows
everything works file. However, when I run it on Tomcat on Linux/
Solaris my application can't parse an XML file, with standart DOM
parser, because it contains special characters created in the file
'^M'. Only after I remove these characters from XML file manually with
VI editor my application is able to parse an XML file.
I suppose it is a common issue and looking for the way to solve it in
a common way.
Thanks,
Pavel
Arne Vajhøj - 01 Jan 2008 15:10 GMT
> I have some web application (.war) which reads XML files on
> initialialization. When I run this application on Tomcat on Widows
[quoted text clipped - 6 lines]
> I suppose it is a common issue and looking for the way to solve it in
> a common way.
Move the XML files from Windows to Linux as text files and
not as binary files.
Then you will not have the extra CR's.
Arne
Martin Gregorie - 01 Jan 2008 16:11 GMT
>> I have some web application (.war) which reads XML files on
>> initialialization. When I run this application on Tomcat on Widows
[quoted text clipped - 11 lines]
>
> Then you will not have the extra CR's.
Or run them through the dos2unix utility after moving them. Its a
standard program and pretty fast.

Signature
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |