• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp precompile with Ant and NullPointerException  RSS feed

Poobhathy Kannan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i try to prcompile jsps with ant ,the following is my target..

<target name="jspc" depends="init" description="Creates java files out of jsps" >

<jspc srcdir="${root.dir}/vertical/print/content/jsp"
<include name="**/*.jsp" />
<classpath refid="test.classpath" />

I get this error while running this target.

Compiling 288 source files to D:\MyWork\ServletUnit\unittest\build\classes\org\apache\jsp
2005-03-22 02:24:28 - uriRoot implicitly set to "D:\MyWork\ServletUnit\vertical\print\content"
error rg.apache.jasper.JasperException: Error compiling \jsp\zeborg\buyer\MarketSummaryComponent.jsp
2005-03-22 02:24:36 - ERROR-the file '\jsp\zeborg\buyer\MarketSummaryComponent.jsp' generated the following general exception: java.lang.NullPointerException
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)

What could be the Issue?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!