shindig-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vyacheslav Muhtarjants <slava.muhtarja...@ruswizards.com>
Subject Re: Gadgets iFrame page under proxy
Date Mon, 29 Jul 2013 10:59:34 GMT
Hi, Henry.

I think I am getting a little advancement with this.

On requesting a gadgets page
http://MY_SITE/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas
I
get a blank page with several jasvascript errors 'Uncaught ReferenceError:
gadgets is not defined '. However, the source code of the page contains
rendered contents of the gadgets, which is hidden (display: none) though.
Nevertheless, direct access to the same page through Tomcat returns
rendered gadget but with a javascript error
'

   1. No relay set (used as window.postMessage targetOrigin), cannot send
   cross-domain message
   core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0:4<http://localhost:8080/gadgets/js/core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0>
      1. d
      core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0:4<http://localhost:8080/gadgets/js/core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0>
      2. gadgets.error
      core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0:4<http://localhost:8080/gadgets/js/core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0>
      3. call
      core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0:72<http://localhost:8080/gadgets/js/core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0>
      4. call
      core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0:103<http://localhost:8080/gadgets/js/core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0>
      5. gadgets.window.adjustHeight
      views:dynamic-height:setprefs:core!core:rpc.js?container=default&nocache=0&debug=0&c=0&v=a6aad0d2163b9a080f849c1cf6f1150b&jsload=0:12<http://localhost:8080/gadgets/js/views:dynamic-height:setprefs:core!core:rpc.js?container=default&nocache=0&debug=0&c=0&v=a6aad0d2163b9a080f849c1cf6f1150b&jsload=0>
      6. adjust_height
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:114<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      7. load_gui
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:1865<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      8. display_todos
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:1564<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      9. fill_todos_from_prefs
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:191<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      10. load_todos
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:155<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      11. init
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:106<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      12. deploy
      todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js:1979<http://localhost:8080/gadgets/proxy/todo_14.js?container=default&refresh=3600&url=http%3A%2F%2Fwww.labpixies.com%2Fcampaigns%2Ftodo%2Ftodo_14.js>
      13. deploy_todo_canvas
      ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas:664<http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas>
      14. initCanvas
      ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas:547<http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas>
      15. (anonymous function)
      ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas:546<http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=canvas>
      16. gadgets.util.runOnLoadHandlers
      core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0:10<http://localhost:8080/gadgets/js/core:rpc.js?container=default&nocache=0&debug=0&c=0&v=d75e2a8d81187de1e5623d9482587f25&jsload=0>
      17. (anonymous function)

'

I suppose I need to make some necessary changes in the Shindig's
configuration to allow trust connection between Tomcat's domain
localhost:8080 and MY_SITE. What do you think about it and which changes I
should make?


2013/7/25 Henry Saputra <henry.saputra@gmail.com>

> Hi,
>
> I am sorry for the late reply.
>
> I am not too familiar with BonCode connector but if it makes your website
> as proxy to connect to Tomcat then calling
> "http://MY_SITE<
> http://my_site/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=homeas
> >"
> should hit the Tomcat server and route the request to ROOT web application
> which is the Shindig.
>
> The /gadgets is actually "servlet mapping" path which is like virtual path
> where the request to that path will be handled Java servlet class.
> In this case /gadgets should be handler by GadgetRenderingServlet class.
>
> When you said "cannot load gadget" what happen when you make request to
>
> http://MY_SITE/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=ho
> <
> http://my_site/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=homeas
> >
> me?
>
> Is there anything in the BonCode log or Tomcat <TOMCAT ROOT>/log directory?
>
> Once we resolve this issue, we could move on to actually incorporate
> OpenSocial container that will manage gadget rendering in your page.
>
> - Henry
>
>
>
>
>
>
> On Tue, Jul 23, 2013 at 5:44 AM, Vyacheslav Muhtarjants <
> slava.muhtarjants@ruswizards.com> wrote:
>
> > Hello.
> >
> > I am an ASP.NET developer who has been involved in integration of Java
> > Shindig with ASP.NET web site. Following this
> > video<http://www.youtube.com/watch?v=yVKiNAkhav8> I
> > installed Tomcat and Shindig to my Windows server, checked the iFrame
> > gadgets page
> >
> >
> http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=homeand
> > ensured that it worked under Tomcat. Then I connected a separate IIS
> > web site and Shindig on Tomcat via BonCode connector that forwards
> > requests, coming to MY_SITE, to Shindig on Tomcat. So I have created a
> > proxy.
> >
> > But I have a trouble that I cannot load any gadget through
> >
> >
> http://MY_SITE/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml&view=homeas
> > I suppose gadgets/ifr is a virtual path.
> >
> > I would be very appreciated if somebody could hint me what I am doing
> wrong
> > and what I should configure? Which side should it be: IIS or Tomcat?
> >
> > --
> >
> > Slava Muhtarjants
> >
> > ASP.NET/C# <http://asp.net/C> Developer
> > RUS Wizards LLC
> >
> > Skype: slava.muhtarjants
> >
>



-- 

Slava Muhtarjants

ASP.NET/C# <http://asp.net/C> Developer
RUS Wizards LLC

Skype: slava.muhtarjants

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message