AutoBeanFactory在GWT 2.3中不起作用

Hri*_*esh 4 java gwt

我正在使用GWT 2.3.0.我试图合并AutoBean功能,但它显示我的异常

12:17:20.501 [错误] [webmaths]未捕获的异常已转义

由以下内容引起:java.lang.NoClassDefFoundError:com/google/web/bindery/autobean/shared/AutoBeanFactory at com.kuchnaya.maths.client.HtmlPlayer $ 6.onValueChange(HtmlPlayer.java:360)at com.google.gwt.event位于com.google.gwt.event.shared.vent./ .dispatch(GwtEvent.java:1)位于com.google.web.bindery.event.shampleEventBus.doFire(SimpleEventBus.java:193)的com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus) .java:88)com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:76)at com.google.gwt.vent.wt.cl.上的com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43),com.google上的com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:83). gwt.user.client.History.fireCurrentHistoryState(历史 ory.java:121)com.kuchnaya.maths.client.HtmlPlayer.onModuleLoad(HtmlPlayer.java:260)位于com.google.gwt的org.gwtmultipage.client.EntryPointFactoryImpl $ 16.onSuccess(EntryPointFactoryImpl.java:284). core.client.GWT.runAsyncWithoutCodeSplitting(GWT.java:312)位于com.google.gwt.core.client.GWT.runAsync(GWT.java:256)org.gwtmultipage.client.EntryPointFactoryImpl.launchEntryPoint(EntryPointFactoryImpl.java: 278)org.gwtmultipage.client.EntryPointFactoryImpl.onModuleLoad(EntryPointFactoryImpl.java:93)org.gwtmultipage.client.EntrypointDispatcher.onModuleLoad(EntrypointDispatcher.java:30)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)位于com.google的java.lang.reflect.Method.invoke(Method.java:597)的sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25). com.google.gwt.dev.shell.OophmSessionHandler上的gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396).loadModule(OophmSessionHandler.java:193)位于com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)在java.lang.Thread.run(Thread.java:662)

引起:java.lang.ClassNotFoundException:com.google.web.bindery.autobean.shared.AutoBeanFactory,位于java.lang.ClassLoader的com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1054). loadClass(ClassLoader.java:306)位于com.google.cn上的com.kuchnaya.maths.client.HtmlPlayer $ 6.onValueChange(HtmlPlayer.java:360)的java.lang.ClassLoader.loadClass(ClassLoader.java:247). event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)位于com.google.gwt.event.shared的com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1). com.google.web.bindery.event.shampleEventBus.doFire(SimpleEventBus.doFire(SimpleEventBus.java:193)中的gwtEvent.dispatch(GwtEvent.java:1)位于com.google.web.bindery.event.shared.SimpleEventBus.fireEvent( SimpleEventBus.java:88)com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:76)在com.google.gwt.event.logical.shared .ValueChangeEvent.fire(ValueChangeEvent.java:43)位于com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:83)的com.google.gwt.user.client.History.fireCurrentHistoryState(历史记录) .java:121)com.kuchnaya.maths.client.HtmlPlayer.onModuleLoad(HtmlPlayer.java:260)位于com.google.gwt.core的org.gwtmultipage.client.EntryPointFactoryImpl $ 16.onSuccess(EntryPointFactoryImpl.java:284)位于org.gwtmultipage.client.EntryPointFactoryImpl.launchEntryPoint的com.google.gwt.core.client.GWT.runAsync(GWT.java:256)上的.client.GWT.runAsyncWithoutCodeSplitting(GWT.java:312)(EntryPointFactoryImpl.java:278 )org.gwtmultipage.client.EntryPointFactoryImpl.onModuleLoad(EntryPointFactoryImpl.java:93)at org.gwtmultipage.client.EntrypointDispatcher.onModuleLoad(EntrypointDispatcher.java:30)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun. sun.reflect.DelegatingMethodAccessorImpl.invoke(D)中的reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)elegatingMethodAccessorImpl.java:25)在java.lang.reflect.Method.invoke(Method.java:597)的com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)com.google.gwt .dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)位于com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)的com.google.gwt.dev.shell.BrowserChannelServer.run (BrowserChannelServer.java:352)在java.lang.Thread.run(Thread.java:662)

Ril*_*ark 12

你必须添加

<inherits name="com.google.web.bindery.autobean.AutoBean" />
Run Code Online (Sandbox Code Playgroud)

到您的module.gwt.xml文件,以指示编译器包含AutoBean文件.