You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sean McCauliff <se...@narus.com> on 2000/05/23 09:04:31 UTC

How do I precompile JSP for redistribution?

If I do
jspc.sh  index.jsp

I get:
> java -debug org.apache.jasper.JspC index.jsp
Agent password=5su38p
java.lang.NullPointerException
        at java.io.File.<init>(File.java)
        at org.apache.jasper.JspC.parseFiles(JspC.java:454)
        at org.apache.jasper.JspC.main(JspC.java:601)


How am I supposed to use this tool?

If I look at the code uriRoot looks like it is null, but there is code
which suggests that if uriRoot == null it will get assigned some sane
value.

Does the uri get hardcoded into the compiled JSP?  So I could only use
index.jsp with the URI /Blah/index.jsp  ?

Thanks,
-Sean