The quality of the JSP compiler error messages for Tomcat 5 seems much worse
than those for Tomcat
4. The difference makes debugging much harder under the Tomcat 5.5 releases.
Is there a way to
build Tomcat with different components to have it provide better compiler error
messages?
As an example, this JSP code snippet:
errMsg = "Uploaded file has no readable records or is empty.");
generates this compiler error message in Tomcat 5.5.12:
--------------------------------------------------------
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /adminArea/UploadFile.jsp
Generated servlet error:
Syntax error on token ")", delete this token
------------------------------------------------------------
However, the same file under Tomcat 4.1.24 generates this compiler error
message:
-----------------------------------------------------------
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac]
D:\jakarta-tomcat-4.1.24\work\Standalone\localhost\_\adminArea\UploadFile_jsp.java:1998:
';'
expected
[javac] errMsg = "Uploaded file has no readable
records or is empty.");
[javac]
^
[javac] 1 error
----------------------------------------------------------
M Coffee
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]