title: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
body: <p>I have a good working application (when I start it in an Eclipse IDE),
  but when I trying to start it like standalone jar by this way:</p>
  
  <p>java -jar -Duser.language=en -Duser.region=us Soap2Gis-0.0.1-SNAPSHOT.jar</p>
  
  <p>I've got next issue:</p>
  
  <pre><code>18-10-2017 13:35:22.604 [main] ERROR o.s.boot.SpringApplication - Application startup failed
  org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.ric.web.Soap2GisApplication]; nested exception is java.lang.IllegalArgumentException: MALFORMED
  </code></pre>
  
  <p>Full error stack:</p>
  
  <pre><code>18-10-2017 13:35:22.590 [main] ERROR o.s.b.f.s.DefaultListableBeanFactory - Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception
  java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@65e2dbf3: startup date [Wed Oct 18 13:35:22 NOVT 2017]; root of context hierarchy
      at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:414)
      at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)
      at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
      at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.destroySingletons(FactoryBeanRegistrySupport.java:230)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)
      at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1030)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)
      at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
      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 com.ric.web.Soap2GisApplication.main(Soap2GisApplication.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
      at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
      at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
      at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  18-10-2017 13:35:22.604 [main] ERROR o.s.boot.SpringApplication - Application startup failed
  org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.ric.web.Soap2GisApplication]; nested exception is java.lang.IllegalArgumentException: MALFORMED
      at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:181)
      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:270)
      at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93)
      at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
      at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
      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 com.ric.web.Soap2GisApplication.main(Soap2GisApplication.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
      at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
      at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
      at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  Caused by: java.lang.IllegalArgumentException: MALFORMED
      at java.util.zip.ZipCoder.toString(Unknown Source)
      at java.util.zip.ZipFile.getZipEntry(Unknown Source)
      at java.util.zip.ZipFile.access$900(Unknown Source)
      at java.util.zip.ZipFile$ZipEntryIterator.next(Unknown Source)
      at java.util.zip.ZipFile$ZipEntryIterator.nextElement(Unknown Source)
      at java.util.zip.ZipFile$ZipEntryIterator.nextElement(Unknown Source)
      at java.util.jar.JarFile$JarEntryIterator.next(Unknown Source)
      at java.util.jar.JarFile$JarEntryIterator.nextElement(Unknown Source)
      at java.util.jar.JarFile$JarEntryIterator.nextElement(Unknown Source)
      at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(PathMatchingResourcePatternResolver.java:621)
      at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:475)
      at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:279)
      at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1293)
      at org.springframework.context.support.GenericApplicationContext.getResources(GenericApplicationContext.java:233)
      at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:278)
      at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:272)
      at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:135)
      at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:287)
      at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
      at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198)
      at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167)
      ... 19 common frames omitted
  </code></pre>
  
  <p>my Soap2GisApplication:</p>
  
  <pre><code>package com.ric.web;
  
  import javax.security.auth.message.config.AuthConfigFactory;
  
  import org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl;
  import org.springframework.boot.ExitCodeGenerator;
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.context.ApplicationContext;
  
  import com.ric.bill.Config;
  import com.ric.st.impl.TaskController;
  
  import ru.gosuslugi.dom.signature.demo.commands.Command;
  import ru.gosuslugi.dom.signature.demo.commands.SignCommand;
  
  @SpringBootApplication
  public class Soap2GisApplication {
  
      public static Command sc;
      private static ApplicationContext applicationContext = null;
  
      public static void main(String[] args) {
          System.setProperty("org.apache.xml.security.resource.config", "resource/tj-msxml.xml");
  
          try {
              sc = new SignCommand();
          } catch (Exception e1) {
              e1.printStackTrace();
          }
  
          String mode = args != null &amp;&amp; args.length &gt; 0 ? args[0] : null;
  
          if (AuthConfigFactory.getFactory() == null) {
              AuthConfigFactory.setFactory(new AuthConfigFactoryImpl());
          }
  
          if (applicationContext != null &amp;&amp; mode != null &amp;&amp; "stop".equals(mode)) {
              System.exit(SpringApplication.exit(applicationContext, new ExitCodeGenerator() {
                  @Override
                  public int getExitCode() {
                      return 0;
                  }
              }));
          } else {
              System.out.println("CHECCCCCCCCCCCCCK 1");
              SpringApplication app = new SpringApplication(Soap2GisApplication.class);
              System.out.println("CHECCCCCCCCCCCCCK 2");
              applicationContext = app.run(args);
              System.out.println("CHECCCCCCCCCCCCCK 3");
  
              TaskController taskContr = applicationContext.getBean(TaskController.class);
              Config config = applicationContext.getBean(Config.class);
  
              if (config.getAppTp() == 1) {
                  taskContr.otherTask();
  
              } else {
  
                  try {
                      taskContr.searchTask();
                  } catch (Exception e) {
                      e.printStackTrace();
                  }
  
              }
  
              SpringApplication.exit(applicationContext, () -&gt; 0);
          }
  
      }
  }
  </code></pre>
  
  <p>my AppConfig:</p>
  
  <pre><code>package com.ric.web;
  
  import org.springframework.beans.BeansException;
  import org.springframework.cache.annotation.EnableCaching;
  import org.springframework.context.ApplicationContext;
  import org.springframework.context.ApplicationContextAware;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.ComponentScan;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.context.annotation.ImportResource;
  import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
  import org.springframework.scheduling.annotation.EnableAsync;
  import org.springframework.scheduling.annotation.EnableScheduling;
  import org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView;
  import org.springframework.web.servlet.view.jasperreports.JasperReportsViewResolver;
  
  @Configuration
  @ComponentScan({"com.ric.st", "com.ric.bill.dao", "com.ric.bill.mm", "com.ric.bill", "com.ric.st.builder"})
  @ImportResource("spring.xml")
  @EnableCaching
  @EnableAsync
  @EnableScheduling
  @EnableJpaRepositories(basePackages="com.ric.bill.dao")
  public class AppConfig  implements ApplicationContextAware {
  
      static ApplicationContext ctx = null;
  
      public void setApplicationContext(ApplicationContext context) throws BeansException {
          ctx = context;
      }
  
      /**
       * Note that this is a static method which expose ApplicationContext
       **/
      public static ApplicationContext getContext(){
            return ctx;
      }
  
      @Bean
      public JasperReportsViewResolver getJasperReportsViewResolver() {
        JasperReportsViewResolver resolver = new JasperReportsViewResolver();
        //resolver.setPrefix("classpath:/reports/");
        resolver.setPrefix("classpath:/");
        //resolver.setSuffix(".jasper");
        resolver.setSuffix(".jrxml");
        resolver.setReportDataKey("datasource");
        resolver.setViewNames("rep*");
        resolver.setViewClass(JasperReportsMultiFormatView.class);
        resolver.setOrder(0);
        return resolver;
      }  
  
  
  }
  </code></pre>
  
  <p>my pom.xml:</p>
  
  <pre><code>&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;groupId&gt;com.ric.gis&lt;/groupId&gt;
      &lt;artifactId&gt;Soap2Gis&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;cata1&lt;/id&gt;
              &lt;name&gt;cata&lt;/name&gt;
              &lt;url&gt;http://repo.boundlessgeo.com/main/&lt;/url&gt;
          &lt;/repository&gt;
  
      &lt;/repositories&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;!-- Spring --&gt;
          &lt;spring-framework.version&gt;4.2.5.RELEASE&lt;/spring-framework.version&gt;
          &lt;!-- Hibernate / JPA --&gt;
          &lt;hibernate.version&gt;5.1.0.Final&lt;/hibernate.version&gt;
          &lt;!-- Test --&gt;
          &lt;junit.version&gt;4.12&lt;/junit.version&gt;
  
          &lt;start-class&gt;com.ric.web.Soap2GisApplication&lt;/start-class&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&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;1.5.6.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&gt;
  
          &lt;dependency&gt;
            &lt;groupId&gt;org.quartz-scheduler&lt;/groupId&gt;
            &lt;artifactId&gt;quartz&lt;/artifactId&gt;
            &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.quartz-scheduler&lt;/groupId&gt;
            &lt;artifactId&gt;quartz-jobs&lt;/artifactId&gt;
            &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- BWC --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.ric.bill&lt;/groupId&gt;
              &lt;artifactId&gt;BWC&lt;/artifactId&gt;
              &lt;version&gt;0.0.2-SNAPSHOT&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-loader&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&lt;/artifactId&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;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-autoconfigure&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat-catalina&lt;/artifactId&gt;
              &lt;version&gt;9.0.0.M6&lt;/version&gt;
          &lt;/dependency&gt;
  &lt;!--        &lt;dependency&gt;
              &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat-embed-core&lt;/artifactId&gt;
              &lt;version&gt;8.5.2&lt;/version&gt;
          &lt;/dependency&gt; --&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/javax.security.auth.message/javax.security.auth.message-api --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.security.auth.message&lt;/groupId&gt;
              &lt;artifactId&gt;javax.security.auth.message-api&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Test Artifacts --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
            &lt;groupId&gt;org.ehcache&lt;/groupId&gt;
            &lt;artifactId&gt;ehcache2&lt;/artifactId&gt;
            &lt;version&gt;3.3.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.ehcache&lt;/groupId&gt;
              &lt;artifactId&gt;ehcache-terracotta&lt;/artifactId&gt;
              &lt;version&gt;2.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
            &lt;groupId&gt;javax.cache&lt;/groupId&gt;
            &lt;artifactId&gt;cache-api&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;c3p0&lt;/groupId&gt;
              &lt;artifactId&gt;c3p0&lt;/artifactId&gt;
              &lt;version&gt;0.9.1.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 --&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.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
  &lt;!--        &lt;dependency&gt;
              &lt;groupId&gt;com.oracle&lt;/groupId&gt;
              &lt;artifactId&gt;oracle&lt;/artifactId&gt;
              &lt;version&gt;10.2.0.2.0&lt;/version&gt;
          &lt;/dependency&gt;
   --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;trustedJava&lt;/groupId&gt;
              &lt;artifactId&gt;com.ric.tjava&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/com.diffplug.durian/durian --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.diffplug.durian&lt;/groupId&gt;
              &lt;artifactId&gt;durian&lt;/artifactId&gt;
              &lt;version&gt;3.4.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpmime&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.beust&lt;/groupId&gt;
              &lt;artifactId&gt;jcommander&lt;/artifactId&gt;
              &lt;version&gt;1.48&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.bouncycastle&lt;/groupId&gt;
              &lt;artifactId&gt;bcpkix-jdk15on&lt;/artifactId&gt;
              &lt;version&gt;1.55&lt;/version&gt;
          &lt;/dependency&gt;
  
  &lt;!--        &lt;dependency&gt;
              &lt;groupId&gt;org.signserver.xades4j&lt;/groupId&gt;
              &lt;artifactId&gt;xades4j&lt;/artifactId&gt;
              &lt;version&gt;1.3.2-signserver4&lt;/version&gt;
          &lt;/dependency&gt;
   --&gt;
  
           &lt;dependency&gt;
            &lt;groupId&gt;com.googlecode.xades4j&lt;/groupId&gt;
            &lt;artifactId&gt;xades4j&lt;/artifactId&gt;
            &lt;version&gt;1.3.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
              &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
              &lt;version&gt;2.2.7&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
  
      &lt;build&gt;
          &lt;plugins&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;excludes&gt;
                          &lt;exclude&gt;config.properties&lt;/exclude&gt;
                      &lt;/excludes&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt; 
  
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
                &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                &lt;configuration&gt;
                      &lt;excludes&gt;
                          &lt;exclude&gt;
                              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                              &lt;artifactId&gt;spring-boot-loader&lt;/artifactId&gt;
                          &lt;/exclude&gt;
                      &lt;/excludes&gt;
                &lt;/configuration&gt;                
  
                &lt;executions&gt;
                  &lt;execution&gt;
                    &lt;goals&gt;
                      &lt;goal&gt;repackage&lt;/goal&gt;
                    &lt;/goals&gt;
                  &lt;/execution&gt;
                &lt;/executions&gt;
  
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;configuration&gt;
                              &lt;target&gt; 
                                  &lt;zip destfile="${project.build.directory}/${project.build.finalName}.jar" update="true" compress="store"&gt;
                                      &lt;fileset dir="${project.build.directory}/classes" includes="com/ric/web/Bootstrap.class"/&gt;
                                  &lt;/zip&gt;
                              &lt;/target&gt;
                          &lt;/configuration&gt;
  
                          &lt;goals&gt;
                              &lt;goal&gt;run&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>
  
  <p>my Spring.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:cache="http://www.springframework.org/schema/cache"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:tx="http://www.springframework.org/schema/tx"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
      http://www.springframework.org/schema/tx
      http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context-3.0.xsd"&gt;
  
      &lt;cache:annotation-driven /&gt;
  
      &lt;bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
          destroy-method="close"&gt;
          &lt;property name="driverClass" value="oracle.jdbc.driver.OracleDriver" /&gt;
          &lt;property name="jdbcUrl" value="jdbc:oracle:thin:@192.168.100.1:1521:xx" /&gt;
  
          &lt;property name="user" value="xxx" /&gt;
          &lt;property name="password" value="xxx" /&gt;
          &lt;property name="maxIdleTime" value="30" /&gt;
          &lt;property name="maxPoolSize" value="100" /&gt;
          &lt;property name="minPoolSize" value="10" /&gt;
          &lt;property name="initialPoolSize" value="10" /&gt;
          &lt;property name="idleConnectionTestPeriod" value="20" /&gt;
          &lt;property name="testConnectionOnCheckin" value="false" /&gt;
          &lt;property name="testConnectionOnCheckout" value="false" /&gt;
          &lt;property name="maxStatements" value="5000" /&gt; 
          &lt;property name="numHelperThreads" value="10" /&gt;
      &lt;/bean&gt;
  
      &lt;bean
          class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
          id="entityManagerFactory"&gt;
          &lt;property name="dataSource" ref="dataSource" /&gt;
          &lt;property name="persistenceUnitName" value="billJPAUint" /&gt;
          &lt;property name="packagesToScan"&gt;
              &lt;list&gt;
                  &lt;value&gt;com.ric.bill&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
  
          &lt;property name="jpaProperties"&gt;
              &lt;props&gt;
                  &lt;prop key="hibernate.enable_lazy_load_no_trans"&gt;true&lt;/prop&gt;
              &lt;/props&gt;
          &lt;/property&gt;
  
          &lt;property name="jpaVendorAdapter"&gt;
              &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" /&gt;
          &lt;/property&gt;
  
      &lt;/bean&gt;
  
      &lt;bean class="org.springframework.orm.jpa.JpaTransactionManager"
          id="transactionManager"&gt;
          &lt;property name="entityManagerFactory" ref="entityManagerFactory" /&gt;
      &lt;/bean&gt;
  
      &lt;tx:annotation-driven mode="proxy"
          transaction-manager="transactionManager" /&gt;
  
      &lt;context:spring-configured /&gt;
      &lt;context:annotation-config /&gt;
  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>Also I've read this article, from stackoverflow with similar problem, but it doesn't help me:
  <a href="https://stackoverflow.com/questions/35070455/springboot-beandefinitionstoreexception-failed-to-parse-configuration-class">Springboot :BeanDefinitionStoreException: Failed to parse configuration class</a></p>
  
  <p>I really stuck on this issue. Moreover this app (standalone jar) was well-working several days ago...</p>