DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25628>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25628

NPE is thrown when jar containing tld file is not found in WEB-INF/lib

           Summary: NPE is thrown when jar containing tld file is not found
                    in WEB-INF/lib
           Product: Tomcat 4
           Version: 4.1.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Jasper 2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Jasper 2's implementation is such that it expects the jar files containing the 
tld files in WEB-INF/lib of a web application. If the jar file containing the 
tld is not present WEB-INF/lib directory, it throws NullPointerException (and 
hence JasperException). Below given is the stacktrace 

C:\DRIVE_E\advent1\jakarta\tomcat4.x\jakarta-tomcat-4.1.27-LE-jdk14>java org.
apache.jasper.JspC -v9 -d . webapps\wcfphase1\sa
ravanan\test.jsp
2003-12-18 09:14:27 - uriRoot implicitly set to "C:
\DRIVE_E\advent1\jakarta\tomcat4.x\jakarta-tomcat-4.1.27-LE-jdk14\webapps\
wcfphase1"
2003-12-18 09:14:28 - ERROR-the file '\saravanan\test.jsp' generated the 
following general exception: java.lang.NullPointerEx
ception
error:org.apache.jasper.JasperException: Error compiling \saravanan\test.jsp
        at org.apache.jasper.JspC.processFile(JspC.java:596)
        at org.apache.jasper.JspC.execute(JspC.java:801)
        at org.apache.jasper.JspC.main(JspC.java:823)

It should give a proper message stating the tld file referred in not found.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to