NoClassDefFoundError of dependent jar class during process execution in BPMS

Solution Unverified - Updated -


  • There is a kjar which depends on a jar. And the jar has dependency on Spring. It is expected that the transitive dependencies will be resolved by maven. But when the process is executed, the Script Task fails with NoClassDefFoundError as shown below.
    How to fix this issue?
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
    at org.jbpm.Process_org$u46$jbpm$u46$sample909675094.action0(Process_org$u46$jbpm$u46$
    at org.jbpm.Process_org$u46$jbpm$u46$sample909675094Action0Invoker.execute(Process_org$u46$jbpm$u46$
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext
    at Method)
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    ... 54 more


  • Red Hat JBoss BPM Suite (BPMS)
    • 6.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In