Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

jspc without WEB-INF/web.xml

843835Apr 5 2002 — edited Apr 5 2002
I'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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2002
Added on Apr 5 2002
1 comment
402 views