I am trying to load an application to my local tomcat instance. When I input the address into the URL bar after starting tomcat I'm getting 404-not found error even though the resources were there. I did a lot of trial and error and found something in the DD file. A portion of the deployment descriptor contains following code..
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
When I comment this part from the web.xml file I was able to successfully get to the resources from the browser. So I'm pretty sure that the problem is in this code but I can't understand what it is. Can someone please explain what this code is doing and why am I getting error with this.? Thanks in advance.
Edit: For the record, I was trying to access resources directly under root folder. .. http://localhost/myapp/index.jsp