tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 55995] java.lang.NullPointerException at org.apache.jasper.servlet.JspCServletContext.getResource(
Date Mon, 13 Jan 2014 22:39:03 GMT

--- Comment #3 from Konstantin Kolinko <> ---
Created attachment 31203

I can reproduce this NPE with 8.0-RC10 and with trunk.

See the attached Windows batch file. Essentially, it uses Tomcat's
bin/cpappend.bat to reproduce classpath from Comment 0. That is

1. ant.jar
2. all jars from %CATALINA_HOME%\bin and %CATALINA_HOME%\lib
3. libs from the examples webapp (the JSTL jars)

Then it tries to compile examples\jsp\tagplugin\choose.jsp.
This results in the same NullPointerException, as reported by OP.

Exception in thread "main" java.lang.NullPointerException
        at org.apache.jasper.compiler.TldCache.<init>(
        at org.apache.jasper.JspC.initServletContext(
        at org.apache.jasper.JspC.execute(
        at org.apache.jasper.JspC.main(

4. If I comment-out the line that adds JSTL jars to the classpath,
JspC completes successfully and generates Java source text for the page.
Note, that the JSTL tag library in the WEB-INF/lib directory of the web
application is successfully recognized and processed by JspC.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message