This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This is undoubtedly due to the difference in newLine characters between Windows and UNIX. Here is a link that explains it. The best solution is to find a windows text editor that will save a file for UNIX use. There are several free ones. Then Save your struts-config.xml file for UNIX before including it in your war file.
Interesting...my project develops in Windows but it deployed on Solaris. I just checked our struts-config.xml file and it is "DOS" formatted (with cr+lf). That version seems to work just fine on Solaris (Oracle Application Server).
Joined: Feb 15, 2005
I know, Brent, it's an odd problem. The Application Server I use (WebSphere) tolerates the different linefeed characters just fine on either Windows or UNIX, but not all Application Servers do. It's usually a pretty good bet, though, that if an XML file parses fine on windows and doesn't parse on UNIX, the Linefeed character is to blame.
Joined: Aug 01, 2005
I finally found the issue:
while testing build/install scripts the tomcat server had been started under root.
When I logged in as my tomcat user and attempted to restart the server it could not properly shutdown/restart. The error messages did NOT indicate that a resource was in use by someone else, it simply acted like it could not read xml and deploy the project correctly.
su over to root and shutdown the server fixed the issue.