Hi Vishal,<br><br>We found the JANINO compiler to be less than ideal (plus we wanted to use Java 5 syntax which only JDT supports). <br><br>I think WebSphere has gone to <a href="http://6.1.0.5">6.1.0.5</a> just recently.<br>
<br>cheers<br>Steve<br><br><div><span class="gmail_quote">On 1/22/07, <b class="gmail_sendername">Vishal Joshi</b> &lt;<a href="mailto:vishaljoshi18@yahoo.com">vishaljoshi18@yahoo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Thanks Steve,<br>I tried PARENT_LAST option, but that did not help. I will consider upgrading<br>to <a href="http://6.1.0.3">6.1.0.3</a>.<br>in the meanwhile i have the solution to this, by using JANINO instead of<br>
ECLIPSE.<br><br>cheers,<br>Vishal<br><br>Steven Williams-3 wrote:<br>&gt;<br>&gt; Hi Vishal,<br>&gt;<br>&gt; We had similar problems which we resolved by upgrading to WebSphere<br>&gt; <a href="http://6.1.0.3">6.1.0.3</a>
.<br>&gt; This version uses the same 3.2 jars as jboss rules. An alternative<br>&gt; solution<br>&gt; to this is to make sure that you are using the PARENT_LAST classloading<br>&gt; policy for your application and making sure the required jars are in your
<br>&gt; ear (depending on how far along you are in development I would suggest<br>&gt; making this change anyway as it ensures the application jars are used in<br>&gt; preference to the server&#39;s). I&#39;ll put something up on the wiki for
<br>&gt; troubleshooting with WebSphere.<br>&gt;<br>&gt; cheers<br>&gt; Steve<br>&gt;<br>&gt; On 1/19/07, Vishal Joshi &lt;<a href="mailto:vishaljoshi18@yahoo.com">vishaljoshi18@yahoo.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;
<br>&gt;&gt; This is resolved now.<br>&gt;&gt; For benefit of others, i added the system variable in websphere console<br>&gt;&gt; drools.compiler=JANINO<br>&gt;&gt; This at runtime uses janino compiler api instead of using eclipse
<br>&gt;&gt; compiler,<br>&gt;&gt; which seems to have conflict with the websphere app server&#39;s internal<br>&gt;&gt; eclipse API.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Vishal Joshi wrote:<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt; or alternatively can we configure jboss rules to use janino compiler<br>&gt;&gt; &gt; instead of eclipse compiler?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Vishal Joshi wrote:<br>&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Just to re-iterate<br>&gt;&gt; &gt;&gt; commons-jci-core-1.0-406301.jar has this class CompilationResult (with<br>&gt;&gt; &gt;&gt; different packaging) which does NOT have getProblems() method.<br>&gt;&gt; &gt;&gt; But I have another jar 
core-3.2.0.666.jar in my application, which has<br>&gt;&gt; &gt;&gt; org.eclipse.jdt.internal.compiler.CompilationResult class with<br>&gt;&gt; &gt;&gt; getProblems() method as expected.<br>&gt;&gt; &gt;&gt; so this class with the required method is definitely there in the
<br>&gt;&gt; &gt;&gt; classpath.<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; is there any other jar that is missing? or anything else?<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; Vishal Joshi wrote:<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; It is working fine with websphere <a href="http://6.0.2.3">6.0.2.3</a> and the same application&#39;s<br>&gt;&gt; &gt;&gt;&gt; rule engine module does not work with websphere 6.1.<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; My application has all these JCI jars bundled:<br>&gt;&gt; &gt;&gt;&gt; commons-jci-core-1.0-406301.jar<br>&gt;&gt; &gt;&gt;&gt; commons-jci-eclipse-3.2.0.666.jar<br>&gt;&gt; &gt;&gt;&gt; commons-jci-janino-2.4.3.jar
<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; anything that is missing?<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt; Mark Proctor wrote:<br>&gt;&gt; &gt;&gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt;&gt; Have you included all the JCI jars and the correct versions?<br>&gt;&gt; &gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt; Mark<br>&gt;&gt; &gt;&gt;&gt;&gt; Vishal Joshi wrote:<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; posting it again after successfule subscription.
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; I have deployed my application on websphere 6.1, which contains<br>&gt;&gt; Rule<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; engine<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; as one of the module using JBoss Rule 
3.0.1. When i am trying to<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; invoke<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; drools api from my class<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; ====================================<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; final PackageBuilder builder = new PackageBuilder();
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; builder.addPackageFromDrl(new StringReader(drl));<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; ====================================<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; it throws this exception:
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; java.lang.NoSuchMethodError:<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; org/eclipse/jdt/internal/compiler/CompilationResult<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; .getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult<br>&gt;&gt; (E<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; clipseJavaCompiler.java:237)
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java<br>&gt;&gt; :335)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; org.apache.commons.jci.compilers.EclipseJavaCompiler.compile<br>&gt;&gt; (EclipseJ<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; avaCompiler.java:268)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilder.compile
(Unknown<br>&gt;&gt; Source)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilder.compileRule(Unknown<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; Source)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilder.addRule
(Unknown<br>&gt;&gt; Source)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilder.addPackage(Unknown<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; Source)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; 
org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; Source)<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; I have checked that class
<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; org.eclipse.jdt.internal.compiler.CompilationResult is available<br>&gt;&gt; with<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; my<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; application war in core-3.2.0.666.jar
 (which is part of drools<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; distributable) and it has getProblems() method also.<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt; any help will be greatly appreciated.<br>&gt;&gt; &gt;&gt;&gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt; &gt;&gt;&gt;&gt; rules-users mailing list<br>&gt;&gt; &gt;&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>&gt;&gt; &gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;&gt; &gt;&gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;&gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; View this message in context:<br>&gt;&gt; <a href="http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8430930">
http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8430930</a><br>&gt;&gt; Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>&gt;&gt;<br>&gt;&gt; _______________________________________________
<br>&gt;&gt; rules-users mailing list<br>&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Steven Williams<br>&gt;<br>&gt; Supervising Consultant<br>&gt;<br>&gt; Object Consulting<br>&gt; Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br>&gt; <a href="mailto:stevenw@objectconsulting.com.au">
stevenw@objectconsulting.com.au</a><br>&gt; <a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br>&gt;<br>&gt; consulting | development | training | support<br>&gt; our experience makes the difference
<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<br>&gt;<br><br>--<br>View this message in context: <a href="http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8483889">http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8483889
</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Steven Williams
<br><br>Supervising Consultant<br><br>Object Consulting<br>Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br><a href="mailto:stevenw@objectconsulting.com.au">stevenw@objectconsulting.com.au</a><br><a href="http://www.objectconsulting.com.au">
www.objectconsulting.com.au</a><br><br>consulting | development | training | support<br>our experience makes the difference