Registration Processor DMZ camel 1.2.0.1

Hi
We are using the Mosip version 1.2.0.1 and we are trying to start the registration processor inside intellij, but the dmz is not started, below the executed steps:
1 - Update mosip executor stage pom to include stage group from 1 to 7
2 - Install Kafka
3 - install ActiveMq
4 - Run mosip executor stages : all kafka topic and consumer are well created and also ActiveMq topic.
5 - secure zone camel is started but dmz camel is not started
6 - also i figured out that dmz conf file are existing in the 1.2.0.1 version and was existing in the 1.2.0 version.
image

BR

Hi @zeddari ,
I would need more information on the issue.
PFB on how to run dmz camel -
Camel has to be run separately for dmz as a separate instance and You have to pass zone as “dmz” as a argument while running.
I assume you are using latest 1.2.0.1 code. In v3 architecture there is no dmz. All stages are running in securezone. Also the securezone camel instance will run separately.
Let me know if this helps and please revert back incase you need more info.

Please refer to this config for changing zone -

Regards,
Mono

Hi
So, in the release 1.2.0 or upper, only one secure zone exist ?
For previous version, we have both zones ?

BR

Yes we removed the DMZ vs MZ from 1.2.0. The new v3 setup is designed with single cluster and multiple application-level namespace isolations.

Hi
Thank you for your reply:
So, to summarize, in the 1.2.0 or upper, we should run & start 2 projet:
mosip stage executor
registration-processor-common-camel-bridge
?

Hi @zeddari , The mosip-stage-executor will run all stages. But camel-bridge and workflow engine services need to be run separately. Also other regproc services will run separately(no change).

Previously stages used to run independently and now we have grouped multiple stages into different stage groups. There are 7 stage groups present in regproc. Each stage-group uses mosip-stage-executor to run stages.

Also perviously, there used to be 2 registration-processor-common-camel-bridge, One in dmz and other is in securezone. Now since no dmz is there only one camel-bridge should run.

Hi
The registration-processor-reprocessor in the workflow engine gives this error:
{“@timestamp”:“2022-11-29T17:14:57.274+01:00”,“@version”:“1”,“message”:“A child container failed during start”,“logger_name”:“org.apache.catalina.core.ContainerBase”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]\r\n\tat java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\n\tat java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)\r\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)\r\n\tat org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.startup.Tomcat.start(Tomcat.java:367)\r\n\tat org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107)\r\n\tat org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:86)\r\n\tat org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:409)\r\n\tat org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174)\r\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179)\r\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)\r\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:327)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\r\n\tat io.mosip.registration.processor.workflowmanager.WorkflowManagerApplication.main(WorkflowManagerApplication.java:28)\r\nCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)\r\n\tat java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)\r\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n\tat java.base/java.lang.Thread.run(Thread.java:834)\r\nCaused by: org.apache.catalina.LifecycleException: A child container failed during start\r\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949)\r\n\tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\t… 7 common frames omitted\r\n”,“appName”:“application,registration-processor”}

Hi @zeddari ,

Can you kindly confirm if same camel docker is used which was released OR was there any change in the code?

Regards,
Mono

hi @Zeddari
Can you please post the log containing Auth Adaptor ( with Nomethod found error)?

Below the logs containing the noSuchMethodError:

@timestamp”:“2022-12-16T16:37:29.693+01:00”,“@version”:“1”,“message”:“A child container failed during start”,“logger_name”:“org.apache.catalina.core.ContainerBase”,“thread_name”:“Tomcat-startStop-1”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext]\r\n\tat java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\n\tat java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)\r\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)\r\n\tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)\r\n\tat java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)\r\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n\tat java.base/java.lang.Thread.run(Thread.java:834)\r\nCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext]\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)\r\n\t… 7 common frames omitted\r\nCaused by: org.apache.catalina.LifecycleException: Failed to start component [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext]]\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)\r\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\t… 7 common frames omitted\r\nCaused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.authenticator.NonLoginAuthenticator]\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)\r\n\tat org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:182)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\t… 9 common frames omitted\r\nCaused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1186)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\t… 11 common frames omitted\r\n”,“appName”:“application,registration-processor”}
{“@timestamp”:“2022-12-16T16:37:29.695+01:00”,“@version”:“1”,“message”:“A child container failed during start”,“logger_name”:“org.apache.catalina.core.ContainerBase”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:"java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]\r\n\tat java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\n\tat java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)\r\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)\r\n\tat org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.startup.Tomcat.start(Tomcat.java:367)\r\n\tat org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107)\r\n\tat org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:86)\r\n\tat

@zeddari

possible for you to share the full logs. It will be helpful to understand the error.

It might be an issue with using the wrong artifactory? @ckm007