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

Matteo Mortari (JIRA) issues at jboss.org
Mon May 14 07:54:00 EDT 2018


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

Matteo Mortari commented on DROOLS-2441:
----------------------------------------

Added a porting of this test into kieserver integration test with http://github.com/kiegroup/droolsjbpm-integration/commit/985fbcb9a

> 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