It turns out this is because I had a whole bunch of server side jar files
included in the classpath tag for the gwtc tasks. Some of those jars are
obviously interfering with the gwt compiler.  I simplified the classpath to
just include jars that comes with gwt and the third party gwt jars in the
"compile.gwt.classpath" in the following tag. The problem goes away.
      <classpath>
        <pathelement location="src"/>
        <path refid="compile.gwt.classpath"/>
      </classpath>

On Thu, May 14, 2009 at 10:06 PM, ping <[email protected]> wrote:

> When trying to compiling the GWT-based code by running an Ant script,
> I got the following error. Within a similar environment, I can compile
> using, for example, the Showcase program's build file without any
> problem.  But compiling with the red icon within Eclipse didn't have
> any problem either. So this does not sound like it is related to the
> specifics in our application level code.
>
>     [java] [ERROR] Unexpected
>     [java] java.lang.NoSuchMethodError:
>
> org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch
> ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
>     [java]     at com.google.gwt.dev.javac.JsniChecker
> $CheckingVisitor.findClass(JsniChecker.java:231)
>     [java]     at com.google.gwt.dev.javac.JsniChecker
> $CheckingVisitor.checkRefs(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.traverse
> (MethodDeclaration.java:247)
>     [java]     at
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1337)
>     [java]     at
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1206)
>     [java]     at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:518)
>     [java]     at com.google.gwt.dev.javac.JsniChecker.check
> (JsniChecker.java:350)
>     [java]     at com.google.gwt.dev.javac.JsniChecker.check
> (JsniChecker.java:340)
>     [java]     at
>
> com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
> (CompilationUnitInvalidator.java:159)
>     [java]     at com.google.gwt.dev.javac.CompilationState.compile
> (CompilationState.java:198)
>     [java]     at com.google.gwt.dev.javac.CompilationState.refresh
> (CompilationState.java:178)
>     [java]     at com.google.gwt.dev.javac.CompilationState.<init>
> (CompilationState.java:93)
>     [java]     at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
> (ModuleDef.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)
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to