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's). I'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> <<a href="mailto:vishaljoshi18@yahoo.com">vishaljoshi18@yahoo.com</a>> 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's internal
<br>eclipse API.<br><br><br><br>Vishal Joshi wrote:<br>><br>> or alternatively can we configure jboss rules to use janino compiler<br>> instead of eclipse compiler?<br>><br>><br>> Vishal Joshi wrote:<br>
>><br>>> Just to re-iterate<br>>> commons-jci-core-1.0-406301.jar has this class CompilationResult (with<br>>> different packaging) which does NOT have getProblems() method.<br>>> But I have another jar
core-3.2.0.666.jar in my application, which has<br>>> org.eclipse.jdt.internal.compiler.CompilationResult class with<br>>> getProblems() method as expected.<br>>> so this class with the required method is definitely there in the
<br>>> classpath.<br>>><br>>> is there any other jar that is missing? or anything else?<br>>><br>>><br>>> Vishal Joshi wrote:<br>>>><br>>>> It is working fine with websphere
<a href="http://6.0.2.3">6.0.2.3</a> and the same application's<br>>>> rule engine module does not work with websphere 6.1.<br>>>><br>>>> My application has all these JCI jars bundled:<br>>>>
commons-jci-core-1.0-406301.jar<br>>>> commons-jci-eclipse-3.2.0.666.jar<br>>>> commons-jci-janino-2.4.3.jar<br>>>><br>>>> anything that is missing?<br>>>><br>>>><br>>>>
<br>>>> Mark Proctor wrote:<br>>>>><br>>>>> Have you included all the JCI jars and the correct versions?<br>>>>><br>>>>> Mark<br>>>>> Vishal Joshi wrote:
<br>>>>>> posting it again after successfule subscription.<br>>>>>> I have deployed my application on websphere 6.1, which contains Rule<br>>>>>> engine<br>>>>>> as one of the module using JBoss Rule
3.0.1. When i am trying to<br>>>>>> invoke<br>>>>>> drools api from my class<br>>>>>> ====================================<br>>>>>> final PackageBuilder builder = new PackageBuilder();
<br>>>>>> builder.addPackageFromDrl(new StringReader(drl));<br>>>>>> ====================================<br>>>>>><br>>>>>> it throws this exception:<br>>>>>>
<br>>>>>> java.lang.NoSuchMethodError:<br>>>>>> org/eclipse/jdt/internal/compiler/CompilationResult<br>>>>>> .getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;<br>
>>>>> at<br>>>>>> org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult(E<br>>>>>> clipseJavaCompiler.java:237)<br>>>>>> at<br>>>>>>
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)<br>>>>>><br>>>>>> at<br>>>>>> org.apache.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ
<br>>>>>> avaCompiler.java:268)<br>>>>>> at org.drools.compiler.PackageBuilder.compile(Unknown Source)<br>>>>>> at org.drools.compiler.PackageBuilder.compileRule
(Unknown<br>>>>>> Source)<br>>>>>> at org.drools.compiler.PackageBuilder.addRule(Unknown Source)<br>>>>>> at org.drools.compiler.PackageBuilder.addPackage(Unknown
<br>>>>>> Source)<br>>>>>> at<br>>>>>> org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown<br>>>>>> Source)<br>>>>>><br>>>>>>
<br>>>>>> I have checked that class<br>>>>>> org.eclipse.jdt.internal.compiler.CompilationResult is available with<br>>>>>> my<br>>>>>> application war in core-3.2.0.666.jar
(which is part of drools<br>>>>>> distributable) and it has getProblems() method also.<br>>>>>><br>>>>>> any help will be greatly appreciated.<br>>>>>><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>>>>><br>>>>><br>>>><br>>>><br>>><br>>><br>>
<br>><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