-
6 May 2008 4:27 AM #1
Cannot integrate Ext Gwt in an existing project
Cannot integrate Ext Gwt in an existing project
Hello,
I have an existing project written in GWT 1.4, i want to try some Ext GWT components within it.
I downloaded Ext GWT 1.0 and i followed stup instructions included in the downloaded distribution.
When i try to build the project's war (with GWT 1.5m2 and jdk 1.5), i get the following error :
Loading module 'isd.bcp.carthago.carthago'
[java] Loading inherited module 'com.extjs.gxt.GXT'
[java] [ERROR] Unable to find 'com/extjs/gxt/GXT.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Could you please help me,
Thanks,
Habhoub
-
6 May 2008 4:40 AM #2
you need to add gxt.jar - not the war file.
-
6 May 2008 4:44 AM #3
-
6 May 2008 4:46 AM #4
-
6 May 2008 5:04 AM #5
-
6 May 2008 5:20 AM #6
Sorry it was a writing mistake, i wanted to say that i added gxt.jar and not gwt.jar.
I have an existing project and i wanted to start trying some Ext Gwt components on it, so first i tried to setup Ext Gwt on it before using any components i wanted to include Ext Gwt library and compile my project.
I followed exactlt the instructions included in setup.txt :
1- add <inherits name='com.extjs.gxt.GXT'/> to my project module xml file
2- Add the following stylesheets to my host page ...
3- Add gxt.jar to project build path
4- Add gxt.jar to project launch configuration
When i try to run my build the project's war file i get the following error :
[echo] Compile GWT sources
[java] Loading module 'isd.bcp.carthago.carthago'
[java] Loading inherited module 'com.extjs.gxt.ui.GXT'
[java] [ERROR] Unable to find 'com/extjs/gxt/ui/GXT.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[java] [ERROR] Line 3: Unexpected exception while processing element 'inherits'
[java] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
Note that i'm using Eclipse 3.2.
-
6 May 2008 1:11 PM #7
ok, so what is doing the WAR build ? and ant file? if so check that to ensure it has the gxt.jar file included in the classpath.
The answer is being told to you - something is compiling and the GXT classes cannot be found in the classpath.
-
7 May 2008 7:09 AM #8
I think you've downloaded Ext GWT 1.0 beta 1. There is a typo in the setup.txt. This has benn fixed in beta 2 --> actually, you have to
instead ofCode:<inherits name='com.extjs.gxt.ui.GXT'/>
Code:<inherits name='com.extjs.gxt.GXT'/>
-
8 May 2008 7:31 PM #9
Yes, there's a typo in beta one setup file. I took me a while to figure that out.
I recommend if you have jre1.5 installed on your system, download gxt beta 2 and it works a breeze.
-
20 May 2009 1:45 AM #10
how to use ext gwt Grid samples in my application
how to use ext gwt Grid samples in my application
Hi
I want to use the Grid Example provided by Ext Gwt examples in my application; how to use it;
I have created a sample gwt web application and write code like this
.........
public void onModuleLoad() {
GridExample container = new GridExample();
container.setSize(300, 300);
container.setBorders(true);
RootPanel.get().add(container);
}
and i have inherited the resouces application (Grid example is using the resounces) in my xml configeration file as fallows
<inherits name='com.extjs.gxt.samples.resources.Resources' />
I have created an eclipse project from the source code of GWT; it contains all the samples including that Grid sample
and i have added this GWT source project in my application to use those GRID sample;
but it is not giving any compile errors
but it giving errors like this
Unable to find 'com/extjs/gxt/samples/resources/Resources.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
I think the path is incorrect; how to set this one;
How to use any of those samples in my application
can any one help on this?
...........
thank you
ramana


Reply With Quote