1. #1
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    Habhoub is on a distinguished road

      0  

    Question 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

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    you need to add gxt.jar - not the war file.

  3. #3
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    Habhoub is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    you need to add gxt.jar - not the war file.
    Thanks a lot for your reply.
    That's what i've done, i added gwt.jar in both Java Build Path and launch configuration.

  4. #4
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    Habhoub is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    you need to add gxt.jar - not the war file.
    Thanks a lot for your reply.
    That's what i've done, i added gwt.jar in both Java Build Path and launch configuration as indicated in steup.txt file included in the downloaded distribution.

    Any idea ?

  5. #5
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Habhoub View Post
    i added gwt.jar in both Java Build Path and launch configuration
    No! you need to add GXT.JAR not gwt.jar... (though you do need GWT user libs).... as we could be getting confused, best provide more info as its hard to tell if you are doing the right thing or not.

  6. #6
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    Habhoub is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    No! you need to add GXT.JAR not gwt.jar... (though you do need GWT user libs).... as we could be getting confused, best provide more info as its hard to tell if you are doing the right thing or not.
    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.

  7. #7
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    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.

  8. #8
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    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
    Code:
    <inherits name='com.extjs.gxt.ui.GXT'/>
    instead of
    Code:
    <inherits name='com.extjs.gxt.GXT'/>

  9. #9
    Ext User
    Join Date
    Aug 2007
    Location
    Melbourne, Australia
    Posts
    37
    Vote Rating
    0
    nicrox is on a distinguished road

      0  

    Default


    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.

  10. #10
    Ext User
    Join Date
    May 2009
    Posts
    2
    Vote Rating
    0
    ramanav is on a distinguished road

      0  

    Default 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