1. #1
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default jar + remote service

    jar + remote service


    I create the projectA and the projectB, in the projectB I put the jar of projectA... in projectA I have a remote service

    in hosted mode if a called the remote service work fine..
    but when I put the war of the projectB in tomcat dont work... someone hava any idea?

    thanks

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

      0  

    Default


    this sounds like a GWT issue - can you expand/explain a little more

  3. #3
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    ok... I have two projects... A and B..

    in the project A I have my custom components and class..

    I create a jar of this project
    .......

    In project B I get this jar and put in the folder lib and in my App.gwt.xml I put this code
    Code:
    <inherits name="projectA.MYGXT"/>
    the components work fine to me.. except when I call the RemoteService that was in the jar.. my english is not good.. If you don't understant anything... please post a reply



    look at for this.. If I run in hosted mode.. work fine.. but if I create a war of the project B.. and put in webapp tomcat dir don't work more..

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

      0  

    Default


    you can't really embed jars with jars and just assume it will simply just work.

    a jar (and war) is really just a zip file designed to package the class files and folders together.

    you'll need to specifically explain the war file contents, how you are creating it - how you are running the hosted mode, how it is getting the classpath and source path of the jar lib file etc.

    love to help, but the details are missing.

  5. #5
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    I found the problem.. sorry..

    I will be explain.. more or less what is happen.. when I instantiate my remoteServiceImpl I get the hibernate connection.. but in the jar.. not found hibernate.cfg.xml because he was in my project.. then return a error

Thread Participants: 1