Problem with loading cockpit at Camunda 7.14

I migrated from Camunda 7.13. to Camunda 7.14. and I have problem that my cockpit does not load. I am using embedded Camunda with Spring Boot with embedded Tomcat.

What I did when I updated my app is that I did DB scripts and upgraded dependencies.

I do not have any custom plugin for web app

When I try to run cockpit I get this error in console

I am getting this error in my web console GET http://000.000.000.51:8150/app/cockpit/styles/user-styles.css net::ERR_ABORTED 404 (Not Found)
plugin.js:4 Uncaught (in promise) ReferenceError: define is not defined
at plugin.js:4:1

This is my build gradle file

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'no.nils:wsdl2java:0.10'
    }
}
plugins {
    id 'org.springframework.boot' version '2.4.2'
}
apply plugin :'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
apply plugin: 'maven-publish'
group 'com.test'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
    mavenCentral()
    ivy {
        url "${System.properties['user.home']}/.ivy2/local"
    }
    maven { url 'https://repo1.maven.org/maven2' }
}
dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    implementation 'org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:7.14.0'
    implementation 'org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:7.14.0'
    compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
    implementation group: 'com.h2database', name: 'h2', version: '1.4.197'
    compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
    compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
    compile group: 'org.springframework.kafka', name: 'spring-kafka', version: '2.7.13'
    implementation 'org.apache.kafka:kafka-clients:2.8.1'
    implementation "com.opencsv:opencsv:5.7.1"
    compile('org.springframework.boot:spring-boot-devtools')
    compile group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.3.2'
    compile group: 'org.apache.tomcat', name: 'tomcat-dbcp', version: '9.0.17'
    compile('org.springframework.ws:spring-ws-core')
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
    compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
    compile fileTree(dir: 'libs', include: '*.jar')
    compile "co.elastic.apm:apm-agent-attach:1.36.0"
}
publishing {
    publications {
        maven(MavenPublication) {
            artifact("build/libs/camproba-1.0-SNAPSHOT.jar") {
                extension 'jar'
            }
        }
    }
    repositories {
        maven {
            name 'h-nexus'
            url 'https://nexus-h/repository/camunda_snapshots/'
            credentials {
                username project.repoUser
                password project.repoPassword
            }
        }
    }
}

Hello my friend!

Do you have any customized plugins in your Camunda application? If so, this plugin may be in conflict.

Another question… did you check and perform the steps for migrating between Camunda versions? If you haven’t done this, this could be causing problems, you may even need to run some SQL scripts to update the DB.

Below is the link to the official documentation that describes the steps to perform the migration.

1 Like

Hello!

Indeed there was a different custom plugin, after deleting it, everything started to work okay. Thanks!

1 Like

That’s nice!

I’m happy to be able to help!

William Robert Alves

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.