[jboss-jira] [JBoss JIRA] (DROOLS-2441) DMN runtime not using the kiecontainer root classloader to load classes

Edson Tirelli (JIRA) issues at jboss.org
Sat Mar 31 09:25:00 EDT 2018


    [ https://issues.jboss.org/browse/DROOLS-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13554516#comment-13554516 ] 

Edson Tirelli commented on DROOLS-2441:
---------------------------------------

I attached an example to reproduce this problem. This one also requires a dependency to apache commons, that also needs to work after changing the classloader:

<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-math3</artifactId>
  <version>3.6.1</version>
</dependency>

> DMN runtime not using the kiecontainer root classloader to load classes
> -----------------------------------------------------------------------
>
>                 Key: DROOLS-2441
>                 URL: https://issues.jboss.org/browse/DROOLS-2441
>             Project: Drools
>          Issue Type: Bug
>          Components: dmn engine
>    Affects Versions: 7.6.0.Final
>            Reporter: Edson Tirelli
>            Assignee: Matteo Mortari
>            Priority: Blocker
>             Fix For: 7.8.0.Final
>
>         Attachments: Standard Deviation.dmn, StandardDeviation.java
>
>
> The FunctionDefNode is not using the kie container root classloader to load classes. I even added a comment for that, just a shame comments are not executable:
> https://github.com/kiegroup/drools/blob/master/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionDefNode.java#L98-L99
> {code:title=FunctionDefNode.java}
>                         // might need to explicitly use a classloader here
>                         Class<?> clazz = Class.forName( clazzName );
> {code}
> To reproduce the problem, create a java class with a static method, add it to the kjar, create a DMN model that invokes that model, and try to execute.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list