簡體   English   中英

JHipster微服務CloudFoundry部署錯誤

[英]JHipster microservices cloudfoundry deployment error

使用cloudfoundry部署到雲時,出現以下異常。 任何jhipster部署都從此開始。 即使將jhipster注冊表應用程序部署到雲中,也會出現相同的錯誤。

應用程序在本地運行,沒有錯誤。

2017-11-11T13:40:10.75 + 0300 [APP / PROC / WEB / 0]退出2017-11-11 10:40:10.748警告12 --- [main] ationConfigEmbeddedWebApplicationContext:上下文初始化期間遇到異常-取消刷新嘗試:org.springframework.beans.factory.BeanCreationException:在類路徑資源[org / cloudfoundry / container / customizer / boot1 / AllowLinkingAutoConfiguration.class]中定義名稱為'allowLinkingEmbeddedServletContainerCustomizer'的bean創建時出錯:合並后的bean定義的后處理失敗; 嵌套的異常是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警告12- -[main] cncsources.URLConfigurationSource:不會將任何URL輪詢為動態配置源。 2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.BeanCreationException:在類路徑資源[org / cloudfoundry / container中定義的名稱為'allowLinkingEmbeddedServletContainerCustomizer'的bean創建時出錯/customizer/boot1/AllowLinkingAutoConfiguration.class]:合並bean定義的后處理失敗; 嵌套異常是java.lang.NoClassDefFoundError:org / apache / catalina / Context 2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.support.AbstractBeanFactory處退出。 doGetBean(AbstractBeanFactory.java:302)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306 )2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)上退出2017-11-11T13:40 :11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)處退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0 ]在org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)上退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.util.ReflectionUtils上退出.getDeclaredMethods(ReflectionUtils.java:613)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在java.lang.ClassLoader.loadClass(ClassLoader.java:424)上退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.boot.loader上退出.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在java.lang.ClassLoader.loadClass(ClassLoader.java:357)退出2017-11 -11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)處輸出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在io.github.jhipster.registry.JHipsterRegistryApp.main處(JHipsterRegistryApp.java:75)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在java.lang.reflect.Method.in退出 voke(Method.java:498)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)上退出2017- 11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT原因:java.lang.NoClassDefFoundError:org / apache / catalina / Context 2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT ...省略了21個通用框架2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT在java.lang.Class.getDeclaredMethods0(本機方法)2017-11- 11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在java.lang.Class.privateGetDeclaredMethods(Class.java:2701)處退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]退出org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:206)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]退出org.springframework。 beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:125)2017年11月11日 T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在java.net.URLClassLoader.findClass(URLClassLoader.java:381)退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT ...省略了32個通用框架2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT 2017-11-11 10:40:11.661錯誤12 --- [main] osboot .SpringApplication:應用程序啟動失敗2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT在sun.reflect.NativeMethodAccessorImpl.invoke0(本機方法)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)處退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework處退出.boot.loader.Launcher.launch(Launcher.java:87)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在java.lang.Class.getDeclaredMethods(Class.java:1975 )2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:489)上退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springf上退出 ramework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:992)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT導致原因:java.lang.ClassNotFoundException:org。 apache.catalina.Context 2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)上退出2017-11 -11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)上退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0 ]在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)2017年11月11日T13:40:11。 66 + 0300 [APP / PROC / WEB / 0]在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)上退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.boot.SpringApplication.run(SpringApplication.java:303)處退出2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在sun.reflect.NativeMethodAccessorImpl.invoke處退出NativeMethodAccessorImpl.java:62)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.boot.loader.Launcher.launch(Launcher.java:50)上退出2017-11-11 11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]在org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:187)處退出2017-11-11T13:40:11.66 + 0300 [ APP / PROC / WEB / 0]退出org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:295)2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0]退出Ø rg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:523)2017-11-11T13:40:12.19 + 0300 [APP / PROC / WEB / 0] OUT退出狀態1 2017-11-11T13: 40:12.22 + 0300 [CELL / 0] OUT退出狀態0

它必須與幾天前的以下提交有關

構建包

定制器

我現在通過將buildpack URL更改為在/deploy/cloudfoundry/manifest.yml中包含 v3.19.2來使用該更改之前的版本,使用舊的定制程序來解決此問題

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM