Results 1 to 10 of 10

Thread: Gwt demo

Hybrid View

  1. #1
    Member
    Join Date
    Jul 2013
    Location
    Havana
    Posts
    6

    Hello giuseppe

    No i have not change the name of the java class and yes the reference to the compiled module js is correct!I also came to conclusion that it is not being connected to the server but don't know why.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi ylcoca,

    I can confirm that from your description we can conclude that the demo stops before contacting the Lightstreamer server. The issue is with the servlet container that fails to execute the GWT code.

    To understand why we should proceed with further investigation:
    - Could you confirm that your servlet container runs under Eclipse?
    - "GWT Compile project" completes successfuly?
    - Which version of the Google plugin is in use?
    - Could you report the contents of the browser console?

    Thank you,
    Giuseppe

  3. #3
    Member
    Join Date
    Jul 2013
    Location
    Havana
    Posts
    6
    Hi giuseppe
    here are some things that i hope can help
    Name:  browser_console.jpg
Views: 1706
Size:  44.1 KB
    Compilation result:

    Compiling module gwtdemo.GWT_StockListDemo_Basic
    Validating newly compiled units
    Ignored 71 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    Computing all possible rebind results for 'com.google.gwt.user.client.UserAgentAsserter'
    Rebinding com.google.gwt.user.client.UserAgentAsserter
    Checking rule <generate-with class='com.google.gwt.editor.rebind.SimpleBeanEdit orDriverGenerator'/>
    [WARN] Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriv er'. Are validation-api-<version>.jar and validation-api-<version>-sources.jar on the classpath?
    Specify -logLevel DEBUG to see all errors.
    [WARN] Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriv er' specified in deferred binding rule
    Compiling 6 permutations
    Compiling permutation 0...
    Compiling permutation 1...
    Compiling permutation 2...
    Compiling permutation 3...
    Compiling permutation 4...
    Compiling permutation 5...
    Compile of permutations succeeded
    Linking into D:\GWT_StockListDemo\war\gwt_stocklistdemo_basic
    Link succeeded
    Compilation succeeded -- 25.428s
    Compiling module gwtdemo.GWT_StockListDemo_Basic
    Validating newly compiled units
    Ignored 71 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    Compiling 6 permutations
    Compiling permutation 0...
    Compiling permutation 1...
    Compiling permutation 2...
    Compiling permutation 3...
    Compiling permutation 4...
    Compiling permutation 5...
    Compile of permutations succeeded
    Linking into D:\GWT_StockListDemo\war\gwt_stocklistdemo_basic
    Link succeeded
    Compilation succeeded -- 7.051s

    Name:  version_google.jpg
Views: 1454
Size:  46.5 KB
    Although there is some doubts i have how do i know the lightstremer server for this demo is running ,I think probably I'm not properly starting the server or not setting up things properly to conectem alltogether

  4. #4
    Member
    Join Date
    Jul 2013
    Location
    Havana
    Posts
    6
    Hi giuseppe

    Got it to work , I’ll make a quick chronology of what I did from scratch
    I downloaded the Lightstreamer_Moderato_5_1_1_Colosseo_20130305 and I tried first the demo that ask for this :
    get the lib from here:
    <Lightstreamer HOME>\DOCS-SDKs\sdk_client_javascript\alternative_libs\
    and copy the file named lightstreamer_globals.js into the war/lightstreamer
    but never got it to work don’t know why
    then I tried the one that says
    extract the files included in the
    Lightstreamer/DOCS-SDKs/sdk_client_html/lib folder and copy them into the
    war/lightstreamer folder of this project.
    But the Moderatto I had downloaded didnt had the sdk_client_html folder which have some very important js files that are the ones that makes the connection to the server that was why I couldn’t connect to the server ,I finally downloaded that folder and added the files ,started the lightstreamer server ,and voila and it worked!

    Thanks for the help and quick response

  5. #5
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi ylcoca,

    I am pleased that now the demo works.
    I confirm you that the two versions of GWT Stock-List demo refer to two different client libraries for Lightstreamer: one is for the brand new Lightstreamer JavaScript Client API 6.0 supported only by Lightstreamer server 5.0 or newer, the other is for Lightstreamer HTML Client API 5.0 that can run both on Lightstreamer server 4.x or 5.x.
    Since the 4.x server will soon no longer supported it is important that you're running a 5.x version of Lightstreamer server, preferably the latest version 5.1.1.

    However, it is a great pity that you were not able to run the demo with the new JavaScript library for Lightstreamer.
    I just have a doubt about why it not work, when you copied the file lightstreamer_globals.js you should synchronize the name with that referred in GWT_StockListDemo_Basic.html in this row:

    <script src="lightstreamer/lightstreamer.js"></script>

    Anyway, thank you for the feedback.

  6. #6
    Member
    Join Date
    Jul 2013
    Location
    Havana
    Posts
    6
    Hi giuseppe ,
    That was exactly it I changed the reference of the js file from

    <script src="lightstreamer/lightstreamer.js"></script>
    to
    <script src="lightstreamer/lightstreamer_globals.js"></script>
    and that was it
    Thanks a lot

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:15 AM.