[jboss-jira] [JBoss JIRA] (DROOLS-2929) Cannot compile the executable model from inside JBoss EAP

Mario Fusco (JIRA) issues at jboss.org
Mon Aug 27 11:00:00 EDT 2018


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

Mario Fusco commented on DROOLS-2929:
-------------------------------------

Fixed by automatically switching to the Eclipse Java compiler when the system recognizes that it is running inside jboss https://github.com/kiegroup/drools/commit/dff5955eb81c906af50e395389a8d1e36cabdecc

> Cannot compile the executable model from inside JBoss EAP
> ---------------------------------------------------------
>
>                 Key: DROOLS-2929
>                 URL: https://issues.jboss.org/browse/DROOLS-2929
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>
> The NativeJavaCompiler is not able to compile the classes of the executable model when running inside JBoss EAP. In fact in that case it would need to be configured with an additional option setting in its classpath the jars containing the classes (both drools and user specific) that are necessary to perform the compilation like in
> {code:java}
> options.add("-classpath");
> options.add("/home/mfusco/.m2/repository/org/drools/drools-core/7.11.0-SNAPSHOT/drools-core-7.11.0-SNAPSHOT.jar:/home/mfusco/.m2/repository/org/kie/kie-api/7.11.0-SNAPSHOT/kie-api-7.11.0-SNAPSHOT.jar");
> {code}
> Unfortunately those jars are contained in the unexploded war and and referenced by a virtual path like the following 
> {code}
> /content/webapp.war/WEB-INF/lib/drools-core-7.11.0-SNAPSHOT.jar
> {code}
> which cannot be used in -classpath option that requires a physical path.



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


More information about the jboss-jira mailing list