Hello everyone!
I’m quite new in Camunda and I have faced some problems using it.
Versions :
Spring Boot 2.1.6.RELEASE
camunda-bpm-spring-boot-starter-webapp 3.4.0 and 7.13.0
I have only included
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>3.4.0</version>
</dependency>
into my pom.xml and adjusted the credentials in application.properties:
camunda.bpm.admin-user.id=<user>
camunda.bpm.admin-user.password=<password>
Also main class has been configured:
@SpringBootApplication
@EnableScheduling
@EnableProcessApplication
public class SomeApplication extends SpringBootServletInitializer {
private static final String BASE_PATH = "/some_path";
public static void main(String[] args) {
SpringApplication.run(SomeApplication.class, args);
}
@Bean
public Filter filter() {
ShallowEtagHeaderFilter filter = new ShallowEtagHeaderFilter();
return filter;
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(SomeApplication.class);
}
@Bean
public WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
webServerFactoryCustomizer() {
return factory -> factory.setContextPath(BASE_PATH);
}
}
To make logs visible I have made this in logback-spring.xml:
I have placed created *.bpmn into src/main/resources. Also empty processes.xml was placed into resources META-INF/processes.xml.
After this I have started the Spring Boot Application via Intellij configuration runner. “Welcome page”
by the url /some_path/app/welcome/default/#!/welcome is open and Cockpit and Tasklist links are available.
After clicking the Cockpit link the exception is thrown :
[DEBUG] 2020-09-30 13:51:00.522 [http-nio-8080-exec-4] org.camunda.bpm.engine.rest.exception - ENGINE-REST-HTTP404 org.camunda.bpm.engine.rest.exception.RestException: It was not able to load the following file ‘app/plugin.css’.
described in https://jira.camunda.com/browse/CAM-10738
Then as it was mentioned in bug report I have changed the the current version from 3.4.0 to 7.13.0 (this bug should have been fixed in). But now no “Welcome” page is accessible -
http://localhost:8080/<some_path>/app/welcome/default/#!/welcome gives 404 error - no errors in logs written:
[DEBUG] 2020-09-30 15:52:04.304 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14022 Acquired 0 jobs for process engine 'default': []
[DEBUG] 2020-09-30 15:52:04.304 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14011 Job acquisition thread sleeping for 59993 millis
[DEBUG] 2020-09-30 15:53:04.298 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14012 Job acquisition thread woke up
[DEBUG] 2020-09-30 15:53:04.298 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13005 Starting command -------------------- AcquireJobsCmd ----------------------
[DEBUG] 2020-09-30 15:53:04.299 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13009 opening new command context
[DEBUG] 2020-09-30 15:53:04.299 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.impl.persistence.entity.JobEntity.selectNextJobsToExecute - ==> Preparing: select RES.ID_, RES.REV_, RES.DUEDATE_, RES.PROCESS_INSTANCE_ID_, RES.EXCLUSIVE_ from ACT_RU_JOB RES where (RES.RETRIES_ > 0) and ( RES.DUEDATE_ is null or RES.DUEDATE_ <= ? ) and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < ?) and RES.SUSPENSION_STATE_ = 1 and ( ( RES.EXCLUSIVE_ = 1 and not exists( select J2.ID_ from ACT_RU_JOB J2 where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_ -- from the same proc. inst. and (J2.EXCLUSIVE_ = 1) -- also exclusive and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= ?) -- in progress ) ) or RES.EXCLUSIVE_ = 0 ) LIMIT ? OFFSET ?
[DEBUG] 2020-09-30 15:53:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.impl.persistence.entity.JobEntity.selectNextJobsToExecute - ==> Parameters: 2020-09-30 15:53:04.299(Timestamp), 2020-09-30 15:53:04.299(Timestamp), 2020-09-30 15:53:04.299(Timestamp), 3(Integer), 0(Integer)
[DEBUG] 2020-09-30 15:53:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.impl.persistence.entity.JobEntity.selectNextJobsToExecute - <== Total: 0
[DEBUG] 2020-09-30 15:53:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13011 closing existing command context
[DEBUG] 2020-09-30 15:53:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.persistence - ENGINE-03006 Cache state after flush: [
[DEBUG] 2020-09-30 15:53:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13006 Finishing command -------------------- AcquireJobsCmd ----------------------
[DEBUG] 2020-09-30 15:53:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14022 Acquired 0 jobs for process engine 'default': []
[DEBUG] 2020-09-30 15:53:04.301 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14011 Job acquisition thread sleeping for 59997 millis
[DEBUG] 2020-09-30 15:54:04.298 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14012 Job acquisition thread woke up
[DEBUG] 2020-09-30 15:54:04.298 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13005 Starting command -------------------- AcquireJobsCmd ----------------------
[DEBUG] 2020-09-30 15:54:04.298 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13009 opening new command context
[DEBUG] 2020-09-30 15:54:04.299 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.impl.persistence.entity.JobEntity.selectNextJobsToExecute - ==> Preparing: select RES.ID_, RES.REV_, RES.DUEDATE_, RES.PROCESS_INSTANCE_ID_, RES.EXCLUSIVE_ from ACT_RU_JOB RES where (RES.RETRIES_ > 0) and ( RES.DUEDATE_ is null or RES.DUEDATE_ <= ? ) and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < ?) and RES.SUSPENSION_STATE_ = 1 and ( ( RES.EXCLUSIVE_ = 1 and not exists( select J2.ID_ from ACT_RU_JOB J2 where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_ -- from the same proc. inst. and (J2.EXCLUSIVE_ = 1) -- also exclusive and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= ?) -- in progress ) ) or RES.EXCLUSIVE_ = 0 ) LIMIT ? OFFSET ?
[DEBUG] 2020-09-30 15:54:04.299 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.impl.persistence.entity.JobEntity.selectNextJobsToExecute - ==> Parameters: 2020-09-30 15:54:04.298(Timestamp), 2020-09-30 15:54:04.298(Timestamp), 2020-09-30 15:54:04.298(Timestamp), 3(Integer), 0(Integer)
[DEBUG] 2020-09-30 15:54:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.impl.persistence.entity.JobEntity.selectNextJobsToExecute - <== Total: 0
[DEBUG] 2020-09-30 15:54:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13011 closing existing command context
[DEBUG] 2020-09-30 15:54:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.persistence - ENGINE-03006 Cache state after flush: [
[DEBUG] 2020-09-30 15:54:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.cmd - ENGINE-13006 Finishing command -------------------- AcquireJobsCmd ----------------------
[DEBUG] 2020-09-30 15:54:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14022 Acquired 0 jobs for process engine 'default': []
[DEBUG] 2020-09-30 15:54:04.300 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] org.camunda.bpm.engine.jobexecutor - ENGINE-14011 Job acquisition thread sleeping for 59998 millis
So changing the versions makes non-accessible Camunda web.
Can anyone help or advice with this behavior?
Thanks a lot in advance.