Maven build fails with error 'java.lang.NoClassDefFoundError: org/drools/core/common/ProjectClassLoader' after upgrading BA bom from 7.2.1 to 7.8.1

Solution Verified - Updated -

Issue

In order to upgrade RHDM version from 7.2.1 to 7.8.1 in my application, BA BOM version was changed from 7.2.1.GA-redhat-00002
to 7.8.1.redhat-00002. But after that, maven build fails with the following error wile running the test code .

java.lang.NoClassDefFoundError: org/drools/core/common/ProjectClassLoader
Caused by: java.lang.ClassNotFoundException: org.drools.core.common.ProjectClassLoader

It works with version 7.2.1.GA-redhat-00002. Why does NoClassDefFoundError happen after upgrading to 7.8.1 and how to solve it?

Environment

  • Red Hat Decision Manager (RHDM)
    • 7.8
  • Red Hat Process Automation Manager (RHPAM)
    • 7.8

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content