Made a web project in IDEA run on Tomcat everything works no problem. Made a war file launched Tomcat on a remote computer zaplopil in Tomcat. It opens, opens the start page, and then gives the error 404 " Message / ls is probably a problem in this part of the code. But what problem can not understand.
<servlet> <servlet-name>LoginServlet</servlet-name> <servlet-class>ProjectX.web.LoginServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>LoginServlet</servlet-name> <url-pattern>/ls</url-pattern> </servlet-mapping>
This is an error window. At first, I thought that the problem was in the Tomkat version, so I checked it on different versions. The error is the same.
Before pressing the login button in the console writes an error 500.