aspose file tools*
The moose likes Struts and the fly likes Parse error on web.xml when deployed on Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Parse error on web.xml when deployed on Unix" Watch "Parse error on web.xml when deployed on Unix" New topic
Author

Parse error on web.xml when deployed on Unix

M Conlin
Greenhorn

Joined: Aug 01, 2005
Posts: 15
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parse error on web.xml when deployed on Unix
 
Similar Threads
Struts config works on windows, not on Unix
jsp compile error
upload.parseRequest(request); giving null.
SAXParseException
tomcat error