Getting error as below while launching camunda run in Eclips


/ | __ _ _ __ ___ _ _ _ __ | | __ _ | _ | | __ | | / _| ___ _ __ _ __ ___
| | / | '_ _ | | | | ’ \ / |/ _ | | |) | |/ _| __| |_ / _ \| '__| '_ _ \
| |
| (
| | | | | | | |
| | | | | (
| | (| | | __/| | (| | || | () | | | | | | | |
_
/_,|| || ||_,|| ||_,|_,| || ||_,|_|| ___/|| || || |_|

Spring-Boot: (v2.4.4)
Camunda Platform: (v7.15.0)
Camunda Platform Spring Boot Starter: (v7.15.0)

2021-08-15 23:55:50.886 INFO 5976 — [ main] S.ServiceTaskImpl.CamundaApplication : Starting CamundaApplication using Java 15.0.2 on 21HW171491 with PID 5976 (D:\All at once\Old just\ServiceTaskImpl\target\classes started by 1240852 in D:\All at once\Old just\ServiceTaskImpl)
2021-08-15 23:55:50.891 INFO 5976 — [ main] S.ServiceTaskImpl.CamundaApplication : No active profile set, falling back to default profiles: default
2021-08-15 23:55:54.149 INFO 5976 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
Aug 15, 2021 11:55:54 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [“http-nio-8080”]
Aug 15, 2021 11:55:54 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Aug 15, 2021 11:55:54 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.44]
Aug 15, 2021 11:55:54 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring embedded WebApplicationContext
2021-08-15 23:55:54.385 INFO 5976 — [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3418 ms
2021-08-15 23:55:54.422 INFO 5976 — [ main] .c.b.s.b.s.r.CamundaJerseyResourceConfig : Configuring camunda rest api.
2021-08-15 23:55:54.447 INFO 5976 — [ main] .c.b.s.b.s.r.CamundaJerseyResourceConfig : Finished configuring camunda rest api.
2021-08-15 23:55:54.818 INFO 5976 — [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting…
2021-08-15 23:55:55.175 INFO 5976 — [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-08-15 23:55:55.189 INFO 5976 — [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at ‘/h2-console’. Database available at ‘jdbc:h2:./camunda-db’
2021-08-15 23:55:55.630 INFO 5976 — [ main] org.camunda.bpm.spring.boot : STARTER-SB040 Setting up jobExecutor with corePoolSize=3, maxPoolSize:10
2021-08-15 23:55:55.632 INFO 5976 — [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService ‘camundaTaskExecutor’
2021-08-15 23:55:55.725 INFO 5976 — [ main] org.camunda.bpm.engine.cfg : ENGINE-12003 Plugin 'CompositeProcessEnginePlugin[genericPropertiesConfiguration, camundaProcessEngineConfiguration, camundaDatasourceConfiguration, camundaJobConfiguration, camundaHistoryConfiguration, camundaMetricsConfiguration, camundaAuthorizationConfiguration, CreateAdminUserConfiguration[adminUser=AdminUserProperty[id=demo, firstName=Demo, lastName=Demo, email=demo@localhost, password=]], failedJobConfiguration, CreateFilterConfiguration[filterName=All Tasks], disableDeploymentResourcePattern, eventPublisherPlugin, SpringBootSpinProcessEnginePlugin]’ activated on process engine ‘default’
2021-08-15 23:55:55.729 INFO 5976 — [ main] org.camunda.bpm.spring.boot : STARTER-SB020 ProcessApplication enabled: autoDeployment via springConfiguration#deploymentResourcePattern is disabled
2021-08-15 23:55:55.730 INFO 5976 — [ main] o.c.b.s.b.s.event.EventPublisherPlugin : EVENTING-001: Initialized Camunda Spring Boot Eventing Engine Plugin.
2021-08-15 23:55:55.730 INFO 5976 — [ main] o.c.b.s.b.s.event.EventPublisherPlugin : EVENTING-003: Task events will be published as Spring Events.
2021-08-15 23:55:55.730 INFO 5976 — [ main] o.c.b.s.b.s.event.EventPublisherPlugin : EVENTING-005: Execution events will be published as Spring Events.
2021-08-15 23:55:55.733 INFO 5976 — [ main] o.c.b.s.b.s.event.EventPublisherPlugin : EVENTING-007: History events will be published as Spring events.
2021-08-15 23:55:55.740 INFO 5976 — [ main] org.camunda.spin : SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2021-08-15 23:55:55.960 INFO 5976 — [ main] org.camunda.spin : SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
2021-08-15 23:55:55.974 INFO 5976 — [ main] org.camunda.spin : SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
2021-08-15 23:55:55.974 INFO 5976 — [ main] org.camunda.spin : SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
2021-08-15 23:55:56.168 INFO 5976 — [ main] org.camunda.bpm.dmn.feel.scala : FEEL/SCALA-01001 Spin value mapper detected
2021-08-15 23:55:56.255 INFO 5976 — [ main] org.camunda.feel.FeelEngine : Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@6451a288, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@79cdf2d4)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@4d4b019e, clock: SystemClock, configuration: Configuration(false)]
2021-08-15 23:55:59.634 INFO 5976 — [ main] org.camunda.bpm.connect : CNCT-01004 Discovered provider for connector id ‘http-connector’ and class ‘org.camunda.connect.httpclient.impl.HttpConnectorImpl’: ‘org.camunda.connect.httpclient.impl.HttpConnectorProviderImpl’
2021-08-15 23:55:59.636 INFO 5976 — [ main] org.camunda.bpm.connect : CNCT-01004 Discovered provider for connector id ‘soap-http-connector’ and class ‘org.camunda.connect.httpclient.soap.impl.SoapHttpConnectorImpl’: ‘org.camunda.connect.httpclient.soap.impl.SoapHttpConnectorProviderImpl’
2021-08-15 23:55:59.857 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘engine’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.engine.sql’
2021-08-15 23:55:59.907 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘history’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.history.sql’
2021-08-15 23:55:59.927 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘identity’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.identity.sql’
2021-08-15 23:55:59.951 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘case.engine’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.case.engine.sql’
2021-08-15 23:55:59.960 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘case.history’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.case.history.sql’
2021-08-15 23:55:59.967 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘decision.engine’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.decision.engine.sql’
2021-08-15 23:55:59.981 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03016 Performing database operation ‘create’ on component ‘decision.history’ with resource ‘org/camunda/bpm/engine/db/create/activiti.h2.create.decision.history.sql’
2021-08-15 23:56:00.017 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03067 No history level property found in database
2021-08-15 23:56:00.018 INFO 5976 — [ main] org.camunda.bpm.engine.persistence : ENGINE-03065 Creating historyLevel property in database for level: HistoryLevelFull(name=full, id=3)
2021-08-15 23:56:00.081 INFO 5976 — [ main] org.camunda.bpm.engine : ENGINE-00001 Process Engine default created.
2021-08-15 23:56:00.216 INFO 5976 — [ main] org.camunda.bpm.spring.boot : STARTER-SB010 creating initial Admin User: AdminUserProperty[id=demo, firstName=Demo, lastName=Demo, email=demo@localhost, password=
]
2021-08-15 23:56:00.261 INFO 5976 — [ main] org.camunda.bpm.spring.boot : STARTER-SB015 create initial filter: id=49343887-fde1-11eb-8c88-00ff2a1fc6f7 name=All Tasks
2021-08-15 23:56:00.601 INFO 5976 — [ main] o.c.b.s.b.s.w.f.LazyInitRegistration : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazyProcessEnginesFilter@3ebc955b
2021-08-15 23:56:00.602 WARN 5976 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘lazyInitRegistration’ defined in class path resource [org/camunda/bpm/spring/boot/starter/webapp/CamundaBpmWebappAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.RuntimeException: javax.servlet.ServletException: Could not read security filter config file ‘/securityFilterRules.json’: no such resource in servlet context.
2021-08-15 23:56:00.614 INFO 5976 — [ main] org.camunda.bpm.engine : ENGINE-00007 Process Engine default closed
2021-08-15 23:56:00.615 INFO 5976 — [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService ‘camundaTaskExecutor’
2021-08-15 23:56:00.615 INFO 5976 — [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated…
2021-08-15 23:56:00.618 INFO 5976 — [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
Aug 15, 2021 11:56:00 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service [Tomcat]
Aug 15, 2021 11:56:00 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [MVStore background writer nio:D:/All at once/Old just/ServiceTaskImpl/camunda-db.mv.db] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@15.0.2/java.lang.Object.wait(Native Method)
app//org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:3283)
2021-08-15 23:56:00.638 INFO 5976 — [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-08-15 23:56:00.659 ERROR 5976 — [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘lazyInitRegistration’ defined in class path resource [org/camunda/bpm/spring/boot/starter/webapp/CamundaBpmWebappAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.RuntimeException: javax.servlet.ServletException: Could not read security filter config file ‘/securityFilterRules.json’: no such resource in servlet context.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:610) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.5.jar:5.3.5]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.5.jar:5.3.5]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:769) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313) ~[spring-boot-2.4.4.jar:2.4.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) ~[spring-boot-2.4.4.jar:2.4.4]
at ServiceTask.ServiceTaskImpl.CamundaApplication.main(CamundaApplication.java:12) ~[classes/:na]
Caused by: java.lang.RuntimeException: javax.servlet.ServletException: Could not read security filter config file ‘/securityFilterRules.json’: no such resource in servlet context.
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.lazyInit(LazyDelegateFilter.java:48) ~[camunda-bpm-spring-boot-starter-webapp-core-7.15.0.jar:7.15.0]
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.lazyInit(LazyInitRegistration.java:64) ~[camunda-bpm-spring-boot-starter-webapp-core-7.15.0.jar:7.15.0]
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.setApplicationContext(LazyInitRegistration.java:82) ~[camunda-bpm-spring-boot-starter-webapp-core-7.15.0.jar:7.15.0]
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:128) ~[spring-context-5.3.5.jar:5.3.5]
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:102) ~[spring-context-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:422) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) ~[spring-beans-5.3.5.jar:5.3.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.5.jar:5.3.5]
… 16 common frames omitted
Caused by: javax.servlet.ServletException: Could not read security filter config file ‘/securityFilterRules.json’: no such resource in servlet context.
at org.camunda.bpm.spring.boot.starter.webapp.filter.ResourceLoadingSecurityFilter.loadFilterRules(ResourceLoadingSecurityFilter.java:45) ~[camunda-bpm-spring-boot-starter-webapp-core-7.15.0.jar:7.15.0]
at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.init(SecurityFilter.java:93) ~[camunda-webapp-7.15.0-classes.jar:7.15.0]
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.lazyInit(LazyDelegateFilter.java:46) ~[camunda-bpm-spring-boot-starter-webapp-core-7.15.0.jar:7.15.0]
… 23 common frames omitted

@Vijay_Goud_B Remove the spring-security dependency from pom.xml

Firstly Thank you for your reply @aravindhrs

I have not included the mentioned Dependency “Srping - Security” … Please find below Pom.xml file

<?xml version="1.0" encoding="UTF-8"?>


4.0.0

ServiceTask
ServiceTaskImpl
0.0.1-SNAPSHOT
war

Camunda Spring Boot Application
Spring Boot Application using Camunda. [The project has been generated by the Maven archetype ‘camunda-archetype-spring-boot-7.15.0’]

7.15.0 2.4.4
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<version.java>1.8</version.java>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
org.camunda.bpm camunda-bom ${camunda.version} import pom org.springframework.boot spring-boot-dependencies ${springBoot.version} pom import org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-webapp
<dependency>
  <groupId>org.camunda.bpm.springboot</groupId>
  <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>

<dependency>
  <groupId>org.camunda.bpm.springboot</groupId>
  <artifactId>camunda-bpm-spring-boot-starter-test</artifactId>
  <scope>test</scope>
</dependency>

<dependency>
  <groupId>com.h2database</groupId>
  <artifactId>h2</artifactId>
</dependency>

<!-- required to use H2 as a file based database  (otherwise it's in-memory) -->
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

<!-- Required to use Spin dataformat support -->
<dependency>
  <groupId>org.camunda.spin</groupId>
  <artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
<dependency>
  <groupId>org.camunda.bpm</groupId>
  <artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>

<!-- Used to generate test coverage reports, see https://github.com/camunda/camunda-bpm-process-test-coverage -->
<dependency>
  <groupId>org.camunda.bpm.extension</groupId>
  <artifactId>camunda-bpm-process-test-coverage</artifactId>
  <version>0.4.0</version>
  <scope>test</scope>
</dependency>

<dependency>
  <groupId>org.camunda.bpm.extension</groupId>
  <artifactId>camunda-bpm-assert-scenario</artifactId>
  <version>1.0.0</version>
  <scope>test</scope>
</dependency>

<!-- java util logging => slf4j -->
<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>jul-to-slf4j</artifactId>
  <scope>test</scope>
</dependency>

<!-- Add your own dependencies here, if in compile scope, they are added to the jar -->

<!-- JAXB -->
<dependency>
  <groupId>javax.xml.bind</groupId>
  <artifactId>jaxb-api</artifactId>
  <scope>runtime</scope>
</dependency>
camunda-bpm-nexus Camunda Maven Repository https://app.camunda.com/nexus/content/groups/public ${project.artifactId} org.springframework.boot spring-boot-maven-plugin ${springBoot.version} ZIP repackage org.codehaus.mojo exec-maven-plugin 1.6.0 ServiceTask.ServiceTaskImpl.CamundaApplication

@Vijay_Goud_B could you upload your project and provide the github link? Will have a look into this.

Sure. I will update in GIT and post the link here.