<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-abbreviated" href="mailto:Christopher.Mathrusse@sybase.com">Christopher.Mathrusse@sybase.com</a> wrote:
<blockquote
 cite="mid:OF4BA4DADA.FB52FFDF-ON88257466.0023CCD4-88257466.00255BC3@sybase.com"
 type="cite"><br>
  <font face="sans-serif" size="2">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>
  <br>
  <br>
  <font face="sans-serif" size="2"><b><i>The Eclipse JDT Core jar is
not
in the classpath</i></b></font>
  <br>
  <br>
  <font face="sans-serif" size="2">I've searched through the postings
and
found that setting the compiler to </font><font color="#4200ff"
 face="Courier New" size="2">drools.dialect.java.compiler</font><font
 face="sans-serif" size="2"><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>
  <br>
  <br>
  <font color="#0021bf" face="Courier New" size="2">ruleAdministrator</font><font
 face="Courier New" size="2">.getLocalRuleExecutionSetProvider(</font><font
 color="#0021bf" face="Courier New" size="2">providerProperties</font><font
 face="Courier New" size="2">);</font>
  <br>
  <br>
  <font face="Courier New" size="2">with the following specified in my
Spring configuration:</font>
  <br>
  <font face="Courier New" size="2">&nbsp; &nbsp; &nbsp; &nbsp; </font><font
 color="#008080" face="Courier New" size="2">&lt;</font><font
 color="#3f8080" face="Courier New" size="2">prop
  </font><font color="#800080" face="Courier New" size="2">key</font><font
 face="Courier New" size="2">=</font><font color="#4200ff"
 face="Courier New" size="2">"drools.dialect.java.compiler"</font><font
 color="#008080" face="Courier New" size="2">&gt;</font><font
 face="Courier New" size="2">JANINO</font><font color="#008080"
 face="Courier New" size="2">&lt;/</font><font color="#3f8080"
 face="Courier New" size="2">prop</font><font color="#008080"
 face="Courier New" size="2">&gt;</font>
  <br>
  <br>
  <font face="Courier New" size="2">but I believe the initialization
occurs
long before this point. </font>
  <br>
  <br>
  <font face="Courier New" size="2">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></blockquote>
Either that's the wrong classpath location, or that jasper compiler
isn't hte same thing, try the jdt.jar supplied with drools.<br>
<blockquote
 cite="mid:OF4BA4DADA.FB52FFDF-ON88257466.0023CCD4-88257466.00255BC3@sybase.com"
 type="cite"><font face="Courier New" size="2">I would prefer it if
there was some way of setting this property
without having to use the JDT libraries. </font>
  <br>
</blockquote>
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.<br>
<blockquote
 cite="mid:OF4BA4DADA.FB52FFDF-ON88257466.0023CCD4-88257466.00255BC3@sybase.com"
 type="cite"><br>
  <font face="Courier New" size="2">I saw that I can provide system
properties
to make Drools aware of the req</font><font face="sans-serif" size="2">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>
  <br>
</blockquote>
no and it is for this reason that I tell people to stay away from the
abomination that is JSR94.<br>
<blockquote
 cite="mid:OF4BA4DADA.FB52FFDF-ON88257466.0023CCD4-88257466.00255BC3@sybase.com"
 type="cite"><br>
  <font face="sans-serif" size="2">Thanks very much for the help.<br>
  </font>
  <br>
  <font face="sans-serif" size="2">Chris </font>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>