Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

mani sagar

Greenhorn
+ Follow
since Oct 25, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mani sagar

hi all... sorry for such a long delay...

here is my web.xml page.

also when i shifted the contents of my project folder i.e Beer into the Root folder of tomcat/webapps/root the application worked (though i directly asked for resourse i.e http://localhost:8080/form.html,and after pressing the submit button i got an error ....

so my confusion is, if my web.xml file is incorrect then it should not execute the request even if it is stored in any part of webapps folder... but surprisingly it is executing!

secondly by observing the context.xml in the conf folder of apache

here i presume that the part <Watchedresourse >stands for the folder in which all resourse are placed but as mentioned it works for only one folder i.e root not for any other folder. is there any problem with the preconfigured tomcat that they would read the resourse only from within root folder... i.e root folder acts as the web apps folder???
12 years ago
hi vijitha ,

i am using tomcat 6.0 pre configured,jdk 1.5.

i am not at my home computer because of which i wont be able to give you the exact form of my web.xml.

i am following the head first's book and all the settings are as per that.i have modified the web-app portion of my web.xml to match the tomcats specification.

i have a question though: does the tomcat container refer to the web.xml file for even the home page or index page(and in this case form.html)? because i am not able to get even the form.html page up!

12 years ago
hi thanks for replying .

i did follow the other threads on 404 error and did clear my web. xml file from errors but still i got the same error. i even tried to changing the <web-app> heading but still i get this error.

i am able to read all the tomcats own pages( eg : from those inside the /webapps/Root/ directory but i am not able to run my project.(the beer example from k&b book)

i was able to run the ch1Servlet example though.
12 years ago
hi '
i am getting this error while compiling the servlet. here is the copy of log file from the tomcat .

the next error i got was this
12 years ago