You'll need to put a SomeName.gwt.xml in some directory relative to
the com.gwt classpath that has <source path="demo" />  and then in
your app's entrypoint module .gwt.xml file you add a line that says
<inherits name="com.gwt.SomeName"/>  where SomeName is the module you
name where you're putting your .User stuff.  If you put it in
the .client sub-package relative to your entrypoint .gwt.xml you don't
have to do an inherits.

On Oct 14, 4:52 am, Raghul <[email protected]> wrote:
> I getting the following error while compiling the GWT application.
>
> Any one please help resolve this issue.
>
> Validating newly compiled units
>    Ignored 3 units with compilation errors in first pass.
> Compile with -strict or with -logLevel set to TRACE or DEBUG to see
> all errors.
> [ERROR] An internal compiler exception occurred
> com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
>         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
>         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
> 730)
>         at
> com.google.gwt.dev.jjs.impl.BuildTypeMap.createField(BuildTypeMap.java:
> 570)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
> $300(BuildTypeMap.java:99)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap
> $BuildDeclMapVisitor.visit(BuildTypeMap.java:180)
>         at
> org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclar 
> ation.java:
> 285)
>         at
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclarat 
> ion.java:
> 1232)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(C 
> ompilationUnitDeclaration.java:
> 687)
>         at
> com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTy 
> peMap.java:
> 637)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
> 514)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
> 523)
>         at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript 
> Compiler.java:
> 599)
>         at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a:
> 33)
>         at com.google.gwt.dev.Precompile.validate(Precompile.java:187)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:222)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:198)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 88)
>         at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu 
> nner.java:
> 82)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:177)
>    [ERROR] <no source info>: public class com.gwt.demo.User       extends
> java.lang.Object
> /*   fields   */
> private [unresolved] java.lang.String firstName
> private [unresolved] java.lang.String lastName
> /*   methods   */
> public void <init>(java.lang.String, java.lang.String) throws
> java.lang.Exception
> [unresolved] public void setLastName(java.lang.String)
> [unresolved] private void getLastName() throws java.lang.Exception
>
>       org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
>    [ERROR] at LoginDemo.java(18): public User user = null;
>       org.eclipse.jdt.internal.compiler.ast.FieldDeclaration

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