java.lang.NoClassDefFoundError

org/springframework/mock/web/MockAsyncContext

Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA


rafaelrafael

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13957

  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.NoClassDefFoundError: org/springframework/mock/web/MockAsyncContext at java.lang.Class.privateGetDeclaredMethods(Class.java:2693) at java.lang.Class.getDeclaredMethods(Class.java:1967) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at grails.test.spock.IntegrationSpec.initRequestEnv(IntegrationSpec.groovy:96) at grails.test.spock.IntegrationSpec.setup(IntegrationSpec.groovy:62) Caused by: java.lang.ClassNotFoundException: org.springframework.mock.web.MockAsyncContext at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    marcbouvierdavmarcbouvierdav
    364 times, last one
    Unknown visitor
    Unknown visitorOnce,
    LukaLuka
    5 times, last one
    rocdayrocday
    15 times, last one
    1234 more bugmates