I did the proper mapping in my web.xml and now the tomcat server is starting without any exception. But i don't understand. I haven't created corresponding class. Why do i need to write web.xml. All i want is to run my form.html on a browser. Shouldn't i use a simply blank web.xml.
Also my form.html is not opening. Browser says "Unable to connect".
I tried netstat -aon on my command prompt to see which pid is using port 8080 but the result shows that no service is using 8080.
URL i typed: http://localhost:8080/Coke-v1/form.html
Joined: Mar 14, 2012
Problem resolved finally....
Instead of using port 8080 i used the port given in tomcat logs (8085 in my case)....
http://localhost:8085/Coke-v1/form.html And no mapping is needed in web.xml. We can simply write the web.xml with headers and no mapping. It will not load any class but the first form page loads just fine.