Thanks for reaching out with those steps. I still run into the same issue with the following error.
I’m using Ubuntu 22.04.2 LTS
with javac 11.0.0.1
{“@timestamp”:“2023-06-01T13:43:46.151-06:00”,“@version”:“1”,“message”:“\n\n***************************\nAPPLICATION FAILED TO START\n***************************\n\nDescription:\n\nField iBioApi in io.mosip.biosdk.services.impl.spec_1_0.BioSdkServiceProviderImpl_V_1_0 required a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ that could not be found.\n\n\nAction:\n\nConsider defining a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ in your configuration.\n”,“logger_name”:“org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000}
{“@timestamp”:“2023-06-01T13:43:46.152-06:00”,“@version”:“1”,“message”:“\n\n***************************\nAPPLICATION FAILED TO START\n***************************\n\nDescription:\n\nField iBioApi in io.mosip.biosdk.services.impl.spec_1_0.BioSdkServiceProviderImpl_V_1_0 required a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ that could not be found.\n\n\nAction:\n\nConsider defining a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ in your configuration.\n”,“logger_name”:“org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000}
I ran the same steps on a MacOS machine and saw the same. Here is the full output if its helpful.
➜ target git:(develop) ✗ java -Dloader.path=…/lib/mock-sdk-1.2.1-SNAPSHOT-jar-with-dependencies.jar -Dbiosdk_bioapi_impl=io.mosip.mock.sdk.impl.SampleSDKV2 -jar biosdk-services-1.2.1-SNAPSHOT.jar
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/trevor/software/mosip/biosdk-services/biosdk-services/target/…/lib/mock-sdk-1.2.1-SNAPSHOT-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/trevor/software/mosip/biosdk-services/biosdk-services/target/biosdk-services-1.2.1-SNAPSHOT.jar!/BOOT-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
14:07:01,655 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:07:01,656 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:07:01,656 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/Users/trevor/software/mosip/biosdk-services/biosdk-services/target/biosdk-services-1.2.1-SNAPSHOT.jar!/BOOT-INF/classes!/logback.xml]
14:07:01,661 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@363ee3a2 - URL [jar:file:/Users/trevor/software/mosip/biosdk-services/biosdk-services/target/biosdk-services-1.2.1-SNAPSHOT.jar!/BOOT-INF/classes!/logback.xml] is not of type file
14:07:01,698 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
14:07:01,700 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@2:86 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]
14:07:01,700 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:07:01,702 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
14:07:01,794 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
14:07:01,794 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
14:07:01,794 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
14:07:01,794 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4690b489 - Registering current configuration as safe fallback point
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
{“@timestamp”:“2023-06-01T14:07:02.041-06:00”,“@version”:“1”,“message”:“Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@43dac38f: startup date [Thu Jun 01 14:07:02 MDT 2023]; root of context hierarchy”,“logger_name”:“org.springframework.context.annotation.AnnotationConfigApplicationContext”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/Users/trevor/software/mosip/biosdk-services/biosdk-services/target/…/lib/mock-sdk-1.2.1-SNAPSHOT-jar-with-dependencies.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-06-01T14:07:02.172-06:00”,“@version”:“1”,“message”:“Bean ‘configurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$e133a5ad] 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}
. ____ _ __ _ _
/\ / ’ __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot ::
{“@timestamp”:“2023-06-01T14:07:02.284-06:00”,“@version”:“1”,“message”:“Fetching config from server at : http://localhost:8888”,“logger_name”:“org.springframework.cloud.config.client.ConfigServicePropertySourceLocator”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:02.325-06:00”,“@version”:“1”,“message”:“Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available”,“logger_name”:“org.springframework.cloud.config.client.ConfigServicePropertySourceLocator”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:02.325-06:00”,“@version”:“1”,“message”:“Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default\”: Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)“,“logger_name”:“org.springframework.cloud.config.client.ConfigServicePropertySourceLocator”,“thread_name”:“main”,“level”:“WARN”,“level_value”:30000}
{”@timestamp":“2023-06-01T14:07:02.326-06:00”,“@version”:“1”,“message”:“No active profile set, falling back to default profiles: default”,“logger_name”:“io.mosip.biosdk.services.SdkApplication”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:02.331-06:00”,“@version”:“1”,“message”:“Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@20c0a64d: startup date [Thu Jun 01 14:07:02 MDT 2023]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@43dac38f”,“logger_name”:“org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:02.809-06:00”,“@version”:“1”,“message”:“BeanFactory id=f0781994-c462-31d7-adae-4d8322ce3bad”,“logger_name”:“org.springframework.cloud.context.scope.GenericScope”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:02.950-06:00”,“@version”:“1”,“message”:“Bean ‘org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$e133a5ad] 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}
{“@timestamp”:“2023-06-01T14:07:03.104-06:00”,“@version”:“1”,“message”:“Tomcat initialized with port(s): 9099 (http)”,“logger_name”:“org.springframework.boot.web.embedded.tomcat.TomcatWebServer”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.115-06:00”,“@version”:“1”,“message”:“Initializing ProtocolHandler ["http-nio-9099"]”,“logger_name”:“org.apache.coyote.http11.Http11NioProtocol”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.129-06:00”,“@version”:“1”,“message”:“Starting service [Tomcat]”,“logger_name”:“org.apache.catalina.core.StandardService”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.130-06:00”,“@version”:“1”,“message”:“Starting Servlet Engine: Apache Tomcat/8.5.55”,“logger_name”:“org.apache.catalina.core.StandardEngine”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.135-06:00”,“@version”:“1”,“message”:“The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/Users/trevor/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]”,“logger_name”:“org.apache.catalina.core.AprLifecycleListener”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.174-06:00”,“@version”:“1”,“message”:“Initializing Spring embedded WebApplicationContext”,“logger_name”:“org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/biosdk-service]”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.174-06:00”,“@version”:“1”,“message”:“Root WebApplicationContext: initialization completed in 843 ms”,“logger_name”:“org.springframework.web.context.ContextLoader”,“thread_name”:“localhost-startStop-1”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.740-06: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}
{”@timestamp":“2023-06-01T14:07:03.740-06: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}
{“@timestamp”:“2023-06-01T14:07:03.740-06: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}
{”@timestamp":“2023-06-01T14:07:03.740-06: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}
{“@timestamp”:“2023-06-01T14:07:03.741-06: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}
{”@timestamp":“2023-06-01T14:07:03.741-06: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}
{“@timestamp”:“2023-06-01T14:07:03.741-06: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}
{“@timestamp”:“2023-06-01T14:07:03.815-06:00”,“@version”:“1”,“message”:“Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘bioSdkServiceProviderImpl_V_1_0’: Unsatisfied dependency expressed through field ‘iBioApi’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@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}
{“@timestamp”:“2023-06-01T14:07:03.816-06:00”,“@version”:“1”,“message”:“Stopping service [Tomcat]”,“logger_name”:“org.apache.catalina.core.StandardService”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-06-01T14:07:03.820-06:00”,“@version”:“1”,“message”:“Failed to clear soft references from ObjectStreamClass$Caches for web application [biosdk-service]”,“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:2244)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2231)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1603)\n\tat org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1548)\n\tat org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:452)\n\tat org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)\n\tat org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5437)\n\tat org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)\n\tat org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1428)\n\tat org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1417)\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:834)\n”}
{“@timestamp”:“2023-06-01T14:07:03.828-06: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}
{“@timestamp”:“2023-06-01T14:07:03.910-06:00”,“@version”:“1”,“message”:“\n\n***************************\nAPPLICATION FAILED TO START\n***************************\n\nDescription:\n\nField iBioApi in io.mosip.biosdk.services.impl.spec_1_0.BioSdkServiceProviderImpl_V_1_0 required a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ that could not be found.\n\n\nAction:\n\nConsider defining a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ in your configuration.\n”,“logger_name”:“org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000}
{“@timestamp”:“2023-06-01T14:07:03.910-06:00”,“@version”:“1”,“message”:“\n\n***************************\nAPPLICATION FAILED TO START\n***************************\n\nDescription:\n\nField iBioApi in io.mosip.biosdk.services.impl.spec_1_0.BioSdkServiceProviderImpl_V_1_0 required a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ that could not be found.\n\n\nAction:\n\nConsider defining a bean of type ‘io.mosip.kernel.biometrics.spi.IBioApiV2’ in your configuration.\n”,“logger_name”:“org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000}