This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See i am getting this error while compiling the servlet. here is the copy of log file from the tomcat .
First one actually the log which indicates the startup of your server, not an error. In the second one which actually gives a SAXParseException. Your web.xml's "<web-app>" tag must be wrong, check whether you have properly closed it at the end.
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???
As it shows, your web.xml is missing the last part, I suggest you copy the whole <web-app...> thing from the ROOT/WEB-INF/web.xml to your's and deploy to see what happens. you should deploy it as a separate application from the ROOT not inside of it.