Last couple of days, with no change to any configuration, I've started getting the following exception when deploying my jhipster/springboot based applications to cloudfoundry. containers on cloud. I've tried different simple and complex apps, different cloud providers (IBM and Pivotal) and result is the same. Applications run as expected on local machine.
Can this be a java build pack issue?
Beginning of log:
Creating container
Successfully created container
Downloading build artifacts cache...
Downloading app package...
Downloaded app package (64.2M)
-----> Java Buildpack 96dac92 | https://github.com/cloudfoundry/java-buildpack#96dac92
-----> Downloading Jvmkill Agent 1.11.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/jvmkill-1.11.0_RELEASE.so (0.0s)
-----> Downloading Open Jdk JRE 1.8.0_152 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_152.tar.gz (0.7s)
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
JVM DNS caching disabled in lieu of BOSH DNS caching
-----> Downloading Open JDK Like Memory Calculator 3.10.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-3.10.0_RELEASE.tar.gz (0.0s)
Loaded Classes: 27326, Threads: 300
-----> Downloading Client Certificate Mapper 1.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.3.0_RELEASE.jar (0.0s)
-----> Downloading Container Customizer 2.2.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-customizer/container-customizer-2.2.0_RELEASE.jar (0.0s)
-----> Downloading Container Security Provider 1.10.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.10.0_RELEASE.jar (0.0s)
-----> Downloading Spring Auto Reconfiguration 2.2.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto-reconfiguration/auto-reconfiguration-2.2.0_RELEASE.jar (0.0s)
Exception:
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT 2017-11-11 23:24:45.430 ERROR 18 --- [ main] o.s.boot.SpringApplication : Application startup failed
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'allowLinkingEmbeddedServletContainerCustomizer' defined in class path resource [org/cloudfoundry/container/customizer/boot1/AllowLinkingAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect bean class [org.cloudfoundry.container.customizer.boot1.AllowLinkingEmbeddedServletContainerCustomizer] for persistence metadata: could not find class that it depends on
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at com.coviot.DenemeuaaApp.main(DenemeuaaApp.java:67)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.lang.reflect.Method.invoke(Method.java:498)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT Caused by: java.lang.IllegalStateException: Failed to introspect bean class [org.cloudfoundry.container.customizer.boot1.AllowLinkingEmbeddedServletContainerCustomizer] for persistence metadata: could not find class that it depends on
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:401)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:333)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:992)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:523)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT ... 21 common frames omitted
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/Context
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.lang.Class.getDeclaredMethods0(Native Method)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.lang.Class.getDeclaredMethods(Class.java:1975)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:613)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:489)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.buildPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:431)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:397)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT ... 24 common frames omitted
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT Caused by: java.lang.ClassNotFoundException: org.apache.catalina.Context
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2017-11-12T02:24:45.43+0300 [APP/PROC/WEB/0] OUT ... 31 common frames omitted
2017-11-12T02:24:45.78+0300 [APP/PROC/WEB/0] OUT Exit status 1
2017-11-12T02:24:45.78+0300 [CELL/SSHD/0] OUT Exit status 0
2017-11-12T02:24:45.79+0300 [CELL/0] OUT Stopping instance f434c874-3ed8-428f-5ccc-0722
2017-11-12T02:24:45.79+0300 [CELL/0] OUT Destroying container
Last couple of days, with no change to any configuration, I've started getting the following exception when deploying my jhipster/springboot based applications to cloudfoundry. containers on cloud. I've tried different simple and complex apps, different cloud providers (IBM and Pivotal) and result is the same. Applications run as expected on local machine.
Can this be a java build pack issue?
Beginning of log:
Exception: