While doing auto deployment on server i get below exceptions: [If i try to build without BPMN it’s working fine]:
DETAILS:
A. We are using below versions
org.springframework.boot:spring-boot-starter-web:jar:2.1.16.RELEASE:compile
org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:jar:3.3.4:compile
org.camunda.bpm:camunda-engine:jar:7.11.0:compile
B. Error Logs:
- Error starting Tomcat context.
Exception: org.springframework.beans.factory.BeanCreationException.
Message: Error creating bean with name ‘servletEndpointRegistrar’ defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]:
Factory method ‘servletEndpointRegistrar’ threw exception;
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘healthEndpoint’ defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]:
Unsatisfied dependency expressed through method ‘healthEndpoint’ parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘healthIndicatorRegistry’ defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.boot.actuate.health.HealthIndicatorRegistry]:
Factory method ‘healthIndicatorRegistry’ threw exception;
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘org.camunda.bpm.engine.spring.SpringProcessEngineServicesConfiguration’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘processEngineFactoryBean’: FactoryBean threw exception on object creation; nested exception is org.camunda.bpm.engine.ProcessEngineException: ENGINE-09003 Could not parse ‘’. Premature end of file.
C. What works on the server:
- When I deploy the same BPMN directly on the server using modeller, there are no issues.
- When I deploy the code without any BPMN, there are no issues in code.
Can anyone help?