[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 10:53:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco updated DROOLS-2929:
--------------------------------
Description:
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
{source}
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");
{source}
Unfortunately those jars are contained in the unexploded war and and referenced by a virtual path like the following
{source}
/content/webapp.war/WEB-INF/lib/drools-core-7.11.0-SNAPSHOT.jar
{source}
which cannot be used in -classpath option that requires a physical path.
> 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
> {source}
> 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");
> {source}
> Unfortunately those jars are contained in the unexploded war and and referenced by a virtual path like the following
> {source}
> /content/webapp.war/WEB-INF/lib/drools-core-7.11.0-SNAPSHOT.jar
> {source}
> 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