Mimoto docker issue

Hi Team, We are trying to add the mimoto service to the docker compose.

We are getting the below while starting the mimoto service

mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
mimoto-service-1        | 	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) ~[spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
mimoto-service-1        | 	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) ~[spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
mimoto-service-1        | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) ~[spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
mimoto-service-1        | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) ~[spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
mimoto-service-1        | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) ~[spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
mimoto-service-1        | 	at io.mosip.mimoto.MimotoServiceApplication.main(MimotoServiceApplication.java:73) ~[classes!/:0.10.0]
mimoto-service-1        | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
mimoto-service-1        | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
mimoto-service-1        | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
mimoto-service-1        | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
mimoto-service-1        | 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[mimoto.jar:0.10.0]
mimoto-service-1        | 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[mimoto.jar:0.10.0]
mimoto-service-1        | 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[mimoto.jar:0.10.0]
mimoto-service-1        | 	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) ~[mimoto.jar:0.10.0]
mimoto-service-1        | Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'mosip.auth.adapter.impl.basepackage' in value "${mosip.auth.adapter.impl.basepackage}"
mimoto-service-1        | 	at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:172) ~[spring-core-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124) ~[spring-core-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:237) ~[spring-core-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:211) ~[spring-core-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.core.env.AbstractEnvironment.resolveRequiredPlaceholders(AbstractEnvironment.java:567) ~[spring-core-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.resolveBasePackage(ClassPathScanningCandidateComponentProvider.java:481) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:420) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:316) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:275) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:132) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:288) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:202) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170) ~[spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
mimoto-service-1        | 	... 21 common frames omitted
mimoto-service-1        | 

mosip.auth.adapter.impl.basepackage configuration exists on the mimoto-default.properties. Please let us know if we are missing anything.

Note : We are able to run the mimoto as a java application. We even tried building the image from the same code which works when run as a java application, still got the same issue.

1 Like

Hi @Manju_Bhagwat

Apologies for the delayed reply from our end, one of our technical experts Inji will look into this shortly. @swatigoel Please assist here!

Best regards,
Team MOSIP

Hi @Manju_Bhagwat
We are facing issues to run mimoto in local and working towards fixing by disabling few dependencies which are unnecessary in local setup.

We will share the update soon.
Thanks

1 Like