Hi Vishal,<br><br>It was a while ago but I think the main problems were NullPointerExceptions on compilation errors. We also wanted to use Java 5 syntax. I recall seeing something from Michael or Mark suggesting Janino was not as good as Eclipse so maybe search the list as well.
<br><br>cheers<br>Steve<br><br><div><span class="gmail_quote">On 1/29/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>Thanks Steve,<br><br>What kind of problem have you seen (or you anticipate) with JANINO?<br><br>cheers,<br>Vishal<br><br>Steven Williams-3 wrote:<br>><br>> Hi Vishal,<br>><br>> We found the JANINO compiler to be less than ideal (plus we wanted to use
<br>> 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>> On 1/22/07, Vishal Joshi <
<a href="mailto:vishaljoshi18@yahoo.com">vishaljoshi18@yahoo.com</a>> wrote:<br>>><br>>><br>>> Thanks Steve,<br>>> I tried PARENT_LAST option, but that did not help. I will consider<br>>> 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>>> ><br>>> > Hi Vishal,<br>>> ><br>>> > We had similar problems which we resolved by upgrading to WebSphere<br>>> > <a href="http://6.1.0.3">
6.1.0.3</a>.<br>>> > This version uses the same 3.2 jars as jboss rules. An alternative<br>>> > solution<br>>> > to this is to make sure that you are using the PARENT_LAST classloading<br>>> > policy for your application and making sure the required jars are in
<br>>> your<br>>> > ear (depending on how far along you are in development I would suggest<br>>> > making this change anyway as it ensures the application jars are used<br>>> in<br>>> > preference to the server's). I'll put something up on the wiki for
<br>>> > troubleshooting with WebSphere.<br>>> ><br>>> > cheers<br>>> > Steve<br>>> ><br>>> > On 1/19/07, Vishal Joshi <<a href="mailto:vishaljoshi18@yahoo.com">vishaljoshi18@yahoo.com
</a>> wrote:<br>>> >><br>>> >><br>>> >> This is resolved now.<br>>> >> For benefit of others, i added the system variable in websphere<br>>> console<br>>> >>
drools.compiler=JANINO<br>>> >> This at runtime uses janino compiler api instead of using eclipse<br>>> >> 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<br>>> (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<br>>> 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<br>>> 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<br>>> >> 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>>> >> >>>>><br>>> .getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;<br>>> >> >>>>> at
<br>>> >> >>>>><br>>> org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult<br>>> >> (E<br>>> >> >>>>> clipseJavaCompiler.java:237)<br>
>> >> >>>>> at<br>>> >> >>>>> org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java<br>>> >> :335)<br>>> >> >>>>>
<br>>> >> >>>>> at<br>>> >> >>>>> org.apache.commons.jci.compilers.EclipseJavaCompiler.compile<br>>> >> (EclipseJ<br>>> >> >>>>>
avaCompiler.java:268)<br>>> >> >>>>> at org.drools.compiler.PackageBuilder.compile(Unknown<br>>> >> Source)<br>>> >> >>>>> at<br>>> org.drools.compiler.PackageBuilder.compileRule
(Unknown<br>>> >> >>>>> Source)<br>>> >> >>>>> at org.drools.compiler.PackageBuilder.addRule(Unknown<br>>> >> 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<br>>> >> 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:<br>>> >><br>>> <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>>> >><br>>> ><br>>> ><br>>> ><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
<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>>> View this message in context:
<br>>> <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>>><br>><br>><br>><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<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>View this message in context: <a href="http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8685187">http://www.nabble.com/class-loading-issue-with-websphere-6.1-tf3027390.html#a8685187
</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