I am using Dynamic project in eclipse And Annotations for jsp, servlet mapping in servlet pages and i am getting error in web.xml file but it not showing the error and when i run my project getting error as 404 i not used web.xml file
Asked
Active
Viewed 86 times
0
-
What is your question? Please also read [mcve] and also [how-to-ask](https://stackoverflow.com/help/how-to-ask) – achAmháin Aug 20 '18 at 10:32
-
Add your configuration and stack trace( Console error) . – Sumesh TG Aug 20 '18 at 10:35
-
@Sumesh TG,HTTP Status 404 – Not Found Type Status Report Message /Application1/ViewCount Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Apache Tomcat/8.5.32 – Chandu Aug 20 '18 at 10:38
-
Without web.xml how you configured? Are you using spring boot ? – Sumesh TG Aug 20 '18 at 10:40
-
@Sumesh TG, I am using Annotation @WebServlet("/ViewCount") in servlet page – Chandu Aug 20 '18 at 10:43
-
Please check `project -> properties-project facets- Dynamic web module` version . It should higher than 3. – Sumesh TG Aug 20 '18 at 10:46
-
yes it is already checked – Chandu Aug 20 '18 at 10:49
-
Are you using maven @Chandu – Sumesh TG Aug 20 '18 at 10:54
-
No, In eclipse i created dynamic web project – Chandu Aug 20 '18 at 10:56
-
ok Please check your webapp folder is in the build path. – Sumesh TG Aug 20 '18 at 10:57
-
@Sumesh TG, Yes i got it Thanq – Chandu Aug 20 '18 at 11:09