2012-04-26 82 views
0

尝试使用智能GWT无法使用智能GWT

使用从链接dowloded智能GWT 2.5以下

smartgwt 2.5

火狐6.0

我做了一个小的Web应用程序项目(没有智能GWT)工作正常。

现在在*同一个项目我添加SmartGWT的2.5myprojet.gwt.xml文件添加<inherits name="com.smartgwt.SmartGwt"/>

但现在,当我运行这个项目它给了我以下错误:

[ERROR] [myprojet] - Unable to load module entry point class 
com.smartgwt.client.SmartGwtEntryPoint (see associated exception for details) 

com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc is undefined 
at com.google.gwt.dev.shell.BrowserChannelServer.invo keJavascript(BrowserChannelServer.java:248) 
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:136) 
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) 
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeV oid(ModuleSpace.java:289) 
at com.google.gwt.dev.shell.JavaScriptHost.invokeNati veVoid(JavaScriptHost.java:107) 
at com.smartgwt.client.SmartGwtEntryPoint.init(SmartG wtEntryPoint.java) 
at com.smartgwt.client.SmartGwtEntryPoint.onModuleLoa d(SmartGwtEntryPoint.java:239) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at com.google.gwt.dev.shell.ModuleSpace.onLoad(Module Space.java:396) 
at com.google.gwt.dev.shell.OophmSessionHandler.loadM odule(OophmSessionHandler.java:200) 
at com.google.gwt.dev.shell.BrowserChannelServer.proc essConnection(BrowserChannelServer.java:525) 
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) 
at java.lang.Thread.run(Thread.java:662) 

当我删除<inherits name="com.smartgwt.SmartGwt"/>myprojet.gwt.xml file项目工作正常


XML

<inherits name='com.google.gwt.user.User' /> 


<inherits name='com.google.gwt.user.theme.clean.Clean' /> 

<!-- Other module inherits --> 

<inherits name="com.smartgwt.SmartGwt"/> 
<!-- Specify the app entry point class. --> 
<entry-point class='com.example.client.MyProjet' /> 

<!-- Specify the paths for translatable code --> 
<source path='client' /> 
<source path='shared' /> 

+0

粘贴你的'gwt.xml'文件 – 2012-04-26 10:10:41

+0

@HardikMishra plz看到编辑部分 – GameBuilder 2012-04-26 10:21:10

+1

它看起来很好。编译项目并清理brwoser缓存和try。 – 2012-04-26 10:45:18

回答

3

gwt.xml似乎是正确的。

GWT编译和清理brwoser缓存应该工作。