title: Spring Boot on Glassfish
body: <p>there I'm getting this during Spring Boot deployment to GF3,4
  although it is know problem see </p>
  
  <p><a href="https://github.com/spring-projects/spring-boot/issues/1733" rel="nofollow">spring boot problem</a></p>
  
  <p><a href="https://github.com/spring-projects/spring-boot/issues/1065" rel="nofollow">another</a></p>
  
  <p>there is nowhere solution to be found, except for the hack with try/catch in GF sources. </p>
  
  <p>The whole problem is about @Conditional... Spring-Boot annotations, which holds classes references that are not on CP and this GF check disables the usage of Spring-Boot.</p>
  
  <p>I don't want to abandon Spring-Boot, but switching off @EnableAutoconfiguration is not working, exclude auto-config classes in the annotation does not work either. Is there a way around(throw away all auto-configs) or I am <strong>doomed</strong> and need to fall back to vanilla Spring????? </p>
  
  <p>Everybody is giving hands away as it seems to be GF problem. Any hack advice appreciated.</p>
  
  <pre><code>WARNING|glassfish3.1.2|global|_ThreadID=86;_ThreadName=Thread-2;|Error in annotation processing: java.lang.NoClassDefFoundError: org/springframework/batch/core/configuration/annotation/BatchConfigurer|#]
  
  WARNING|glassfish3.1.2|global|_ThreadID=86;_ThreadName=Thread-2;|Error in annotation processing: java.lang.NoClassDefFoundError: org/springframework/batch/core/configuration/annotation/BatchConfigurer|#]
  
  SEVERE|glassfish3.1.2|global|_ThreadID=86;_ThreadName=Thread-2;|Class [ org/apache/solr/client/solrj/SolrServer ] not found. Error while loading [ class org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration ]|#]
  
  SEVERE|glassfish3.1.2|global|_ThreadID=86;_ThreadName=Thread-2;|Class [ liquibase/integration/spring/SpringLiquibase ] not found. Error while loading [ class org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration$LiquibaseConfiguration ]|#]
  
  SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=86;_ThreadName=Thread-2;|Exception while deploying the app [PaySafeCardConnector-1.0-SNAPSHOT]|#]
  
  SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=86;_ThreadName=Thread-2;|sun.reflect.annotation.TypeNotPresentExceptionProxy
  java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
      at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:715)
      at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:522)
      at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:348)
  </code></pre>