jspc without WEB-INF/web.xml
843835Apr 5 2002 — edited Apr 5 2002I'm using tomcat's jspc utility to compile my jsp (just so I don't have to go through the whole runtime process to find errors). when I try:
jspc login.jsp
I get the following error:
2002-04-04 11:46:36 - Internal Error: File /WEB-INF/web.xml not found
2002-04-04 11:46:36 - ERROR-the file 'proj\vines\src\jsp\login.jsp' generated th
e following general exception: java.util.EmptyStackException
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:79)
at org.apache.jasper.compiler.ParserController.resolveFileName(ParserCon
troller.java:419)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:187)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.JspC.parseFile(JspC.java:402)
at org.apache.jasper.JspC.parseFiles(JspC.java:722)
at org.apache.jasper.JspC.main(JspC.java:737)
I don't have a WEB-INF/web.xml directory in my development structure (that gets create during ant dist).
My questions: why does it need a web.xml? how can I specify which web.xml to use?
I was able to compile successfully from the directory where the jsp gets deployed, $TOMCAT_HOME/webapps/projdir.