Skip to content

Library jar is not included to war #4629

@jvlka-jvlka

Description

@jvlka-jvlka

Hi,
After upgrade to kotlin 2.2.21 from 2.0.20, ktor 3.3.3 after the WAR build coroutines-core is not added. Due to that I can not start application on Open shift.

2026-02-25 10:23:19.643 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Allocate exception for servlet [KtorServlet]
java.lang.ClassNotFoundException: kotlinx.coroutines.CoroutineScope

I use dependencies in build:
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")

KotlinxCoroutinesVersion=1.10.2

I can see that dependency in RuntimeClasspath.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions