Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2011
    Location
    Decatur
    Posts
    4

    Exclamation <URGENT> GWT application problem how to solve

    The dev environment I have at the moment requires me to run webserver(tomcat) and lightstreamer on the same box. I am in the process of writing a GWT application which gets realtime updates via Lightstreamer.

    After going thru suggestions on many threads here my hosts.txt is as follows

    10.12.166.65 mysite.com
    10.12.166.65 web.mysite.com
    10.12.166.65 lightstreamer.mysite.com

    My machine ip address in 10.12.166.65 and in MyComputer-->properties the computer name is XYZ123456.rl.yourcompany.com and domain is rl.yourcompany.com

    The lsconfig.properties file is as follows :

    domain=mysite.com
    host=web.mysite.com
    port=8082
    ..............
    ....

    I access my GWT application in firefox 4 & internet explorer 8 using the url http://mysite.com:8080/MyTest

    In the lightstreamer console the following is displayed :

    01.Apr.11 12:51:13,086 < INFO> Serving request: /lightstreamer/control.js --> LS
    _session=S8af91f62e8f22201T5112836&LS_table=0&LS_w in_phase=7&LS_op=add&LS_req_ph
    ase=374&LS_mode=RAW&LS_id=mode&LS_schema=count&LS_ unique=1& from 127.0.0.1:1247
    01.Apr.11 12:51:13,086 < INFO> Controlling session: S8af91f62e8f22201T5112836 fr
    om 127.0.0.1:1247

    But both Internet Explorer and Firefox status bars don't the usual connected message.

    The callback onMessage does not fire in Internet Explorer. But in Firefox the onMessage method in the client side gets fired , the first line in the onMessage method is an Window.alert which causes the following error

    The page at http://mysite.com:9090 says
    Error:Permission denied for <http://mysite.com:9090> to call method Window.alert

    Is there a way i can run lightstreamer and webserver on the same box and get things to work?

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi,
    your setup looks correct, actually it is correct because if you see the control.js request on the server that means that a session was actually established.
    [please note that the host field in the lsconfig.properties file of our GWT demo should point to the Lightstreamer server host; as in your case both hosts point to the same server this does not make any difference, but I suggest you to fix this]

    But both Internet Explorer and Firefox status bars don't the usual connected message.
    Actually the status bar of a browser can be modified only under certain circumnstances and it is automatically modified by the library only if no onStatusChange is defined on the javascript code.
    If you're starting from our demo code then the status bar is not modified but a status indicator is shown by the demo code in the top-left corner of the page (see http://app.lightstreamer.com/GWT_StockListDemo_Basic/ )

    I access my GWT application in firefox 4 & internet explorer 8 using the url http://mysite.com:8080/MyTest
    as per the notes on the setDomain call you should access your page as http://web.mysite.com:8080/MyTest


    Error:Permission denied for <http://mysite.com:9090> to call method Window.alert
    what's the onMessage callback? It seems to me that is not from our demo so that I'm not sure what you're referring about.
    Anyway, were you able to run our GWT demo as is?

  3. #3
    Member
    Join Date
    Apr 2011
    Location
    Decatur
    Posts
    4

    Unhappy No luck yet..

    Hi Mone,
    Thanks for the quick response. I made all the suggested changes and was not able to still get my code to run.

    So I decided to try the GWTDemo you had pointed me to and it runs fine from your hosted environment(http://app.lightstreamer.com/GWT_StockListDemo_Basic/).

    I then tried to download and run it locally in my workstation..my hosts file remained the same as before and lsconfig.properties was changed accordingly..

    But this time I was unable to establish even a session to Light streamer(there is nothing in the console) all that i get is a error in Internet Explorer

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Mon, 4 Apr 2011 19:35:27 UTC


    Message: Object expected
    Line: 237
    Char: 41
    Code: 0
    URI: http://localhost:9090/StockListDemo/...EC998.cache.js

    And in Firefox the same error.. but i was able to see the line which causes the problem..if its of any help to you..

    function Xj(a){if(a.j){throw new tk(et)}a.j=new $wnd.PushPage;a.o!=null&&Qj(a);Pj(a)}

  4. #4
    Member
    Join Date
    Apr 2011
    Location
    Decatur
    Posts
    4

    Smile The Demo app now works..

    Not to sure what I did.. but the demo stock list app now runs on my workstation.. sorry about the last post. I will now need to investigate why my app did not run.. will post again if I discover something..

  5. #5
    Member
    Join Date
    Apr 2011
    Location
    Decatur
    Posts
    4

    Smile Found the solution

    I noticed the difference between the .gwt.xml file in the Demo GWT Stock application and my app , I was missing the <add-linker name="xs" /> entry. Added this entry and it works fine.

    Thanks Mone for the help.

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    I'm glad you solved

 

 

Similar Threads

  1. <URGENT> GWT application problem how to solve
    By karthikjai in forum Client APIs
    Replies: 0
    Last Post: April 1st, 2011, 04:22 PM
  2. Launch LS application.
    By karthik in forum Client APIs
    Replies: 3
    Last Post: July 7th, 2010, 11:43 AM
  3. createEngine problem on ASP.NET application
    By gmotodd in forum Client APIs
    Replies: 8
    Last Post: May 4th, 2009, 01:51 PM
  4. Replies: 2
    Last Post: March 5th, 2008, 07:29 AM
  5. Standalone application
    By cvs_fif in forum Adapter APIs
    Replies: 8
    Last Post: September 25th, 2006, 03:36 PM

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 12:05 PM.