title: Grails 3.3.2 - Error [main] o.s.boot.SpringApplication : Application startup failed
body: <p>I'm beginner with Grails and I want to do upgrade my plugin in Grails 2 to Grails 3. </p>
  
  <p>What I have done:</p>
  
  <ol>
  <li>I created my plugin ( create plugin ) with Grails 3.3.2</li>
  <li><code>grails run-app</code></li>
  <li>I recopied my plugin who is in Grails 2 in Grails 3</li>
  </ol>
  
  <p>When I run my app, following error appears:</p>
  
  <pre><code>2018-01-24 12:20:27.854 ERROR --- [           main] 
  o.s.boot.SpringApplication               : Application startup failed
  
  org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist
      at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:616)
      at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:299)
      at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
      at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606)
      at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:548)
      at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185)
      at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308)
      at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228)
      at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272)
      at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:92)
      at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
      at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
      at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
      at grails.boot.GrailsApp.run(GrailsApp.groovy:83)
      at grails.boot.GrailsApp.run(GrailsApp.groovy:387)
      at grails.boot.GrailsApp.run(GrailsApp.groovy:374)
      at grails.boot.GrailsApp$run.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      at pap_mailgv332.Application.main(Application.groovy:10)
  Caused by: java.io.FileNotFoundException: class path resource [org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist
      at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
      at org.springframework.core.type.classreading.SimpleMetadataReader.&lt;init&gt;(SimpleMetadataReader.java:50)
      at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98)
      at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
      at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:93)
      at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:693)
      at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getSuperClass(ConfigurationClassParser.java:857)
      at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:328)
      at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
      at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606)
      ... 22 common frames omitted
  
  Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=1024m; support was removed in 8.0
  Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':bootRun'.
   Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 1
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  Error |
  Failed to start server (Use --stacktrace to see the full trace)
  </code></pre>
  
  <p>Version : </p>
  
  <p>Grails : 3.3.2</p>
  
  <p>Form : 6.1.8</p>
  
  <p>IDE : IntelliJ 2017.2</p>
  
  <p>I tried much forum who were saying to change version of gorm, spring-boot-autoconfigure, groovy, spring-security-core, hibernate-java8 and more</p>
  
  <p>But nothing is working</p>