Thank you, Harold, for reaching out and for sharing the issue and the
reproducer.

It does look like a regression. I’ve just opened an issue to track it:
https://github.com/apache/incubator-kie-issues/issues/2100

-
Alex

On Mon, Sep 15, 2025 at 2:09 PM Harold Campbell <[email protected]> wrote:
>
> Hello!
>
> I'm trying to port a couple projects from Drools 8 to 10, and I've run
> into a roadblock. My RuleUnitData classes contain non-DataSource fields
> of types defined in the application. This works great in 8.44. In 10 I
> get a ClassNotFoundException. E.g.
>
>
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> org.drools.quarkus.quickstart.test.OtherBean
> [ERROR]         at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
> [ERROR]         at
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:225)
> [ERROR]         at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:210)
> [ERROR]         at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:205)
> [ERROR]         at
> io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:565)
> [ERROR]         at
> io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:513)
> [ERROR]         at
> org.drools.ruleunits.impl.SimpleRuleUnitVariable.<init>(SimpleRuleUnitVariable.java:55)
>
> The above is what I get when building the attached reproducer. This
> reproducer is based on drools-quarkus-quickstart-test from
> incubator-kie-drools. Other than making the module buildable outside the
> incubator project, the only change is adding that OtherBean type and a
> reference to it in HomeRuleUnitData. Note: It's the getter/setter pair
> which actually causes the problem. A field with no accessors builds
> fine.
>
> So...is this a drools 10 bug, or am I totally off base in what I'm
> trying to do?
>
> --
> Harold Campbell <[email protected]>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to