I successfully got the Lightstreamer demos working on linux using my apache webserver in a static www directory. As soon as I attempt to run LS from my own application framework it fails to load as I get a "WAITING FOR ENGINE..." message. It appears to load the lscommons.js & lspushpage.js files fine, but the lsengine.html file is never loaded (I am logging with a proxy monitor). Altough I have set the 'path' in the createEngine() method this does not appear to help.

Here is the setup of my static www directory (non-framework integrated) that does work:

document root: /www

<script src="/lightstreamer/demos/ChatDemo/ls/lscommons.js" type="text/javascript"></script>
<script src="/lightstreamer/demos/ChatDemo/ls/lspushpage.js" type="text/javascript"></script>

...

pushPage.context.setDomain('foobar.com');
lsEngine.connection.setLSHost('ls.foobar.com');
lsEngine.connection.setLSPort('7070');
pushPage.createEngine("DemoCommonEngine", "/lightstreamer/demos/ChatDemo/ls/", "SHARE_SESSION", true);


Go to: http://www.foobar.com/lightstreamer/demos/ChatDemo and everything works as expected. Now if I attempt to run the (ChatDemo) index.html file within my application framework it fails. I keep all of the settings and paths the same as I am only moving the chatdemo page, the ls directory with the js files are still in the same spot being served statically via Apache.

http://www.foobar.com/appdir/chat/index.html - fails

My understanding is that by setting the path in createEngine() to '/lightstreamer/demos/ChatDemo/ls/' it should find the js libraries needed. Any suggestions on how I can go about debugging this?

Thanks,
Jason