Pre Registration

thanks @mayuradesh I tried your advice and run it in Intelli IDE. I added dependencies, build it, and then run it, all commands are done in the IDE. Now I am getting another error message. not sure what it means.

/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -jar /home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar
15:00:58,611 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
15:00:58,612 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
15:00:58,613 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/kernel-dataaccess-hibernate-1.2.0.1-SNAPSHOT.jar!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/kernel-keymanager-service-1.2.0.1-SNAPSHOT-lib.jar!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/khazana-1.2.0.1-SNAPSHOT.jar!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/kernel-pdfgenerator-itext-1.2.0.1-SNAPSHOT.jar!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/kernel-templatemanager-velocity-1.2.0.1-SNAPSHOT.jar!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/kernel-qrcodegenerator-zxing-1.2.0.1-SNAPSHOT.jar!/logback.xml]
15:00:58,614 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/kernel-idobjectvalidator-1.2.0.1-SNAPSHOT.jar!/logback.xml]
15:00:58,626 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@7d907bac - URL [jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/logback.xml] is not of type file
15:00:58,675 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
15:00:58,681 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@2:86 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]
15:00:58,681 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
15:00:58,686 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
15:00:58,952 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
15:00:58,952 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
15:00:58,953 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
15:00:58,953 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7791a895 - Registering current configuration as safe fallback point

{“@timestamp”:“2023-08-09T15:00:59.576+07:00”,“@version”:“1”,“message”:“Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@71b1176b: startup date [Wed Aug 09 15:00:59 ICT 2023]; root of context hierarchy”,“logger_name”:“org.springframework.context.annotation.AnnotationConfigApplicationContext”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/home/panharith/Documents/MPTC/MOSIP/PreReg/pre-registration/pre-registration/pre-registration-application-service/target/pre-registration-application-service-1.2.0.1-SNAPSHOT.jar!/BOOT-INF/lib/spring-core-5.0.6.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
{“@timestamp”:“2023-08-09T15:00:59.765+07:00”,“@version”:“1”,“message”:“Bean ‘configurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$defd5460] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)”,“logger_name”:“org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.0.2.RELEASE)

