I have this folder directory:
webapps/ROOT/META-INF/
......................context.xml
webapps/ROOT/WEB-INF/
......................web.xml
webapps/ROOT/WEB-INF/lib
.........................mysql-connector-java-5.1.23-bin.jar
webapps/ROOT/WEB-INF/classes/com/mycompany/server/LoginServlet.class
I have this web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<servlet>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/LoginServlet</url-pattern>
<servlet-class>com.mycompany.server.LoginServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
LoginServlet.java has this init()
@Override
public void init(ServletConfig config) throws ServletException {
System.out.println("Login Servlet Is Running");
new Thread(guestRouter).start();
System.out.println("path: '" + config.getServletName() + "'");
}
When I start Tomcat, this the output (init loads and it finds the class).

However, when I go to localhost:8080/LoginServlet it says resource not found. Been struggling for days. Any help is appreciated!
protected void processRequest(HttpServletRequest request, HttpServletResponse response)function. - jn1kk