No "Welcome" page available

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.

You can generate a spring boot project at start.camunda.com - that will create a working spring boot project.

In the meantime, you should also include this to your pom file.

    <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
      <version>7.13.0</version>
    </dependency>

@Niall Sorry, I forgot to mention -
we use already existing project and try to integrate camunda in it. Thus there is no way to generate new one. I have tried to generate with mentioned link start.camunda.com as a probation project to get in camunda - no objections and everything works (bpmn is created via camunda modeller, pasted into classpath, Tasklist and Cockpit links are available):

Spring-Boot: (v2.2.5.RELEASE)
Camunda BPM: (v7.12.0)
Camunda BPM Spring Boot Starter: (v3.4.0)

But anyway I have tried to use camunda-bpm-spring-boot-starter-rest additionally - same result (no errors in log and Cockpit is not available).

One more thing - I checked the versions compatibility https://docs.camunda.org/manual/7.13/user-guide/spring-boot-integration/version-compatibility/ and specified the 3.2.0 versions (compatible to Spring Boot 2.1.6.Release) - the pages Cockpit and Tasklist became available, but exception is appeared:

ExceptionHandler - org.camunda.bpm.engine.rest.exception.RestException: It was not able to load the following file ‘app/plugin.css’.
at org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginRootResource.getAsset(AbstractAppPluginRootResource.java:145)

Thanks

I noticed that this forum post seems to solve the problem - maybe you can take a look to see if it helps:

@Niall, indeed the topic Camunda Cockpit plugin produces 404 error for version 7.11 solves the issue.

Thanks you very much.

1 Like