JHipster微服务cloudfoundry部署错误

时间:2017-11-11 10:43:53

标签: spring jhipster cloudfoundry jhipster-registry

使用cloudfoundry部署到云时出现以下异常。 这是任何jhipster部署开始hapening。即使将jhipster-registry应用程序部署到云,也会出现相同的错误。

应用程序在本地运行且没有错误。

  

2017-11-11T13:40:10.75 + 0300 [APP / PROC / WEB / 0] OUT 2017-11-11 10:40:10.748 WARN 12 --- [main] ationConfigEmbeddedWebApplicationContext:在上下文初始化期间遇到异常 - 取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建名称为' allowLinkingEmbeddedServletContainerCustomizer'在类路径资源中定义[org / cloudfoundry / container / customizer / boot1 / AllowLinkingAutoConfiguration.class]:合并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 WARN 12 --- [main] cncsources.URLConfigurationSource:不会将任何网址轮询为动态配置源。   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.BeanCreationException:创建名称为' allowLinkingEmbeddedServletContainerCustomizer'在类路径资源中定义[org / cloudfoundry / container / customizer / boot1 / AllowLinkingAutoConfiguration.class]:合并bean定义的后处理失败;嵌套异常是java.lang.NoClassDefFoundError:org / apache / catalina / Context   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT 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 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 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] 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 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 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 org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:206)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT 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个常用帧   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:应用程序启动失败   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 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 org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:489)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.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] OUT org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT 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 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 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 org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:295)   2017-11-11T13:40:11.66 + 0300 [APP / PROC / WEB / 0] OUT org.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

1 个答案:

答案 0 :(得分:0)

几天前,它必须与以下提交有一些东西

Buildpack

Customizer

我现在通过更改buildpack网址来修复它,在 /deploy/cloudfoundry/manifest.yml 中包含#v3.19.2 ,以便在更改之前使用该版本,使用旧的自定义程序

n <- length(clist)
g <- c(gl(n, 2, n))
lapply(split(clist, g), "do.call", what = "rbind")