java.lang.NoClassDefFoundError: javax/servlet/ServletConfig

GitHub | Tpt | 3 months ago
  1. 0

    java ee: class not found despite valid import?!

    Stack Overflow | 2 years ago | NaN
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Spring cloud consul class not found RestTemplateCustomizer

    Stack Overflow | 2 years ago | iamiddy
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration#loadBalancerClient due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
  4. 0

    GitHub comment 167#130256597

    GitHub | 1 year ago | piorkowskiprzemyslaw
    java.lang.IllegalStateException: Could not evaluate condition on pl.allegro.tech.hermes.management.config.LogRepositoryConfiguration#logRepository due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)

  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.ServletConfig

    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.Class.getDeclaredMethods0(Native Method)
    6. java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    7. java.lang.Class.getDeclaredMethods(Class.java:1975)
    7 frames
  3. jersey-core-server
    IntrospectionModeller$2.run
    1. org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:253)
    1 frame
  4. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  5. jersey-core-server
    IntrospectionModeller$1.call
    1. org.glassfish.jersey.server.model.IntrospectionModeller.getAllDeclaredMethods(IntrospectionModeller.java:247)
    2. org.glassfish.jersey.server.model.IntrospectionModeller.checkForNonPublicMethodIssues(IntrospectionModeller.java:172)
    3. org.glassfish.jersey.server.model.IntrospectionModeller.doCreateResourceBuilder(IntrospectionModeller.java:119)
    4. org.glassfish.jersey.server.model.IntrospectionModeller.access$000(IntrospectionModeller.java:80)
    5. org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:112)
    6. org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:109)
    6 frames
  6. Jersey Core
    Errors.processWithException
    1. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    2. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    3. org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
    3 frames
  7. jersey-core-server
    ApplicationHandler$3.call
    1. org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:109)
    2. org.glassfish.jersey.server.model.Resource.from(Resource.java:797)
    3. org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:465)
    4. org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)
    5. org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)
    6. org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)
    6 frames
  8. Jersey Core
    Errors.processWithException
    1. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    2. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    3. org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
    3 frames
  9. jersey-core-server
    ApplicationHandler.<init>
    1. org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347)
    2. org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:299)
    2 frames
  10. org.glassfish.jersey
    JdkHttpServerFactory.createHttpServer
    1. org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer.<init>(JdkHttpHandlerContainer.java:98)
    2. org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:111)
    3. org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:93)
    3 frames
  11. example
    MyApp.main
    1. example.MyApp.main(MyApp.java:21)
    1 frame