]
Mario Fusco resolved DROOLS-2929.
---------------------------------
Resolution: Done
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.