{“@timestamp”:“2023-08-09T15:00:59.979+07:00”,“@version”:“1”,“message”:“Fetching config from server at : http://localhost:51000/config",“logger_name”:“org.springframework.cloud.config.client.ConfigServicePropertySourceLocator”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:"pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:00.147+07:00”,“@version”:“1”,“message”:“Located environment: name=pre-registration, profiles=[mz], label=develop-v2, version=null, state=null”,“logger_name”:“org.springframework.cloud.config.client.ConfigServicePropertySourceLocator”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:00.147+07:00”,“@version”:“1”,“message”:“Located property source: CompositePropertySource {name=‘configService’, propertySources=}”,“logger_name”:“org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:00.191+07:00”,“@version”:“1”,“message”:“The following profiles are active: mz”,“logger_name”:“io.mosip.preregistration.application.PreRegistrationApplication”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:00.205+07:00”,“@version”:“1”,“message”:“Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7db12bb6: startup date [Wed Aug 09 15:01:00 ICT 2023]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@71b1176b”,“logger_name”:“org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:01.631+07:00”,“@version”:“1”,“message”:“BeanFactory id=6267b40a-c452-3592-8a7b-4ac3529180dd”,“logger_name”:“org.springframework.cloud.context.scope.GenericScope”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:01.934+07:00”,“@version”:“1”,“message”:“Bean ‘org.springframework.cache.annotation.ProxyCachingConfiguration’ of type [org.springframework.cache.annotation.ProxyCachingConfiguration$$EnhancerBySpringCGLIB$$bf58781] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)”,“logger_name”:“org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:01.972+07:00”,“@version”:“1”,“message”:“Bean ‘org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration’ of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c2e35163] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)”,“logger_name”:“org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.021+07:00”,“@version”:“1”,“message”:“Bean ‘org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$defd5460] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)”,“logger_name”:“org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.482+07:00”,“@version”:“1”,“message”:“Tomcat initialized with port(s): 9090 (http)”,“logger_name”:“org.springframework.boot.web.embedded.tomcat.TomcatWebServer”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.495+07:00”,“@version”:“1”,“message”:“Initializing ProtocolHandler ["http-nio-9090"]”,“logger_name”:“org.apache.coyote.http11.Http11NioProtocol”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.508+07:00”,“@version”:“1”,“message”:“Starting service [Tomcat]”,“logger_name”:“org.apache.catalina.core.StandardService”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.508+07:00”,“@version”:“1”,“message”:“Starting Servlet Engine: Apache Tomcat/8.5.31”,“logger_name”:“org.apache.catalina.core.StandardEngine”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.516+07:00”,“@version”:“1”,“message”:“The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]”,“logger_name”:“org.apache.catalina.core.AprLifecycleListener”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.590+07:00”,“@version”:“1”,“message”:“Initializing Spring embedded WebApplicationContext”,“logger_name”:“org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/preregistration/v1]”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:02.590+07:00”,“@version”:“1”,“message”:“Root WebApplicationContext: initialization completed in 2385 ms”,“logger_name”:“org.springframework.web.context.ContextLoader”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.246+07:00”,“@version”:“1”,“message”:“HikariPool-1 - Starting…”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.303+07:00”,“@version”:“1”,“message”:“HikariPool-1 - Start completed.”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.912+07:00”,“@version”:“1”,“message”:“Mapping filter: ‘characterEncodingFilter’ to: [/]“,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-08-09T15:01:03.912+07:00”,“@version”:“1”,“message”:"Mapping filter: ‘tracingFilter’ to: [/
]”,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.912+07:00”,“@version”:“1”,“message”:“Mapping filter: ‘exceptionLoggingFilter’ to: [/]“,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-08-09T15:01:03.912+07:00”,“@version”:“1”,“message”:"Mapping filter: ‘hiddenHttpMethodFilter’ to: [/
]”,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:“Mapping filter: ‘httpPutFormContentFilter’ to: [/]“,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:"Mapping filter: ‘requestContextFilter’ to: [/
]”,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:“Mapping filter: ‘springSecurityFilterChain’ to: [/]“,“logger_name”:“org.springframework.boot.web.servlet.DelegatingFilterProxyRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:"Mapping filter: ‘httpTraceFilter’ to: [/
]”,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:“Mapping filter: ‘webMvcMetricsFilter’ to: [/]“,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:"Mapping filter: ‘mdcInsertingServletFilter’ to: [/
]”,“logger_name”:“org.springframework.boot.web.servlet.FilterRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:03.913+07:00”,“@version”:“1”,“message”:“Servlet dispatcherServlet mapped to [/]”,“logger_name”:“org.springframework.boot.web.servlet.ServletRegistrationBean”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.055+07:00”,“@version”:“1”,“message”:“Building JPA container EntityManagerFactory for persistence unit ‘hibernate’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.070+07:00”,“@version”:“1”,“message”:“HHH000204: Processing PersistenceUnitInfo [\n\tname: hibernate\n\t…]”,“logger_name”:“org.hibernate.jpa.internal.util.LogHelper”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.137+07:00”,“@version”:“1”,“message”:“HHH000412: Hibernate Core {5.2.17.Final}”,“logger_name”:“org.hibernate.Version”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.139+07:00”,“@version”:“1”,“message”:“HHH000206: hibernate.properties not found”,“logger_name”:“org.hibernate.cfg.Environment”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.171+07:00”,“@version”:“1”,“message”:“HCANN000001: Hibernate Commons Annotations {5.0.1.Final}”,“logger_name”:“org.hibernate.annotations.common.Version”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.421+07:00”,“@version”:“1”,“message”:“HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect”,“logger_name”:“org.hibernate.dialect.Dialect”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.471+07:00”,“@version”:“1”,“message”:“HHH000421: Disabling contextual LOB creation as hibernate.jdbc.lob.non_contextual_creation is true”,“logger_name”:“org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.474+07:00”,“@version”:“1”,“message”:“HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@4ed15347”,“logger_name”:“org.hibernate.type.BasicTypeRegistry”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.916+07:00”,“@version”:“1”,“message”:“HHH000397: Using ASTQueryTranslatorFactory”,“logger_name”:“org.hibernate.hql.internal.QueryTranslatorFactoryInitiator”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:04.997+07:00”,“@version”:“1”,“message”:“Initialized JPA EntityManagerFactory for persistence unit ‘hibernate’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.045+07:00”,“@version”:“1”,“message”:“Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘generateQRcodeService’: Unsatisfied dependency expressed through field ‘serviceUtil’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘validationUtil’: Unsatisfied dependency expressed through field ‘restTemplate’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.web.client.RestTemplate’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value="selfTokenRestTemplate"), @org.springframework.beans.factory.annotation.Autowired(required=true)}”,“logger_name”:“org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext”,“thread_name”:“main”,“level”:“WARN”,“level_value”:30000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.046+07:00”,“@version”:“1”,“message”:“Closing JPA EntityManagerFactory for persistence unit ‘hibernate’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.047+07:00”,“@version”:“1”,“message”:“HikariPool-1 - Shutdown initiated…”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.048+07:00”,“@version”:“1”,“message”:“HikariPool-1 - Shutdown completed.”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.049+07:00”,“@version”:“1”,“message”:“Stopping service [Tomcat]”,“logger_name”:“org.apache.catalina.core.StandardService”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.053+07:00”,“@version”:“1”,“message”:“Failed to clear soft references from ObjectStreamClass$Caches for web application [preregistration#v1]”,“logger_name”:“org.apache.catalina.loader.WebappClassLoaderBase”,“thread_name”:“localhost-startStop-1”,“level”:“WARN”,“level_value”:30000,“stack_trace”:“java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader ‘bootstrap’)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2193)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2180)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1555)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1500)\n\tat org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:447)\n\tat org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)\n\tat org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5514)\n\tat org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)\n\tat org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1437)\n\tat org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1426)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\n”,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.064+07:00”,“@version”:“1”,“message”:“\n\nError starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.”,“logger_name”:“org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-08-09T15:01:05.281+07:00”,“@version”:“1”,“message”:“\n\n***************************\nAPPLICATION FAILED TO START\n***************************\n\nDescription:\n\nField restTemplate in io.mosip.preregistration.core.util.ValidationUtil required a bean of type ‘org.springframework.web.client.RestTemplate’ that could not be found.\n\n\nAction:\n\nConsider defining a bean of type ‘org.springframework.web.client.RestTemplate’ in your configuration.\n”,“logger_name”:“org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“appName”:“pre-registration-application-service”}

Process finished with exit code 1

You have not added all the required jars in class path.
Documentation has the list. Please check and add.

Hello @mayuradesh
thanks for your kind response.
Could you recommend another alternate solution? because I never forget to add the 4 required Dependencies, in the process I also run the Config Server. Could it be something about the required database schemas, or some kernel services of MOSIP, which the document does not mention? I tried all the steps in the document, still get errors.


Check that you are working with Java11