Answer the question
In order to leave comments, you need to log in
The war file does not start from the command line, how to fix it?
Hello. Help me figure out what I'm doing wrong, namely why it does not find the file javax.servlet.ServletException: File [/WarmStar_war/footer/footer.jsp] not found: I wrote a project, on servlets + Tomcat + JSP, and everything works fine if I deploy it to the IDE. There are no errors, everything is fine. And now I made a war file and I'm trying to deploy it to the server from the command line, but an error occurs. I don't even know how to fix it. If anyone knows, I would be grateful. Before that, I deployed war files more than once, it always worked :(
Perhaps this will be necessary: I threw the war file into C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps , launched the startup.bat server, then the file name is WarmStar_war, then I call localhost:8085/WarmStar_war in the browser
javax.servlet.ServletException: File [/WarmStar_war/footer/footer.jsp] not found
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: javax.servlet.ServletException: File [/WarmStar_war/footer/footer.jsp] not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:601)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause
javax.servlet.ServletException: File [/WarmStar_war/footer/footer.jsp] not found
org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:407)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:374)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:895)
org.apache.jsp.index_jsp._jspService(index_jsp.java:200)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question