Announcement Announcement Module
Collapse
No announcement yet.
And out of nowhere, an error! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • And out of nowhere, an error!

    Following the basic MVC intro from the springframework.org homepage (parts 1 and 2), and I had it working. Suddenly, I'm getting an error when I navigate to the URL of the page, and I don't recall changing anything that could be causing this! Anyone have any idea what the below error could indicate?

    Code:
    HTTP Status 500 -
    
    type Exception report
    
    message
    
    description The server encountered an internal error () that prevented it from fulfilling this request.
    
    exception
    
    javax.servlet.ServletException: Error occured during request processing: javax/servlet/jsp/jstl/fmt/LocalizationContext
    	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:757)
    	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
    	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
    	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    
    root cause
    
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/fmt/LocalizationContext
    	org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext(JstlUtils.java:83)
    	org.springframework.web.servlet.view.JstlView.exposeHelpers(JstlView.java:52)
    	org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:76)
    	org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
    	org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:961)
    	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:738)
    	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
    	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
    	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • #2
    It seems that the jstl.jar is missing in your lib directory.

    Comment


    • #3
      Thanks for the tip. I'll try adding it in when I get home. I'm still not sure I understand why it worked before if I didn't have that JAR in my lib directory, but I'll let you know if that fixes it. Thanks again for replying!

      Comment

      Working...
      X