I found the culprit: Tomcat 8.5. Basically, my docker container, based on Tomcat 8.5, was working only on my local computer. But not anywhere else like my laptop, GKE, GCE, Digital Ocean... Also, I tried to install my fineract.war file directly on a VM with tomcat 8.5 and it wasn't working either but it did work with tomcat 7.
So I just changed my docker container and based it on tomcat 7 and now everything is working fine. Now I can deploy my container on K8s, or in a VM. PS: Can someone confirm if he is able to install and run the latest version of fineract on tomcat 8.5? Just to check if it is an isolated issue or not. regards, Patrick On Thu, Mar 28, 2019 at 6:35 PM Vishwas Babu < [email protected]> wrote: > >>Does someone have an idea of what can cause the error? Maybe something > that > >> changed between the last release and the current version? > > The only changes to dependencies between the two was made with this commit > > https://github.com/apache/fineract/commit/8bfc1f63ab51f3f67ef600f3e94537fcd7f61e2e > . > The war is built with the command ./gradlew clean war > > Regards, > Vishwas > > > > On Tue, Mar 26, 2019 at 6:14 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
