I am following the Head First Servlets and JSP for the exam.When i am trying to deploy a small MVC application (Chapter 3) in Tomcat, I am getting a resource not found error.
I have placed the form.html under both the deployment and development environment as specified in the text.Stll the form.html is not loaded.Please help
Thanks, Anila Mathew
Edmund Yong
Ranch Hand
Joined: Nov 16, 2003
Posts: 164
posted
0
Do you have a WEB-INF directory? I think you'll need that.
post your web.xml file here so we can all take a look on it.
Regards, Darya
SCJP, SCJD, SCWCD, SCBCD
Rajesh Krishnan
Greenhorn
Joined: Jul 14, 2005
Posts: 9
posted
0
The directory shd be WEB-INF and not WEB_INF.
Naresh Chaurasia
Ranch Hand
Joined: May 18, 2005
Posts: 309
posted
0
Hi Anila, I had also faced the similar problem many time. What i did was i created a copy of the existing directory under webapps and then renamed. It solved the problem for me. I guess i was having the problem because there was some mistake in my web.xml(but i could not figure out what, I hope the directory you are using is WEB-INF and not WEB_INF)
Yes, i have created a WEB_INF directory in D:\TomCat\webapps\DirectoryName and also in D:\MyPrograms\DirectoryName\etc.
1. Is D:\TomCat\ your TomCat root directory? 2. If point 1 is correct, put form.html under d:\TomCat\webapps\DirectoryName. 3. Directory name should be WEB-INF, not WEB_INF.