Hi Patrick, Just to clarify, when u deploy locally with minikube it works fine but when you deploy it on GKE it doesn't work?
Regrads, Courage On Thu, Mar 28, 2019, 7:28 AM Mua Rachmann <[email protected]> wrote: > Hello Patrick, > > IMO i think it would be good for production. > > Regards Mua > > On Thu, Mar 28, 2019 at 12:24 PM Patrick Finken <[email protected]> > wrote: > > > Hi, > > > > I'm wondering if it's because of the way I build the war file. Executing > > the command ` ./gradlew tomcatrunwar` is enough to build the project for > > production? > > > > Patrick > > > > On Tue, Mar 26, 2019 at 8:48 AM Patrick Finken <[email protected] > > > > wrote: > > > > > Hello, > > > > > > I have a containerized version of Fineract 1.x that's works well > locally > > > with docker-compose or minikube. But not when I deploy it to Google > > > Kubernetes Engine. I have an error (cf end of the email). > > > To create my docker image, I use the fineract-provider.war file that > I've > > > built from a recent code source. > > > On the other hand, it seems to work if I build my docker image with the > > > file fineract-provider.war from the official mifos release. > > > > > > Does someone have an idea of what can cause the error? Maybe something > > > that changed between the last release and the current version? > > > > > > Error on GKE: > > > > > >> org.springframework.beans.factory.BeanCreationException: Error > creating > > >> bean with name > > >> > > > 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor': > > >> Invocation of init method failed; nested exception is > > >> java.lang.AbstractMethodError: > > >> > > > org.apache.bval.jsr303.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider; > > >> at > > >> > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1572) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:199) > > >> ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:619) > > >> ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465) > > >> ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) > > >> ~[spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.boot.SpringApplication.refresh(SpringApplication.java:690) > > >> ~[spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.boot.SpringApplication.run(SpringApplication.java:322) > > >> ~[spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.boot.context.web.SpringBootServletInitializer.run(SpringBootServletInitializer.java:135) > > >> [spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:126) > > >> [spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:82) > > >> [spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) > > >> [spring-web-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5229) > > >> [catalina.jar:8.5.30] at > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > >> [catalina.jar:8.5.30] at > > >> > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) > > >> [catalina.jar:8.5.30] at > > >> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) > > >> [catalina.jar:8.5.30] at > > >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) > > >> [catalina.jar:8.5.30] at > > >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985) > > >> [catalina.jar:8.5.30] at > > >> > > > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1856) > > >> [catalina.jar:8.5.30] at > > >> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > > >> [na:1.8.0_151] at > > java.util.concurrent.FutureTask.run(FutureTask.java:266) > > >> [na:1.8.0_151] at > > >> > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > > >> [na:1.8.0_151] at > > >> > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > > >> [na:1.8.0_151] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151] > > >> Caused by: java.lang.AbstractMethodError: > > >> > > > org.apache.bval.jsr303.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider; > > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > >> ~[na:1.8.0_151] at > > >> > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > > >> ~[na:1.8.0_151] at > > >> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > >> ~[na:1.8.0_151] at java.lang.reflect.Method.invoke(Method.java:498) > > >> ~[na:1.8.0_151] at > > >> > > > org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:203) > > >> ~[spring-core-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:188) > > >> ~[spring-core-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.configureParameterNameProviderIfPossible(LocalValidatorFactoryBean.java:276) > > >> ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:245) > > >> ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$Jsr303ValidatorFactory.run(ConfigurationPropertiesBindingPostProcessor.java:380) > > >> ~[spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.afterPropertiesSet(ConfigurationPropertiesBindingPostProcessor.java:175) > > >> ~[spring-boot-1.2.8.RELEASE.jar:1.2.8.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at > > >> > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568) > > >> ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] > > >> > > > > > > regards, > > > -- > > > Patrick Finken, > > > Consultant > > > > > > > > > > -- > > Patrick Finken, > > Owner > > >
