I *think* what is going on is that the jsp files were ftp'd? to the Solaris server from a Windows server.
Binary transfers the file exactly as it is, and you don't want to do this on a Windows/Solaris Solaris/Windows setup because of the CR mismatch. ASCII will translate the CR properly.
If I am correct in what I am assuming, just vi the file and if you see ^M at the end then you know how it was sent. In that case, run "tr -d '\r' < file.jsp > filenew.jsp" and that will strip the CR.