GWT-Ext - Unable to load module entry point class...

541 views
Skip to first unread message

pionas

unread,
Oct 16, 2010, 4:57:54 AM10/16/10
to Google Web Toolkit
Hi,

i've got a problem...

I try do it this: http://www.17od.com/2008/07/24/how-to-create-a-remote-paging-listview-using-gwt-ext/

I using:
- Eclipse Platform
Version: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-
TiEn9hNYgDWg1XN8ulH_JvCNGB
Build id: M20100211-1343

- SDK - GWT: 2.0.3
- ext-2.0.2
- gwtext-2.0.5

My files:
ExtText.gwt.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='exttext'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.gwtext.GwtExt' />
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<entry-point class='com.extext.client.ExtText'/>
<source path='client'/>
<source path='shared'/>
<stylesheet src="js/ext/resources/css/ext-all.css" />
<script src="js/ext/adapter/ext/ext-base.js" />
<script src="js/ext/ext-all.js" />
</module>


I add in war/js/ext:
/adapter
/resources
ext-all.js
ext-all-debug.js
ext-core.js
ext-core-debug.js

in war/WEB-INF/lib i added: gwtext.jar

In Java Build Path i added library gwtext.jar

When i run this application i see errors:
10:50:43.960 [ERROR] [exttext] Unable to load module entry point class
com.extext.client.ExtText (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.Ext
is undefined
fileName: http://127.0.0.1:8888
lineNumber: 227
stack: ()@http://127.0.0.1:8888:227
connect("http://127.0.0.1:8888/ExtText.html?
gwt.codesvr=127.0.0.1:9997","JRV.n>YqwS{(uX4x","127.0.0.1:9997","exttext","2.0")@:
0
((void 0),"exttext","http://127.0.0.1:8888/exttext/")@http://
127.0.0.1:8888/exttext/hosted.html?exttext:264
z()@http://127.0.0.1:8888/exttext/exttext.nocache.js:2
(4)@http://127.0.0.1:8888/exttext/exttext.nocache.js:9
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
179)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:
35)
at com.gwtext.client.widgets.Component.checkExtVer(Component.java)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:
108)
at com.extext.client.ExtText.onModuleLoad(ExtText.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Unknown Source)

Please help me.

Thanks for answer

pionas

unread,
Oct 18, 2010, 2:39:09 AM10/18/10
to Google Web Toolkit
Can help anyone?

Sorinel C

unread,
Oct 18, 2010, 3:39:37 PM10/18/10
to Google Web Toolkit
Can you add to the header of your .html page theser lines?

<!-- Begin ExtJS library files -->
<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-
all.css" charset="utf-8"/>
<!-- End ExtJS library files -->


<!-- include the Ext Core API-->
<script language="javascript" src="js/ext/adapter/ext/ext-base.js"
charset="utf-8"></script>

<!-- include Ext -->
<script language="javascript" src="js/ext/ext-all.js"
charset="utf-8"></script>

and be sure that you have copied the GWT-Ext "resource
files" (.css, .js, adn images) under your "public" folder..


I hot this will work for you. But didn't you hear that GWT-Ext is a
dead framework (not under dev anymore)?

Here's what you can do:
- best GWT widget frameworks (to replace your old lib.)
http://ui-programming.blogspot.com/2010/01/comparation-ext-gwt-gxt-vs-gwt-ext-vs.html

- tricks fro updating the app to GWT 2.x (which you already ddi,
because you are using the gwt2.0.3)
http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

Cheers!
PS: if you like the solution, don't be shy to click on few ads, you
know, for fun - thx!




Reply all
Reply to author
Forward
0 new messages