tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25628] New: - NPE is thrown when jar containing tld file is not found in WEB-INF/lib
Date Thu, 18 Dec 2003 15:43:52 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: saravanan@india.adventnet.com
                CC: saravanan@india.adventnet.com


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message