概述
可能这个问题,不是啥大问题 ,但是提供了一个解决问题的思路: 当你认为不会出现问题的地方,多半就是问题的根源
当登陆界面 确认跳转到web-inf/view/admin/welcome.jsp时抛出500:
浏览器端:
HTTP Status 500 - Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive!
type Exception report
message Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive!
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive! org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:191) org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:267) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1225) org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1012)
服务器端:
四月 21, 2018 3:44:48 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [springMVC] in context with path [/ssms2] threw exception [Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive!] with root cause
javax.servlet.ServletException: Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive!
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:191)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:267)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1225)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1012)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
问题根源: spring-mvc.xml中出现配置错误:
总结:查看异常还是要在 console端看, 不要看浏览器端, 另外就是记着一点解决Exception ,最开始的出发点就是 console info , 不要脱离这个, 认为绝对不会出错的地方 恰恰就是问题的根源
最后
以上就是任性季节为你收集整理的ssm框架搭建问题HTTP Status 500 - Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive!的全部内容,希望文章能够帮你解决ssm框架搭建问题HTTP Status 500 - Could not get RequestDispatcher for [/WEB-INF/view/admin/welcome.jsp/]: Check that the corresponding file exists within your web application archive!所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复