javax.servlet.ServletException: Could not resolve view with name 'index' in servlet with name 'appServlet'

Spring JIRA | Jeff Knecht | 3 years ago
  1. 0

    Browser: Internet Explorer 8 App Server: Tomcat 6.0.36 JVM version: 1.7 A spring web-mvc project fails with the following {{ViewResolver}} error when the user clicks the refresh button or 'F5' in Internet Explorer 8. This behavior functions correctly in Spring 3.2.2 and appears to have broken in Spring 3.2.3. A small web project demonstrating the issue is attached. {noformat} SEVERE: Servlet.service() for servlet appServlet threw exception javax.servlet.ServletException: Could not resolve view with name 'index' in servlet with name 'appServlet' at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:722) {noformat}

    Spring JIRA | 3 years ago | Jeff Knecht
    javax.servlet.ServletException: Could not resolve view with name 'index' in servlet with name 'appServlet'
  2. 0

    Browser: Internet Explorer 8 App Server: Tomcat 6.0.36 JVM version: 1.7 A spring web-mvc project fails with the following {{ViewResolver}} error when the user clicks the refresh button or 'F5' in Internet Explorer 8. This behavior functions correctly in Spring 3.2.2 and appears to have broken in Spring 3.2.3. A small web project demonstrating the issue is attached. {noformat} SEVERE: Servlet.service() for servlet appServlet threw exception javax.servlet.ServletException: Could not resolve view with name 'index' in servlet with name 'appServlet' at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:722) {noformat}

    Spring JIRA | 3 years ago | Jeff Knecht
    javax.servlet.ServletException: Could not resolve view with name 'index' in servlet with name 'appServlet'
  3. 0

    Sending HTML data through AJAX using Spring MVC

    Stack Overflow | 3 years ago | ATOzTOA
    javax.servlet.ServletException: Could not resolve view with name 'getData' in servlet with name 'spring'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    javax.servlet.ServletException: Unable to locate object to be marshalled in model exception

    Stack Overflow | 4 years ago | subha sankar
    javax.servlet.ServletException: Unable to locate object to be marshalled in model: {modelAndView=ModelAndView: reference to view with name 'employees'; model is {employees=com.spring.rest.bean.EmployeeList@6ac2d3c}, org.springframework.validation.BindingResult.modelAndView=org.springframework.validation.BeanPropertyBindingResult: 0 errors}
  6. 0

    What's wrong with my Spring 3.2 / Freemarker config?

    Stack Overflow | 3 years ago | DaFoot
    javax.servlet.ServletException: Could not resolve view with name 'calendar' in servlet with name 'dispatcher'

  1. WoodenDoors 3 times, last 9 months ago
  2. Luka 8 times, last 2 months ago
  3. dafman 4 times, last 3 months ago
  4. smyrgeorge 3 times, last 4 months ago
23 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.servlet.ServletException

    Could not resolve view with name 'index' in servlet with name 'appServlet'

    at org.springframework.web.servlet.DispatcherServlet.render()
  2. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190)
    2. org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)
    3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)
    4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
    5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
    6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
    6 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    1 frame
  4. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
    1 frame
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  6. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    8 frames
  7. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    3 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:722)
    1 frame