Exception migrating GWT to Ext GWT

Initially i have implemented GWT application, and later implemented some pages from Ext GWT, when i added the same Ext GWT pages to GWT application, and during compilation i get the following exceotion,. please help me to get this solved.

Compile of permutations succeeded [INFO] Linking into C:devboxmlpAviorworkboxfvp-uitargetfvp-uifoo [INFO] Link succeeded [INFO] Compilation succeeded -- 57.427s [INFO] Compiling module de.mlp.avior.fvp.ui.MainPartner [INFO] Validating newly compiled units [INFO] [ERROR] Errors in 'file:/C:/devbox/mlp/Avior/workbox/fvp-ui/src/main/java/de/mlp/avior/fvp/ui/client/ExtAddPartner.java' [INFO] [ERROR] Line 15: No source code is available for type com.extjs.gxt.ui.client.widget.form.TextField; did you forget to inherit a required module? [INFO] [ERROR] Line 40: No source code is available for type com.extjs.gxt.ui.client.widget.form.LabelField; did you forget to inherit a required module? [INFO] [ERROR] Line 87: No source code is available for type com.extjs.gxt.ui.client.widget.form.DateField; did you forget to inherit a required module? [INFO] [ERROR] Line 93: No source code is available for type com.extjs.gxt.ui.client.widget.button.Button; did you forget to inherit a required module? [INFO] [ERROR] Errors in 'file:/C:/devbox/mlp/Avior/workbox/fvp-ui/src/main/java/de/mlp/avior/fvp/ui/client/ExtListPartners.java' [INFO] [ERROR] Line 19: No source code is available for type com.extjs.gxt.ui.client.widget.grid.ColumnModel; did you forget to inherit a required module? [INFO] [ERROR] Line 26: No source code is available for type com.extjs.gxt.ui.client.widget.grid.ColumnConfig; did you forget to inherit a required module? [INFO] [ERROR] Line 33: No source code is available for type com.extjs.gxt.ui.client.Style.HorizontalAlignment; did you forget to inherit a required module? [INFO] [ERROR] Line 62: No source code is available for type com.extjs.gxt.ui.client.store.ListStore; did you forget to inherit a required module? [INFO] [ERROR] Line 67: No source code is available for type com.extjs.gxt.ui.client.widget.ContentPanel; did you forget to inherit a required module? [INFO] [ERROR] Line 72: No source code is available for type com.extjs.gxt.ui.client.widget.layout.FitLayout; did you forget to inherit a required module? [INFO] [ERROR] Line 75: No source code is available for type com.extjs.gxt.ui.client.widget.grid.Grid; did you forget to inherit a required module? [INFO] [ERROR] Errors in 'file:/C:/devbox/mlp/Avior/workbox/fvp-ui/src/main/java/de/mlp/avior/fvp/ui/client/Foo.java' [INFO] [ERROR] Line 172: No source code is available for type com.extjs.gxt.ui.client.widget.DatePicker; did you forget to inherit a required module? [INFO] [ERROR] Errors in 'file:/C:/devbox/mlp/Avior/workbox/fvp-ui/src/main/java/de/mlp/avior/fvp/ui/client/PartnerBean.java' [INFO] [ERROR] Line 5: No source code is available for type com.extjs.gxt.ui.client.data.BaseModel; did you forget to inherit a required module? [INFO] [ERROR] An internal compiler exception occurred [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode [INFO] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140) [INFO] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:127) [INFO] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71) [INFO] at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:778 ) [INFO] at com.google.gwt.dev.jjs.impl.BuildTypeMap.access$000(BuildTypeMap.java: 100) [INFO] at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit(Bui ldTypeMap.java:199) [INFO] at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse(LocalD eclaration.java:237) [INFO] at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.traverse( ConstructorDeclaration.java:505) [INFO] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDec laration.java:1239) [INFO] at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.tra ve rse(CompilationUnitDeclaration.java:687) [INFO] at com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(Bu ildTypeMap.java:683) [INFO] at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:547) [INFO] at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:537) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaS criptCompiler.java:550) [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompile r.java:35) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:541) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:495) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:407) [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:215) [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:187) [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) [INFO] at com.goog le.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileT askRunner.java:81) [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:166) [INFO] [ERROR] : public class com.extjs.gxt.ui.client.widget.form.TextField [INFO] extends Field [INFO] /* fields / [INFO] protected static [unresolved] com.google.gwt.user.client.ui.impl.TextBoxImpl impl [INFO] protected [unresolved] java.lang.String emptyStyle [INFO] protected [unresolved] Unresolved type com.extjs.gxt.ui.client.core.El input [INFO] protected [unresolved] Unresolved type com.extjs.gxt.ui.client.widget.form.Validator validator [INFO] private [unresolved] boolean allowBlank [INFO] private [unresolved] int maxLength [INFO] private [unresolved] int minLength [INFO] private [unresolved] boolean needsPreventDefaultMouseUp [INFO] private [unresolved] boolean password [INFO] private [unresolved] java.lang.String regex [INFO] private [unresolved] boolean selectOnFocus [INFO] / methods / [INFO] public void () [INFO] [unresolved] protec ted Unresolved type com.extjs.gxt.ui.client.util.Size adjustInputSize() [INFO] [unresolved] protected void applyEmptyText() [INFO] [unresolved] public boolean getAllowBlank() [INFO] [unresolved] public int getCursorPos() [INFO] [unresolved] protected Unresolved type com.extjs.gxt.ui.client.core.El getFocusEl() [INFO] [unresolved] protected Unresolved type com.extjs.gxt.ui.client.core.El getInputEl() [INFO] [unresolved] public int getMaxLength() [INFO] [unresolved] public TextFieldMessages getMessages() [INFO] [unresolved] public int getMinLength() [INFO] [unresolved] public java.lang.String getRegex() [INFO] [unresolved] public boolean getSelectOnFocus() [INFO] [unresolved] public java.lang.String getSelectedText() [INFO] [unresolved] public int getSelectionLength() [INFO] [unresolved] protected Unresolved type com.extjs.gxt.ui.client.core.El getStyleEl() [INFO] [unresolved] public Unresolved type com.extjs.gxt.ui.client.widget.form.Validator getValidator() [INFO] [unresolved] public b oolean isPassword() [INFO] [unresolved] protected void onBlur(Unresolved type com.extjs.gxt.ui.client.event.ComponentEvent) [INFO] [unresolved] public void onComponentEvent(Unresolved type com.extjs.gxt.ui.client.event.ComponentEvent) [INFO] [unresolved] protected void onFocus(Unresolved type com.extjs.gxt.ui.client.event.ComponentEvent) [INFO] [unresolved] protected void onRender(com.google.gwt.user.client.Element, int) [INFO] [unresolved] protected void onResize(int, int) [INFO] [unresolved] protected void removeEmptyText() [INFO] [unresolved] public void select(int, int) [INFO] [unresolved] public void selectAll() [INFO] [unresolved] public void setAllowBlank(boolean) [INFO] [unresolved] protected void setAriaState(java.lang.String, java.lang.String) [INFO] [unresolved] public void setCursorPos(int) [INFO] [unresolved] public void setEmptyText(java.lang.String) [INFO] [unresolved] public void setMaxLength(int) [INFO] [unresolved] public void setMinLength(int) [INFO] [unresolved] pub lic void setPassword(boolean) [INFO] [unresolved] public void setRegex(java.lang.String) [INFO] [unresolved] public void setSelectOnFocus(boolean) [INFO] [unresolved] public void setSelectionRange(int, int) [INFO] [unresolved] public void setValidator(Unresolved type com.extjs.gxt.ui.client.widget.form.Validator) [INFO] [unresolved] public void setValue(D) [INFO] [unresolved] protected boolean validateValue(java.lang.String) [INFO] / members / [INFO] public class com.extjs.gxt.ui.client.widget.form.TextField$TextFieldMessages [INFO] extends Unresolved type com.extjs.gxt.ui.client.widget.form.Field$FieldMessages [INFO] enclosing type : com.extjs.gxt.ui.client.widget.form.TextField [INFO] / fields / [INFO] private [unresolved] java.lang.String blankText [INFO] private [unresolved] java.lang.String maxLengthText [INFO] private [unresolved] java.lang.String minLengthText [INFO] private [unresolved] java.lang.String regexText [INFO] final [unresolved] TextField#RAW this$0 [INFO] / methods * / [INFO] [unresolved] public void () [INFO] [unresolved] public java.lang.String getBlankText() [INFO] [unresolved] public java.lang.String getMaxLengthText() [INFO] [unresolved] public java.lang.String getMinLengthText() [INFO] [unresolved] public java.lang.String getRegexText() [INFO] [unresolved] public void setBlankText(java.lang.String) [INFO] [unresolved] public void setMaxLengthText(java.lang.String) [INFO] [unresolved] public void setMinLengthText(java.lang.String) [INFO] [unresolved] public void setRegexText(java.lang.String) [INFO] [INFO] [INFO] [INFO] [INFO] [INFO] [INFO] org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding [INFO] [ERROR] at ExtAddPartner.java(15): TextField txtfldNewTextfield = new TextField(); [INFO] org.eclipse.jdt.internal.compiler.ast.LocalDeclaration

[INFO]

-- [INFO] BUILD FAILURE

[INFO]

-- [INFO] Total time: 2:38.172s [INFO] Finished at: Wed Jun 29 11:22:48 IST 2011 [INFO] Final Memory:

15M/37M [INFO]

-- [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.2.0:compile (default) on project fvp-ui: Command [[ [ERROR] C:devboxjava1.6jrebinjava -Xmx512m -classpath C:Userskdel.m2repositorycomgooglegwtgwt-user2.2.0gwt-user-2. 2.0.jar;C:Userskdel.m2repositorycomgooglegwtgwt-dev2.2.0gwt- dev-2.2.0.jar;C:devboxmlpAviorworkboxfvp-uisrcmainjava;C:devb oxmlpAviorworkboxfvp-uitargetgenerated-sourcesgwt;C:devboxmlp Aviorworkboxfvp-uisrcmainresources;C:devboxmlpAviorworkboxf vp-uitargetfvp-uiWEB-INFclasses;C:Userskdel.m2repositorydeml paviorfvpfvp-model1.2-SNAPSHOTfvp-model-1.2-SNAPSHOT.jar;C:Users kdel.m2repositorydemlpaviorfwmodelfw-model-types1.3fw-model -types-1.3.jar;C:Userskdel.m2repositorynetsourceforgejexcelapi jxl2.6.10jxl-2.6.10.jar;C:Userskdel.m2repositorylog4jlog4j1.2 .14log4j-1.2.14.jar;C:Userskdel.m2repositoryjoda-timejoda-time 1.5.2joda-time-1.5.2.jar;C:Userskdel.m2repositorydemlpaviorfw modelfw-model-persistence1.3fw-model-persistence-1.3.jar;C:Users kdel.m2repositor yorgaspectjaspectjrt1.6.9aspectjrt-1.6.9.jar;C:Userskdel.m2repositoryorghibernatejavaxpersistencehibernate-jpa-2.0-api1.0.0 .Finalhibernate-jpa-2.0-api-1.0.0.Final.jar;C:Userskdel.m2repositoryorghibernatehibernate-annotations3.5.6-Finalhibernate-annotations-3.5.6-Final.jar;C:Userskdel.m2repositoryorghibernatehibernate-commons-annotations3.2.0.Finalhibernate-commons-annotations-3.2.0.Final.jar;C:Userskdel.m2repositoryorghibernatehibernate-core3.5.6-Finalhibernate-core-3.5.6-Final.jar;C:Userskdel.m2repositoryantlrantlr2.7.6antlr-2.7.6.jar;C:Userskdel.m2repositorycommons-collectionscommons-collections3.1commons-collections-3.1.jar;C:Userskdel.m2repositorydom4jdom4j1.6.1dom4j-1.6.1.jar;C:Userskdel.m2repositoryxml-apisxml-apis1.0.b2xml-apis-1.0.b2.jar;C:Userskdel.m2repositoryjavaxtransactionjta1.1jta-1.1.jar;C:Userskdel.m2repositoryorghibernatehibernate-entitymanager3.5.6-Finalhibernate-ent itymanager-3.5.6-Final.jar;C:Userskdel.m2repositorycglibcglib2.2cglib-2.2.jar;C:Userskdel.m2repositoryasmasm3.1asm-3.1.jar;C:Userskdel.m2re positoryjavassistjavassist3.9.0.GAjavassist-3.9.0.GA.jar;C:Userskdel.m2repositoryorghibernatehibernate-validator4.1.0.Finalhibernate-validator-4.1.0.Final.jar;C:Userskdel.m2repositoryorgspringframeworkspring-orm3.0.5.RELEASEspring-orm-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-jdbc3.0.5.RELEASEspring-jdbc-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-tx3.0.5.RELEASEspring-tx-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-aspects3.0.5.RELEASEspring-aspects-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-context-support3.0.5.RELEASEspring-context-support-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA.jar;C:Userskdel .m2repositoryorgslf4jslf4j-api1.6.1slf4j-api-1.6.1.jar;C:Userskdel.m2repositorydemlpaviorfvpfvp-service1.2-SNAPSHOTfvp-service-1.2-SNAPSHOT.jar;C:Userskdel.m 2repositoryorgspringframeworkspring-aop3.0.5.RELEASEspring-aop-3.0.5.RELEASE.jar;C:Userskdel.m2repositorycomgooglegwtgwt-user2.2.0gwt-user-2.2.0.jar;C:Userskdel.m2repositorycomgoogleguavaguavar09guava-r09.jar;C:Userskdel.m2repositorycomgoogleguavaguavar09guava-r09-gwt.jar;C:Userskdel.m2repositorycommons-langcommons-lang2.6commons-lang-2.6.jar;C:Userskdel.m2repositoryorgspringframeworkspring-context3.0.5.RELEASEspring-context-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-core3.0.5.RELEASEspring-core-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-expression3.0.5.RELEASEspring-expression-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-asm3.0.5.RELEASEspring-asm-3.0.5. RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-beans3.0.5.RELEASEspring-beans-3.0.5.RELEASE.jar;C:Userskdel.m2repositoryorgspringframeworkspring-web3.0.5.RELEASEspring-web-3.0.5.RELEASE.jar;C:Userskdel.m2repositorycomextjsgxt2.2.4gxt-2.2.4-gwt22.jar;C:Userskdel.m2repositorycomgwtplatformgwtp-mvp-client.5.1gwtp-mvp-client-0.5.1.jar;C:Userskdel.m2repositorycomgwtplatformgwtp-clients-common.5.1gwtp-clients-common-0.5.1.jar;C:Userskdel.m2repositorycomgooglegwtinjectgin1.5.0gin-1.5.0.jar;C:Userskdel.m2repositorycomgoogleinjectextensionsguice-assistedinject3.0-rc2guice-assistedinject-3.0-rc2.jar;C:Userskdel.m2repositorycomgwtplatformgwtp-dispatch-client.5.1gwtp-dispatch-client-0.5.1.jar;C:Userskdel.m2repositorycomgwtplatformgwtp-dispatch-shared.5.1gwtp-dispatch-shared-0.5.1.jar;C:Userskdel.m2repositorycomgwtplatformgwtp-dispatch-server.5.1gwtp-dispatch-server-0.5.1.jar;C :Userskdel.m2rep ositorycomgwtplatformgwtp-crawler.5.1gwtp-crawler-0.5.1.jar;C:Userskdel.m2repositorynetsourceforgehtmlunithtmlunit2.8htmlunit-2.8.jar;C:Userskdel.m2repositoryxalanxalan2.7.1xalan-2.7.1.jar;C:Userskdel.m2repositoryxalanserializer2.7.1serializer-2.7.1.jar;C:Userskdel.m2repositoryorgapachehttpcomponentshttpclient4.0.1httpclient-4.0.1.jar;C:Userskdel.m2repositoryorgapachehttpcomponentshttpcore4.0.1httpcore-4.0.1.jar;C:Userskdel.m2repositoryorgapachehttpcomponentshttpmime4.0.1httpmime-4.0.1.jar;C:Userskdel.m2repositoryorgapachejamesapache-mime4j.6apache-mime4j-0.6.jar;C:Userskdel.m2repositorycommons-codeccommons-codec1.4commons-codec-1.4.jar;C:Userskdel.m2repositorynetsourceforgehtmlunithtmlunit-core-js2.8htmlunit-core-js-2.8.jar;C:Userskdel.m2repositoryxercesxercesImpl2.9.1xercesImpl-2.9.1.jar;C:Userskdel.m2repositorynetsourceforgenekohtmlnekohtml1.9.14 nekohtml-1.9.14.jar;C:Userskdel.m2rep ositorynetsourceforgecssparsercssparser.9.5cssparser-0.9.5.jar;C:Userskdel.m2repositoryorgw3ccsssac1.3sac-1.3.jar;C:Userskdel.m2repositorycommons-iocommons-io2.0.1commons-io-2.0.1.jar;C:Userskdel.m2repositorycomgoogleappengineappengine-api-1.0-sdk1.4.2appengine-api-1.0-sdk-1.4.2.jar;C:Userskdel.m2repositorycomgwtplatformgwtp-processors.5.1gwtp-processors-0.5.1.jar;C:Userskdel.m2repositorycomgoogleinjectguice3.0-rc2guice-3.0-rc2.jar;C:Userskdel.m2repositoryjavaxinjectjavax.inject1javax.inject-1.jar;C:Userskdel.m2repositorycomgoogleinjectextensionsguice-servlet3.0-rc2guice-servlet-3.0-rc2.jar;C:Userskdel.m2repositoryaopallianceaopalliance1.0aopalliance-1.0.jar;C:Userskdel.m2repositorycomgooglegwtgwt-gin1.0-r137gwt-gin-1.0-r137.jar com.google.gwt.dev.Compiler -gen C:devboxmlpAviorworkboxfvp-uitarget.generated -logLevel INFO -style OBF -war C:devboxmlpAviorworkboxfvp-uitargetfvp-ui -localWorker s 2 -draftCompile de.mlp.avior.fvp.ui.Foo de.mlp.avior.fvp.ui.MainPartner [ERROR] ]] failed with status 1 [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio n

Thanks,


The compiler says:

No source code is available for type com.extjs.gxt.ui.client.data.BaseModel; 
did you forget to inherit a required module?

So did you include the gxt in your .gwt.xml:

<inherits name="com.extjs.gxt.ui.GXT" />

Did you follow all steps in gxt's tutorial? Especially, is gxt's jar available to compiler? Since you are using maven to compile, did you add gxt dependency to your pom.xml?

链接地址: http://www.djcxy.com/p/44114.html

上一篇: 来源罐子几乎空? (需要GWT)

下一篇: 将GWT异常迁移到Ext GWT