<br><font size=2 face="sans-serif">Hi Mark,</font>
<br>
<br><font size=2 face="sans-serif">After a bit of debugging I managed to
resolve my issue. It appears the correct way to resolve this issue is to
instantiate an instance of PackageBuilderConfiguration and pass into the
constructor a Properties object where you specify your options.</font>
<br>
<br><font size=2 face="sans-serif">Spring configuration:</font>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">bean
</font><font size=2 color=#800080 face="Courier New">id</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;packageBuilderConfig&quot;
</font><font size=2 color=#800080 face="Courier New">class</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;org.drools.compiler.PackageBuilderConfiguration&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">constructor-arg
</font><font size=2 color=#800080 face="Courier New">type</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;java.util.Properties&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">props</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">prop
</font><font size=2 color=#800080 face="Courier New">key</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;drools.dialect.java.compiler&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">JANINO</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">prop</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">props</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">constructor-arg</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">bean</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="sans-serif">
</font>
<br>
<br><font size=2 face="sans-serif">Next, this PackageBuilder must be set
as a value in the Map that is passed into the method </font><font size=2 face="Courier New">createRuleExecutionSet</font><font size=2 face="sans-serif">
of the Provider (</font><font size=2 face="Courier New">javax.rules.admin.LocalRuleExecutionSetProvider</font><font size=2 face="sans-serif">).
This can be accomplished in the Spring configuration as well using the
following:</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">property
</font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;properties&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">map</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">entry
</font><font size=2 color=#800080 face="Courier New">key</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;javax.rules.admin.RuleExecutionSet.packageBuilderConfiguration&quot;
</font><font size=2 color=#800080 face="Courier New">value-ref</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;packageBuilderConfig&quot;</font><font size=2 color=#008080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">map</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">property</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="sans-serif">Finally, the ruleSetProperties are passed
into the </font><font size=2 face="Courier New">createRuleExecutionSet</font><font size=2 face="sans-serif">
method:</font>
<br><font size=2 face="sans-serif">RuleExecutionSet ruleExecutionSet =
provider.</font><font size=2 face="Courier New">createRuleExecutionSet</font><font size=2 face="sans-serif">(
sourceAsInputStream, </font><font size=2 face="Courier New">rulesetProperties</font><font size=2 face="sans-serif">);</font>
<br>
<br><font size=2 face="Courier New">And </font><font size=3><i>voil! </i></font><font size=2 face="sans-serif">Drools
is now using Janino. Sadly, the application server I am deploying to seems
to be having a classloader &nbsp;issue preventing Drools from being able
to load the </font><font size=2 color=#4200ff face="Courier New">org.codehaus.janino.Parser
</font><font size=2 face="sans-serif">class. But that is an issue that
has nothing to do with Drools I am happy to say.</font>
<br>
<br><font size=2 face="sans-serif">Thanks again for the help.</font>
<br><font size=2 face="sans-serif"><br>
Chris </font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christopher.Mathrusse@sybase.com</b>
</font>
<br><font size=1 face="sans-serif">Sent by: rules-users-bounces@lists.jboss.org</font>
<p><font size=1 face="sans-serif">06/12/2008 08:43 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;rules-users@lists.jboss.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Rules Users List &lt;rules-users@lists.jboss.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] The Eclipse JDT Core
jar is not in the classpath</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Hi Mark,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Thanks for the reply. I created a packagebuilder.conf file that simply
had name/value pairs in it as follows:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
drools.dialect.java.compiler=JANINO</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
and I placed into one of each of the following locations:</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
WEB-INF</font><font size=3> </font><font size=2 face="sans-serif"><br>
WEB-INF/classes</font><font size=3> </font><font size=2 face="sans-serif"><br>
META-INF</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I tried each one, one after the other but I still receive the same error
message at application startup. Do I have the entries correct? Should I
be placing this somewhere else? Is there something that I am still overlooking?</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Thanks for the help...</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Chris </font><font size=3><br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Mark Proctor &lt;mproctor@codehaus.org&gt;</b>
<br>
Sent by: rules-users-bounces@lists.jboss.org</font><font size=3> </font>
<p><font size=1 face="sans-serif">06/12/2008 03:43 AM</font><font size=3>
</font>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;rules-users@lists.jboss.org&gt;</font></div></table>
<p>
<td width=59%>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">Rules Users List &lt;rules-users@lists.jboss.org&gt;</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] The Eclipse JDT Core
jar is not in the classpath</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Christopher.Mathrusse@sybase.com><font size=3 color=blue><u>Christopher.Mathrusse@sybase.com</u></font></a><font size=3>
wrote: </font><font size=2 face="sans-serif"><br>
<br>
I'm using JBoss Rules 4.01 with Spring 2.5 and I'm utilizing the JSR-94
interfaces provided by Spring Modules. When deploying my application I
receive the error:</font><font size=3> </font><font size=2 face="sans-serif"><b><i><br>
<br>
The Eclipse JDT Core jar is not in the classpath</i></b></font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
I've searched through the postings and found that setting the compiler
to </font><font size=2 color=#4200ff face="Courier New">drools.dialect.java.compiler</font><font size=2 face="sans-serif"><b><i>
</i></b>should resolve the issue but I am having trouble figuring out where
to set this property on the JSR_94 interfaces. I've tried passing a Map
into</font><font size=3> </font><font size=2 color=#0021bf face="Courier New"><br>
<br>
ruleAdministrator</font><font size=2 face="Courier New">.getLocalRuleExecutionSetProvider(</font><font size=2 color=#0021bf face="Courier New">providerProperties</font><font size=2 face="Courier New">);</font><font size=3>
</font><font size=2 face="Courier New"><br>
<br>
with the following specified in my Spring configuration:</font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">prop
</font><font size=2 color=#800080 face="Courier New">key</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;drools.dialect.java.compiler&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">JANINO</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">prop</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=3>
</font><font size=2 face="Courier New"><br>
<br>
but I believe the initialization occurs long before this point. <br>
<br>
I've also tried dropping into the applications WEB-INF/lib directory a
copy of the jasper-compiler-jdt.jar into the WEB-INF/lib directory, which
should satisfy the dependency, but it didn't seem to resolve the issue.
</font><font size=3><br>
Either that's the wrong classpath location, or that jasper compiler isn't
hte same thing, try the jdt.jar supplied with drools. </font><font size=2 face="Courier New"><br>
I would prefer it if there was some way of setting this property without
having to use the JDT libraries. </font><font size=3><br>
This should be possible, have you tried adding a packagebuilder.conf to
tbe WEB-INF directory as the propperties loader checks for one of those
first. </font><font size=2 face="Courier New"><br>
<br>
I saw that I can provide system properties to make Drools aware of the
req</font><font size=2 face="sans-serif">uested compiler setting but this
is not really an option as I am running inside of a J2EE container and
I am unable to modify the settings that are provided to the application
server. Is there a default location in the classpath that Drools looks
for a properties file that I can specify these values? Or better still,
is there a way that I can supplied them to the JSR-94 interfaces to ensure
proper initialization?</font><font size=3> <br>
no and it is for this reason that I tell people to stay away from the abomination
that is JSR94. </font><font size=2 face="sans-serif"><br>
<br>
Thanks very much for the help.<br>
<br>
Chris </font><font size=3><tt><br>
</tt></font><font size=3><br>
</font>
<hr><font size=3><tt><br>
_______________________________________________<br>
rules-users mailing list</tt></font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org"><font size=3 color=blue><tt><u>rules-users@lists.jboss.org</u></tt></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><font size=3 color=blue><tt><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></tt></font></a><font size=3><tt><br>
 </tt></font><font size=3>&nbsp;</font><font size=2><tt><br>
_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
https://lists.jboss.org/mailman/listinfo/rules-users</tt></font><font size=3><br>
</font><font size=2><tt>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
https://lists.jboss.org/mailman/listinfo/rules-users<br>
</tt></font>
<br>