Ant JSP compilation
Hello,
does anybody tried JSP compilation with Ant jspc task? I had a lot of troubles with this and finally came to the following error:
[jasperc] 2005-09-14 11:51:27 - ERROR-the file '\jsp\GetChannelData.jsp' generated the following general exception: java.util.EmptyStackException
[jasperc] java.util.EmptyStackException
[jasperc] at java.util.Stack.peek(Stack.java:79)
[jasperc] at org.apache.jasper.compiler.ParserControl ler.resolveFileName(ParserController.jav a:419)
[jasperc] at org.apache.jasper.compiler.ParserControl ler.parse(ParserController.java:187)
[jasperc] at org.apache.jasper.compiler.Compiler.comp ile(Compiler.java:210)
[jasperc] at org.apache.jasper.JspC.parseFile(JspC.ja va:385)
[jasperc] at org.apache.jasper.JspC.parseFiles(JspC.j ava:684)
[jasperc] at org.apache.jasper.JspC.main(JspC.java:69 9)
[jasperc] java.util.EmptyStackException
[jasperc] at java.util.Stack.peek(Stack.java:79)
[jasperc] at org.apache.jasper.compiler.ParserControl ler.resolveFileName(ParserController.jav a:419)
[jasperc] at org.apache.jasper.compiler.ParserControl ler.parse(ParserController.java:187)
[jasperc] at org.apache.jasper.compiler.Compiler.comp ile(Compiler.java:210)
[jasperc] at org.apache.jasper.JspC.parseFile(JspC.ja va:385)
[jasperc] at org.apache.jasper.JspC.parseFiles(JspC.j ava:684)
[jasperc] at org.apache.jasper.JspC.main(JspC.java:69 9)
The task text:
[target name="compile_JSP_pages" depends="prepare"]
[jspc srcdir="${jsp.dir}"
destdir="${build.dir}"
package="${package.name}"
compiler="jasper"
uriroot="."
verbose="9"]
[classpath]
[pathelement path="${classpath}"/]
[fileset dir="${lib.dir}"]
[include name="**/*.jar"/]
[/fileset]
[/classpath]
[include name="**/*.jsp"/]
[/jspc]
[/target]
May be, anybody can give an advice?
does anybody tried JSP compilation with Ant jspc task? I had a lot of troubles with this and finally came to the following error:
[jasperc] 2005-09-14 11:51:27 - ERROR-the file '\jsp\GetChannelData.jsp' generated the following general exception: java.util.EmptyStackException
[jasperc] java.util.EmptyStackException
[jasperc] at java.util.Stack.peek(Stack.java:79)
[jasperc] at org.apache.jasper.compiler.ParserControl
[jasperc] at org.apache.jasper.compiler.ParserControl
[jasperc] at org.apache.jasper.compiler.Compiler.comp
[jasperc] at org.apache.jasper.JspC.parseFile(JspC.ja
[jasperc] at org.apache.jasper.JspC.parseFiles(JspC.j
[jasperc] at org.apache.jasper.JspC.main(JspC.java:69
[jasperc] java.util.EmptyStackException
[jasperc] at java.util.Stack.peek(Stack.java:79)
[jasperc] at org.apache.jasper.compiler.ParserControl
[jasperc] at org.apache.jasper.compiler.ParserControl
[jasperc] at org.apache.jasper.compiler.Compiler.comp
[jasperc] at org.apache.jasper.JspC.parseFile(JspC.ja
[jasperc] at org.apache.jasper.JspC.parseFiles(JspC.j
[jasperc] at org.apache.jasper.JspC.main(JspC.java:69
The task text:
[target name="compile_JSP_pages" depends="prepare"]
[jspc srcdir="${jsp.dir}"
destdir="${build.dir}"
package="${package.name}"
compiler="jasper"
uriroot="."
verbose="9"]
[classpath]
[pathelement path="${classpath}"/]
[fileset dir="${lib.dir}"]
[include name="**/*.jar"/]
[/fileset]
[/classpath]
[include name="**/*.jsp"/]
[/jspc]
[/target]
May be, anybody can give an advice?
