• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parse error on web.xml when deployed on Unix

 
M Conlin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Locally on my windows xp machine my .war application works correctly.

When I deploy to unix I get the following error;

SEVERE: Parse error in default web.xml
org.xml.sax.SAXParseException: Premature end of file.

HOWEVER, if I "touch" the web.xml file tomcat is able to pick it up and parse it correctly and all is well.

Any thoughts? Thanks!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably due to the different carriage return and line feed (CR/LF) characters used on Windows and Unix.

Here's a link that explains it:

http://usertools.plus.net/tutorials/id/22

My recommendation is to get a windows text editor that will allow you to save files bound for a Unix system with the proper CR/LF characters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic