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

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> ---
Created attachment 31203
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31203&action=edit
jspc_55995_test.bat

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.servlet.JspCServletContext.getResource(JspCServletContext.java:344)
        at
org.apache.jasper.compiler.TldCache.getLastModified(TldCache.java:124)
        at org.apache.jasper.compiler.TldCache.<init>(TldCache.java:70)
        at org.apache.jasper.JspC.initServletContext(JspC.java:1468)
        at org.apache.jasper.JspC.execute(JspC.java:1321)
        at org.apache.jasper.JspC.main(JspC.java:269)

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

Reply via email to