Thursday, May 21, 2009

JBoss Drools and GWT 1.6.4 classpath conflict

If you're doing a project with GWT 1.6.4 and you also use JBOSS Drools you will have to exclude the Drools libs from the classpath when compiling java to Javascript with GWT, as it throws a proud representative of the jar hell:

[java] [ERROR] Unexpected
[java] java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.looku
p.ProblemReferenceBinding.closestReferenceMatch()Lorg/eclipse/jdt/internal/compi
ler/lookup/ReferenceBinding;
[java] at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClas
s(JsniChecker.java:231)
[java] at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRef
s(JsniChecker.java:142)
[java] at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit
(JsniChecker.java:65)
[java] at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.trave
rse(MethodDeclaration.java:227)
[java] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.travers
e(TypeDeclaration.java:1149)
[java] at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclarat
ion.traverse(CompilationUnitDeclaration.java:487)
[java] at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:3
50)
[java] at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:3
40)
[java] at com.google.gwt.dev.javac.CompilationUnitInvalidator.validateC
ompilationUnits(CompilationUnitInvalidator.java:159)
[java] at com.google.gwt.dev.javac.CompilationState.compile(Compilation
State.java:198)
[java] at com.google.gwt.dev.javac.CompilationState.refresh(Compilation
State.java:178)
[java] at com.google.gwt.dev.javac.CompilationState.(CompilationS
tate.java:93)
[java] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDe
f.java:264)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)

[java] at com.google.gwt.dev.Compiler.run(Compiler.java:170)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.
java:84)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:131)

5 comments:

Anonymous said...

Поздравляю вас Старо-Новым годом, желаю вам в новом году успехов и спасибо что вы находите время поддерживать ваш замечательный блог!

Anonymous said...

I love lightweightyes.blogspot.com! Here I always find a lot of helpful information for myself. Thanks you for your work.
Webmaster of http://loveepicentre.com and http://movieszone.eu
Best regards

Anonymous said...

A great man is always willing to be little.
[url=http://replica-hermesbags.weebly.com/]replica hermes bags[/url] replica-hermesbags.weebly.com
[url=http://ugg-boots-cheapuk.blogspot.com/]ugg boots cheap[/url] ugg-boots-cheapuk.blogspot.com
[url=http://cheapest-uggboots.weebly.com/]cheap ugg boots[/url] cheapest-uggboots.weebly.com
Every man at forty is a fool or a physician.
spyder jackets spyder-jackets-outlet.blogspot.com
cheap ugg boots cheapest-uggboots.weebly.com

Anonymous said...

[url=http://www.peytonmanningwomensjersey.com/]Peyton Manning Jersey[/url]

Differentiate yourself from others in similar professionalsWhy does this occur?Let's have a quick look at how the brain works ? in dogs and in you Or pay off the balance each month and avoid both!5 Whatever they prefer, make it fun!----------------------------------------- Your Parrot Place Taylor Knight is President of Your Parrot Place, providers of the highest quality parrot food, toys, cages and supplies available

[url=http://www.texansfootballshop.com/]JJ Watt Blue Jersey[/url]

Again, use your intuitionYou can have a second person hold the dog while you wash him if you're using an area too large to fence him in Consider this for a moment!So what is Free Will in the first place?Free Will is very simpleThe simple, softheaded strategy is pre-empting the attack through applying Challis's technology

[url=http://www.heathmillerjersey.net/]Heath Miller Women's Jersey[/url]

Anonymous said...

CCLEUNG Ecommerce design Insurer are going to improve i would say the repowering a while of a borrower's business, as a consequence account holders is often more able to begun to your web article traditionally. All endeavours helps small business insurer enrich earnings. Methods to making a earning little. http://www.vancouverwebdesignseo.com/