title: Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]
body: <p>I created a project with spring boot 2.1.1 and when I try to lift it I get the following error:</p>
  
  <blockquote>
    <p>2018-12-10 19:23:14.837 ERROR 8096 --- [           main] o.s.boot.SpringApplication               : Application run failed</p>
    
    <p>java.lang.IllegalStateException: Error processing condition on
    org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer
      at
    org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:181)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:141)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:327)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:691)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:528)
    ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]     at
    org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
    [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]     at
    org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
    [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]     at
    org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
    [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]     at
    org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
    [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]     at
    org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
    [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]     at
    atuq.FrigorificoApplication.main(FrigorificoApplication.java:14)
    [classes/:na] Caused by: java.lang.IllegalStateException: Failed to
    introspect Class
    [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]
    from ClassLoader [sun.misc.Launcher$AppClassLoader@73d16e93]  at
    org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:686)
    ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]    at
    org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:583)
    ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]    at
    org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:568)
    ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]    at
    org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:626)
    ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]    at
    java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
    ~[na:1.8.0_181]   at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:721)
    ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]   at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:662)
    ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]   at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:630)
    ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]   at
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518)
    ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]   at
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1023)
    ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]   at
    org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:195)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:159)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanType(BeanTypeRegistry.java:152)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:140)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    java.util.Iterator.forEachRemaining(Iterator.java:116) ~[na:1.8.0_181]
      at
    org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:135)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.getNamesForType(BeanTypeRegistry.java:97)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:298)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:289)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:278)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:189)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:160)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  at
    org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
    ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE]  ... 16
    common frames omitted Caused by: java.lang.NoClassDefFoundError:
    javax/servlet/Filter  at java.lang.Class.getDeclaredMethods0(Native
    Method) ~[na:1.8.0_181]   at
    java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    ~[na:1.8.0_181]   at
    java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_181]
      at
    org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:668)
    ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]    ... 38 common frames
    omitted Caused by: java.lang.ClassNotFoundException:
    javax.servlet.Filter  at
    java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    ~[na:1.8.0_181]   at
    java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    ~[na:1.8.0_181]   at
    java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]
      ... 42 common frames omitted</p>
  </blockquote>
  
  <p>paso el pom.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.1.1.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;atuq&lt;/groupId&gt;
      &lt;artifactId&gt;frigorifico&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;name&gt;frigorifico&lt;/name&gt;
      &lt;description&gt;Frigorifico Malargue&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-mail&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
              &lt;artifactId&gt;jjwt&lt;/artifactId&gt;
              &lt;version&gt;0.9.0&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-collections4&lt;/artifactId&gt;
              &lt;version&gt;4.1&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-collections&lt;/groupId&gt;
              &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
              &lt;version&gt;3.2.2&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>