Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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"
destdir="${build.classes.dir}"
package="org.apache.jsp"
compiler="jasper41"
verbose="9">
<include name="**/*.jsp" />
<classpath refid="test.classpath" />
</jspc>
</target>

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?
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!