2017-11-11 21 views
1

cloudfoundry로 클라우드에 배포 할 때 다음 예외가 있습니다. 이것은 모든 jipster 배치로 시작됩니다. jhipster-registry 응용 프로그램을 클라우드에 배포 할 때도 동일한 오류가 발생합니다.JHipster 마이크로 서비스 cloudfoundry 배포 오류

응용 프로그램이 오류없이 로컬로 실행됩니다. 그것은 다음과 뭔가 할 일이 있어야합니다

2017-11-11T13:40:10.75+0300 [APP/PROC/WEB/0] OUT 2017-11-11 10:40:10.748 WARN 12 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 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.NoClassDefFoundError: org/apache/catalina/Context 2017-11-11T13:40:11.54+0300 [APP/PROC/WEB/0] OUT 2017-11-11 10:40:11.535 WARN 12 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2017-11-11T13:40:11.66+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.NoClassDefFoundError: org/apache/catalina/Context 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:613) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at io.github.jhipster.registry.JHipsterRegistryApp.main(JHipsterRegistryApp.java:75) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.lang.reflect.Method.invoke(Method.java:498) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/Context 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT ... 21 common frames omitted 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.lang.Class.getDeclaredMethods0(Native Method) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:206) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:125) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT ... 32 common frames omitted 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT 2017-11-11 10:40:11.661 ERROR 12 --- [ main] o.s.boot.SpringApplication : Application startup failed 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at java.lang.Class.getDeclaredMethods(Class.java:1975) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:489) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:992) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT Caused by: java.lang.ClassNotFoundException: org.apache.catalina.Context 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:187) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:295) 2017-11-11T13:40:11.66+0300 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:523) 2017-11-11T13:40:12.19+0300 [APP/PROC/WEB/0] OUT Exit status 1 2017-11-11T13:40:12.22+0300 [CELL/0] OUT Exit status 0

답변

0

# v3의를 포함하여 buildpack URL을 변경하여 지금은 며칠 전

Buildpack

Customizer

나는 그것을 고정 커밋합니다. 19.2 in /deploy/cloudfoundry/manifest.yml 이전 변경 사항을 사용하려면 이전 사용자 정의 프로그램을 사용하십시오

buildpack: https://github.com/cloudfoundry/java-buildpack#v3.19.2 
+0

덕분에 문제가 해결되었습니다. –