Connecting Tomcat Server in Eclipse IDE
Connecting Tomcat Server in Eclipse IDE
4) Click on the link provided in the Server view and it opens Define new
Server Window
5) In the Define new server window expand Apache Menu -> select
Tomcat v8.0 Server and click on NEXT
It generates 404 error which means file not found error. To debug
this error we need to configure web.xml file
<servlet>
<servlet-name>Hello</servlet-name> <!-- Name given to servlet -->
<servlet-class>Hello</servlet-class> <!--Path to servlet class created-->
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name><!--Name of Servlet given in previous tag-->
<url-pattern>/Hello</url-pattern> <!—URL pattern to access the file -->
</servlet-mapping>