I have a Tomcat server running with index.jsp but when I add the .class servlet it turns the index.jsp into Not found 404.
This is my web.xml in /opt/tomcat9/webapps/ROOT/WEB-INF
// Servlets
<servlet>
<servlet-name>login</servlet-name>
<servlet-class>com.tyd.gr1.la.login</servlet-class>
</servlet>
// Servlet Mappings
<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
My index.jsp is located in /opt/tomcat9/webapps/ROOT
If I remove the login.class in /opt/tomcat9/webapps/ROOT/WEB-INF/classes/com/tyd/gr1/la and start tomcat I get presented with the index.jsp
But if I put login.class back I get HTTP Status 404 – Not Found Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.