Hi Vishal,<br><br>We had similar problems which we resolved by upgrading to WebSphere <a href="http://6.1.0.3">6.1.0.3</a>. This version uses the same 3.2 jars as jboss rules. An alternative solution to this is to make sure that you are using the PARENT_LAST classloading policy for your application and making sure the required jars are in your ear (depending on how far along you are in development I would suggest making this change anyway as it ensures the application jars are used in preference to the server&#39;s). I&#39;ll put something up on the wiki for troubleshooting with WebSphere.
<br><br>cheers<br>Steve<br><br><div><span class="gmail_quote">On 1/19/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>This is resolved now.<br>For benefit of others, i added the system variable in websphere console<br>drools.compiler=JANINO<br>This at runtime uses janino compiler api instead of using eclipse compiler,<br>which seems to have conflict with the websphere app server&#39;s internal
<br>eclipse API.<br><br><br><br>Vishal Joshi wrote:<br>&gt;<br>&gt; or alternatively can we configure jboss rules to use janino compiler<br>&gt; instead of eclipse compiler?<br>&gt;<br>&gt;<br>&gt; Vishal Joshi wrote:<br>
&gt;&gt;<br>&gt;&gt; Just to re-iterate<br>&gt;&gt; commons-jci-core-1.0-406301.jar has this class CompilationResult (with<br>&gt;&gt; different packaging) which does NOT have getProblems() method.<br>&gt;&gt; But I have another jar 
core-3.2.0.666.jar in my application, which has<br>&gt;&gt; org.eclipse.jdt.internal.compiler.CompilationResult class with<br>&gt;&gt; getProblems() method as expected.<br>&gt;&gt; so this class with the required method is definitely there in the
<br>&gt;&gt; classpath.<br>&gt;&gt;<br>&gt;&gt; is there any other jar that is missing? or anything else?<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Vishal Joshi wrote:<br>&gt;&gt;&gt;<br>&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; rule engine module does not work with websphere 6.1.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; My application has all these JCI jars bundled:<br>&gt;&gt;&gt; 
commons-jci-core-1.0-406301.jar<br>&gt;&gt;&gt; commons-jci-eclipse-3.2.0.666.jar<br>&gt;&gt;&gt; commons-jci-janino-2.4.3.jar<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; anything that is missing?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt; Mark Proctor wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Have you included all the JCI jars and the correct versions?<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Mark<br>&gt;&gt;&gt;&gt; Vishal Joshi wrote:
<br>&gt;&gt;&gt;&gt;&gt; posting it again after successfule subscription.<br>&gt;&gt;&gt;&gt;&gt; I have deployed my application on websphere 6.1, which contains Rule<br>&gt;&gt;&gt;&gt;&gt; engine<br>&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; invoke<br>&gt;&gt;&gt;&gt;&gt; drools api from my class<br>&gt;&gt;&gt;&gt;&gt; ====================================<br>&gt;&gt;&gt;&gt;&gt; final PackageBuilder builder = new PackageBuilder();
<br>&gt;&gt;&gt;&gt;&gt; builder.addPackageFromDrl(new StringReader(drl));<br>&gt;&gt;&gt;&gt;&gt; ====================================<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; it throws this exception:<br>&gt;&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;&gt; java.lang.NoSuchMethodError:<br>&gt;&gt;&gt;&gt;&gt; org/eclipse/jdt/internal/compiler/CompilationResult<br>&gt;&gt;&gt;&gt;&gt; .getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;<br>
&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt;&gt;&gt;&gt; org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult(E<br>&gt;&gt;&gt;&gt;&gt; clipseJavaCompiler.java:237)<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt;&gt;&gt;&gt; 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt;&gt;&gt;&gt; org.apache.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ
<br>&gt;&gt;&gt;&gt;&gt; avaCompiler.java:268)<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilder.compile(Unknown Source)<br>&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; Source)<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilder.addRule(Unknown Source)<br>&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; Source)<br>&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at<br>&gt;&gt;&gt;&gt;&gt; org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown<br>&gt;&gt;&gt;&gt;&gt; Source)<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt;&gt; I have checked that class<br>&gt;&gt;&gt;&gt;&gt; org.eclipse.jdt.internal.compiler.CompilationResult is available with<br>&gt;&gt;&gt;&gt;&gt; my<br>&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; distributable) and it has getProblems() method also.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; any help will be greatly appreciated.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt;&gt; rules-users mailing list<br>&gt;&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&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;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<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#a8430930">http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8430930
</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