java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

Stack Overflow | leo | 2 months ago
  1. 0

    Why this exception happens when start a spring boot admin application?

    Stack Overflow | 2 months ago | leo
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
  2. 0

    GitHub comment 6502#237055684

    GitHub | 4 months ago | philwebb
    java.lang.NoClassDefFoundError: com/google/gson/Gson
  3. 0

    Error startup when using Spring Cloud Discovery

    GitHub | 3 months ago | jiangyuhe123
    java.lang.NoClassDefFoundError: org/springframework/cloud/netflix/zuul/filters/TraceProxyRequestHelper
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Could not start Demo admin, java.lang.NoClassDefFoundError: org/springframework/cloud/netflix/zuul/filters/TraceProxyRequestHelper

    GitHub | 3 months ago | kala888
    java.lang.NoClassDefFoundError: org/springframework/cloud/netflix/zuul/filters/TraceProxyRequestHelper

  1. Andreas Häber 3 times, last 2 weeks ago
  2. linxiaolong 6 times, last 2 months ago
  3. poroszd 2 times, last 3 months ago
  4. aldrinleal 2 times, last 4 months ago
  5. davidvanlaatum 15 times, last 6 months ago
1 more registered users
84 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. java.lang.ClassNotFoundException

    javax.servlet.ServletContextListener

    at java.net.URLClassLoader.findClass()
  2. Java RT
    Class.getDeclaredMethods
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    5. java.lang.ClassLoader.defineClass1(Native Method)
    6. java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    7. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    8. java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    9. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    10. java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    11. java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    12. java.security.AccessController.doPrivileged(Native Method)
    13. java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    14. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    15. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    16. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    17. java.lang.Class.getDeclaredMethods0(Native Method)
    18. java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    19. java.lang.Class.getDeclaredMethods(Class.java:1975)
    19 frames
  3. Spring Core
    ReflectionUtils.getUniqueDeclaredMethods
    1. org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:612)
    2. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524)
    3. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510)
    4. org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:570)
    4 frames
  4. Spring Beans
    DefaultListableBeanFactory.getBeansOfType
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:684)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:628)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:597)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1450)
    5. org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:420)
    6. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:390)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:505)
    8. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:498)
    8 frames
  5. Spring Context
    AbstractApplicationContext.getBeansOfType
    1. org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1184)
    1 frame
  6. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.getExitCodeFromMappedException(SpringApplication.java:886)
    2. org.springframework.boot.SpringApplication.getExitCodeFromException(SpringApplication.java:872)
    3. org.springframework.boot.SpringApplication.handleExitCode(SpringApplication.java:858)
    4. org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:812)
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
    7. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
    7 frames
  7. com.yaofandai.admin
    AdminApplication.main
    1. com.yaofandai.admin.AdminApplication.main(AdminApplication.java:16)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame