Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp precompile with Ant and NullPointerException

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(
at org.apache.jasper.JspC.execute(
at org.apache.jasper.JspC.main(

What could be the Issue?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic