The solution for this problem is on this site:

http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat

 

 

__________________________________

Francisco Brum - francisco.brum@link.pt
Link Consulting - http://www.link.pt/

Tel.: 213 100 031
Av. Duque D'Ávila, 23 4º Esq.
1000-138 Lisboa

 


From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Francisco Brum
Sent: quinta-feira, 8 de Fevereiro de 2007 11:24
To: Rules Users List
Subject: RE: [rules-users] java.lang.NoSuchMethodError

 

I have runned the small rule that I have created on a test example on eclipse, and it works fine.

 

The problem is when I try to use the rule on a JBoss Portal. From what I’ve getter, the problem lies on conflict.

Meaning that when I satisfy the Drools dependency with org.eclipse.jdt.core_3.2.0.v_642.jar or with ecj.jar, the portal gets unstable, because some times works fine and other times it gives the same error as the one bellow, but from a different origin.

I believe the JBoss portal uses the same class, because I have found on the deploy file of the server the jar jasper-compiler-jdt.jar, which contains the same class.

Some how, it gets on conflict with the other jar for the drools.

 

I’m still trying to solve this. L

 


From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Steven Williams
Sent: quarta-feira, 7 de Fevereiro de 2007 23:20
To: Rules Users List
Subject: Re: [rules-users] java.lang.NoSuchMethodError

 

Hi FBrum,

You will find the
org.eclipse.jdt.core_3.2.0.v_642.jar in your eclipse\plugins directory.

cheers
Steve

On 2/7/07, Francisco Brum <francisco.brum@link.pt> wrote:

Hello everybody!

 

I'm having the same problem that you had, but when I run the project from the JBoss Server and try do run the code with the JBoss rules, I get the error:

 

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;

            at org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult(EclipseJavaCompiler.java:237)

            at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:415)

            at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:352)

            at org.apache.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:268)

            at org.drools.compiler.PackageBuilder.compileAll(Unknown Source)

            at org.drools.compiler.PackageBuilder.addPackage(Unknown Source)

            at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)

 

I've downloaded the ecj.jar, which haves the org\eclipse\jdt\internal\compiler\CompilationResult.class

with the getProblems() method, to the \lib folder of the server!

But it seems that this ecj.jar haves some conflict, because there are times that it works and others it doesn't.

 

So I have tried do look for the org.eclipse.jdt.core_3.2.0.v_642.jar

In my org.drools.ide_3.0.5, but didn't found it. Don't know where to!!

 

What should I do?

 

Thanks in advanced for your attention

FBrum.

 

History of a similar problem solved in this mailing list:

shilpa.raghavendra
Sun, 28 Jan 2007 23:38:14 -0800

Thank you very much Steve its working fine.

 

-----Original Message-----
From: [EMAIL PROTECTED]
[
mailto:[EMAIL PROTECTED] On Behalf Of Steven
Williams
 
Sent: Monday, January 29, 2007 10:20 AM
To: Rules Users List
Subject: Re: [rules-users] java.lang.NoSuchMethodError
 
 
 
Sorry Shilpa - I was looking at 
3.0.5. What I said still holds true though -
make sure the v642 jar is at the top of your runtime classpath.
 
On 1/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
 
 
 
 
  I am using org.drools.ide_3.0.4 as eclipse plug-in it's having
org.eclipse.jdt.core_3.2.0.v_642.jar
 
 
 
Still I have to use higher version
 
 
 
Regards
 
 
Shilpa

 

 

__________________________________

Francisco Brum - francisco.brum@link.pt
Link Consulting - http://www.link.pt/

Tel.: 213 100 031
Av. Duque D'vila, 23 4 Esq.
1000-138 Lisboa

 


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
stevenw@objectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference