Move the GWT libraries up in your classpath. They should be right  
after your source directory and before anything else.

-jason

On Aug 21, 2009, at 9:11 AM, dm3sol wrote:

>
> I was searching for this error over this group and did not find
> similar issue, so I thought this is a note for the others in case you
> would hit this GWT compilation error after you add GWT in your
> existing project that happens to have Apache Tomcat libraries in the
> classpath :
>
> [ERROR] Unexpected
> java.lang.NoSuchMethodError:
> org 
> .eclipse 
> .jdt.internal.compiler.lookup.ParameterizedTypeBinding.genericType
> ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
>       at com.google.gwt.dev.jdt.TypeRefVisitor.maybeDispatch
> (TypeRefVisitor.java:178)
>       at  
> com.google.gwt.dev.jdt.TypeRefVisitor.endVisit(TypeRefVisitor.java:
> 101)
>       at
> org 
> .eclipse 
> .jdt.internal.compiler.ast.ParameterizedSingleTypeReference.traverse
> (ParameterizedSingleTypeReference.java:231)
>       at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1118)
>       at
> org 
> .eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:487)
>       at
> com 
> .google 
> .gwt 
> .dev 
> .javac 
> .BinaryTypeReferenceRestrictionsChecker 
> .findAllBinaryTypeReferenceSites
> (BinaryTypeReferenceRestrictionsChecker.java:144)
>       at
> com.google.gwt.dev.javac.BinaryTypeReferenceRestrictionsChecker.check
> (BinaryTypeReferenceRestrictionsChecker.java:114)
>       at
> com 
> .google 
> .gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
> (CompilationUnitInvalidator.java:160)
>       at com.google.gwt.dev.javac.CompilationState.compile
> (CompilationState.java:198)
>       at com.google.gwt.dev.javac.CompilationState.refresh
> (CompilationState.java:178)
>       at com.google.gwt.dev.javac.CompilationState.<init>
> (CompilationState.java:93)
>       at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
> (ModuleDef.java:264)
>       at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)
>       at com.google.gwt.dev.Compiler.run(Compiler.java:170)
>       at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
>       at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 88)
>       at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
> (CompileTaskRunner.java:82)
>       at com.google.gwt.dev.Compiler.main(Compiler.java:131)
>
> yah! Do not panic, just go to Project Build path in Eclipse and move
> the GWT libraries above Apache Tomcat in Order and Export tab.
>
> Hope this saves somebody some time !
>
> -- Dusan
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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