[SOLVED] Warnings where starting Camunda

I successful started a Spring Boot 2 application with Camunda integrated, but it gives me these warnings, what does they means?

unable to determine if resource URL 
[jar:file:/[...]/camunda-engine-dmn-7.11.0.jar!/META-INF/maven/org.camunda.bpm.dmn/] 
[jar:file:/[...]/camunda-engine-feel-juel-7.11.0.jar!/META-INF/maven/org.camunda.bpm.dmn/]
[jar:file:/[...]/camunda-engine-feel-api-7.11.0.jar!/META-INF/maven/org.camunda.bpm.dmn/]
is a deployable resource

Anyone please?

Hi,

What is your setup, could you please share your pom.xml and application properties files

No pom, I use Gradle.

build.gradle:

plugins {
	id 'org.springframework.boot' version '2.1.6.RELEASE'
	id 'java'
    id 'eclipse-wtp'
}

apply plugin: 'io.spring.dependency-management'

group = 'org.marcosulla'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

configurations {
	developmentOnly
	runtimeClasspath {
		extendsFrom developmentOnly
	}
	compileOnly {
		extendsFrom annotationProcessor
	}
}

repositories {
	mavenCentral()
}

compileJava {
    options.encoding = 'UTF-8'
}

def camundaVersion = '3.3.2'

dependencies {
	/* CAMUNDA - START */
	implementation group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-webapp', version: camundaVersion
	implementation group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-rest', version: camundaVersion
	implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
	/* CAMUNDA - END */
	
	/* SPRING BOOT - START */
	implementation 'org.springframework.boot:spring-boot-starter-freemarker'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	developmentOnly 'org.springframework.boot:spring-boot-devtools'
	annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
	/* SPRING BOOT - END */
	
	/* DB - START */
	implementation('org.sql2o:sql2o:1.6.0-RC3')
    runtimeOnly group: 'org.postgresql', name: 'postgresql', version: '42.2.6'
    // runtimeOnly group: 'com.h2database', name: 'h2', version: '1.4.199'
    /* DB - END */
    
    
    /* UNIT TEST 1 - START */
    testImplementation('org.springframework.boot:spring-boot-starter-test') {
        exclude group: 'junit', module: 'junit'
    }
    testImplementation('org.springframework.restdocs:spring-restdocs-mockmvc') {
        exclude group: 'junit', module: 'junit'
    }
    // testImplementation 'org.springframework.security:spring-security-test'
    testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.4.2'
    testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.4.2'
    testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.2'
    testImplementation group: 'org.junit.platform', name: 'junit-platform-commons', version: '1.4.2'
    testImplementation group: 'org.junit.platform', name: 'junit-platform-launcher', version: '1.4.2'
    /* UNIT TEST 1 - END */
    
    /* MISC - START */
    // compile group: 'org.springframework.boot', name: 'spring-boot-starter-validation'
    /* MISC - END */
}

/* COPY THE APPLICATION.PROPERTIES IN THE ROOT OF THE PROJECT TO BUILD DIR - START */
task copyBuildFiles(type: Copy) {
    from file("application.properties")
    into ("$buildDir/libs/")
}

build.dependsOn(copyBuildFiles)
/* COPY THE APPLICATION.PROPERTIES IN THE ROOT OF THE PROJECT TO BUILD DIR - END */

application.properties:

spring.datasource.url = jdbc:postgresql://localhost:5432/camunda
spring.datasource.username = camunda_remote
spring.datasource.password = ***

spring.datasource.tomcat.minSize = 35
spring.datasource.tomcat.initialSize = 35
spring.datasource.tomcat.maxActive = 250

appName = camunda

server.servlet.context-path = /${appName}

spring.http.encoding.charset = UTF-8
spring.http.encoding.enabled = true
spring.http.encoding.force = true

spring.servlet.multipart.max-file-size = 150MB
spring.servlet.multipart.max-request-size = 150MB

# CAMUNDA SETTINGS - START #
camunda.bpm.deployment-resource-pattern = classpath:workflow/*.bpmn, classpath:workflow/*.dmn, classpath:workflow/*.cmmn
# CAMUNDA SETTINGS - END #

# server.servlet.session.cookie.secure = true
# server.servlet.session.cookie.http-only = true

####### DEV ONLY, TO CHANGE IN PRODUCTION ##########
# logging.level.org.springframework.security=DEBUG
spring.cache.type = none
debug.clientTrace = true

please check this property value (classpath:workflow/*.dmn) and play around to adjust it, it seems the path is wrong

also you can reconsider using the deployment-resource-pattern, please check the comment below

1 Like

I removed the setting camunda.bpm.deployment-resource-pattern in application.properties, that will be depracted in future, as Yana reported me. Now it works. Thanks :slight_smile: