Ext GWT 2.2.1和GWT 2.1.1

时间:2011-02-24 17:25:30

标签: gxt

我正在尝试使用Ext GWT 2.0来构建基于AJAX的Web应用程序。在尝试使用GXT BeanModel类时遇到了障碍。

本质上,我试图沿@BEAN注释使用BeanModelMarker来定义BeanModel对象。

在编译时,我收到以下错误:

  

[ERROR]找不到类com.extjs.gxt.ui.client.data.BeanModelLookup。        [java] com.google.gwt.core.ext.typeinfo.NotFoundException:[JAVA BEAN CLASS NAME HERE]        [java] at com.google.gwt.core.ext.typeinfo.TypeOracle.getType(TypeOracle.java:534)        [java] at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.getMarkerBean(BeanModelGenerator.java:188)        [java] at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate(BeanModelGenerator.java:55)        [java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427)        [java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39)        [java] at com.google.gwt.dev.shell.StandardRebindOracle $ Rebinder.tryRebind(StandardRebindOracle.java:115)        [java] at com.google.gwt.dev.shell.StandardRebindOracle $ Rebinder.rebind(StandardRebindOracle.java:58)        [java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161)        [java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150)        [java] at com.google.gwt.dev.Precompile $ DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345)        [java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)        [java] at com.google.gwt.dev.jdt.AbstractCompiler $ Sandbox $ CompilerImpl.process(AbstractCompiler.java:254)        [java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)        [java] at com.google.gwt.dev.jdt.AbstractCompiler $ Sandbox $ CompilerImpl.compile(AbstractCompiler.java:175)        [java] at com.google.gwt.dev.jdt.AbstractCompiler $ Sandbox $ CompilerImpl.compile(AbstractCompiler.java:288)        [java] at com.google.gwt.dev.jdt.AbstractCompiler $ Sandbox $ CompilerImpl.access $ 400(AbstractCompiler.java:145)        [java] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)        [java] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)        [java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)        [java] com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:484)        [java] com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)        [java] com.google.gwt.dev.Precompile.precompile(Precompile.java:545)        [java] com.google.gwt.dev.Precompile.precompile(Precompile.java:466)        [java] com.google.gwt.dev.Compiler.run(Compiler.java:205)        [java] com.google.gwt.dev.Compiler.run(Compiler.java:177)        [java] at com.google.gwt.dev.Compiler $ 1.run(Compiler.java:149)        [java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)        [java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)        [java] com.google.gwt.dev.Compiler.main(Compiler.java:156)        [java] [错误]'jar:[FILE PATH] /gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'中的错误        [java] [错误]第34行:无法通过延迟绑定解析'com.extjs.gxt.ui.client.data.BeanModelLookup'        [java] [错误]由于先前的错误无法继续

1 个答案:

答案 0 :(得分:0)

需要添加gwt.xml的源路径