https://issues.apache.org/bugzilla/show_bug.cgi?id=49665

           Summary: When file not found error occurs it does not tell you
                    which file caused the error.
           Product: Tomcat 6
           Version: 6.0.29
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: tedmanle...@gmail.com


Created an attachment (id=25814)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25814)
Patch to jasper so file not found error while parsing tld's report file and
location.

When parsing jsp's into java, if a "file not found" occurrs like on a tag file
it will not tell you which file caused the error.

As an example : 
------------------------
   [jasper] Jul 29, 2010 7:02:24 PM org.apache.jasper.JspC processFile
   [jasper] SEVERE: File "/tags/struts-bean" not found
   [jasper] Jul 29, 2010 7:02:25 PM org.apache.jasper.JspC processFile
   [jasper] SEVERE:
file:/data/cvs/oscar_mcmaster/build/tmp/jspc/web/ticklerPlus/preparedTicklerList.jsp(22,18)
Attribute value request.getAttribute("preparedTicklers") is quoted with " which
must be escaped when used within the value
------------------------

There are 2 errors showing here, one is from an invalid tag and the other is on
an attribute. Note that the attribute works well and tells me which file and
location is causing the problem. Note that with the first error it doesn't even
tell me which file is causing the error.

Attached is a patch which shows the file and location of the error. After the
patch file is applied I get a more useful out put

-------------------------
   [jasper] Jul 29, 2010 6:54:11 PM org.apache.jasper.JspC processFile
   [jasper] SEVERE:
file:/data/cvs/oscar_mcmaster/build/tmp/jspc/web/ticklerPlus/Auth.jsp(1,49)
File "/tags/struts-bean" not found
   [jasper] Jul 29, 2010 6:54:11 PM org.apache.jasper.JspC processFile
   [jasper] SEVERE:
file:/data/cvs/oscar_mcmaster/build/tmp/jspc/web/ticklerPlus/preparedTicklerList.jsp(22,18)
Attribute value request.getAttribute("preparedTicklers") is quoted with " which
must be escaped when used within the value
-------------------------

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to