java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.EnableWebSecurity

Stack Overflow | ilopezluna | 2 years ago
  1. 0

    spring boot tries to find EnableWebSecurity class in spite of its not included

    Stack Overflow | 2 years ago | ilopezluna
    java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
  2. 0

    GitHub comment 3625#126674820

    GitHub | 1 year ago | Dreampie
    java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
  3. 0

    GitHub comment 4121#146514786

    GitHub | 1 year ago | eddumelendez
    java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    why spring config server client failed get config from config server?

    Stack Overflow | 2 months ago | leo
    java.lang.ClassNotFoundException: org.springframework.retry.annotation.EnableRetry
  6. 0

    Spring boot non-fatal errors ClassNotFoundException

    Stack Overflow | 2 years ago | alexanoid
    java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.EnableWebSecurity

  1. andyglick 6 times, last 5 months ago
  2. Nikolay Rybak 4 times, last 5 months ago
  3. WoodenDoors 2 times, last 9 months ago
  4. tzrlk 1 times, last 5 months ago
  5. archenroot 1 times, last 1 week ago
63 more registered users
25 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

    org.springframework.security.config.annotation.web.configuration.EnableWebSecurity

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)[na:1.7.0_51]
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)[na:1.7.0_51]
    3. java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_51]
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)[na:1.7.0_51]
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)[na:1.7.0_51]
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)[na:1.7.0_51]
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)[na:1.7.0_51]
    7 frames
  3. Spring Core
    SimpleMetadataReaderFactory.getMetadataReader
    1. org.springframework.core.type.classreading.RecursiveAnnotationAttributesVisitor.visitEnd(RecursiveAnnotationAttributesVisitor.java:47)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    2. org.springframework.asm.ClassReader.readAnnotationValues(ClassReader.java:1802)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    3. org.springframework.asm.ClassReader.accept(ClassReader.java:642)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    4. org.springframework.asm.ClassReader.accept(ClassReader.java:508)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    5. org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:64)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    6. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    7. org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    8. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:93)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    8 frames
  4. Spring Boot AutoConfigure
    EnableAutoConfigurationImportSelector.selectImports
    1. org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClasses.<init>(AutoConfigurationSorter.java:121)[spring-boot-autoconfigure-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    2. org.springframework.boot.autoconfigure.AutoConfigurationSorter.getInPriorityOrder(AutoConfigurationSorter.java:60)[spring-boot-autoconfigure-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    3. org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.selectImports(EnableAutoConfigurationImportSelector.java:72)[spring-boot-autoconfigure-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    3 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:423)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    2. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:180)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    3. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:306)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    4. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:239)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    5. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    6. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    7. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    8. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
    8 frames
  6. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[spring-boot-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)[spring-boot-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:321)[spring-boot-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:961)[spring-boot-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:950)[spring-boot-1.2.1.RELEASE.jar:1.2.1.RELEASE]
    5 frames
  7. com.wallapop.web
    Application.main
    1. com.wallapop.web.Application.main(Application.java:14)[classes/:na]
    1 frame