java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig

Spring JIRA | Dave Syer | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    javax/servlet/SessionCookieConfig

    at org.springframework.mock.web.MockHttpSession.<init>()
  2. Spring TestContext
    MockHttpSession.<init>
    1. org.springframework.mock.web.MockHttpSession.<init>(MockHttpSession.java:99)
    2. org.springframework.mock.web.MockHttpSession.<init>(MockHttpSession.java:89)
    3. org.springframework.mock.web.MockHttpSession.<init>(MockHttpSession.java:80)
    3 frames