You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@shindig.apache.org by Wenjun Che <we...@openf.in> on 2011/01/12 21:40:57 UTC

Need some beginner help with java version 2.0

Hi

I have been testing with a couple of gadgets (JSON and FEED).  Everything
works fine on my localhost.  But after I deployed it on a remote server, I
keep getting Gadget is not defined error in javascript console.  I noticed
the HTML source file has 'src="
http://localhost:8080/gadgets/js/core:rpc.js...'.  How can I make it to use
the correct remote host and port number?

I am running the downloaded war file as it is.

Thanks in advance

Re: Need some beginner help with java version 2.0

Posted by Sean Kane <se...@gmail.com>.
Unzip the war file and set the shindig.host and shindig.port (parts of system.properties) in the web.xml.

<context-param>
  	<param-name>system.properties</param-name>
     <param-value>
    	shindig.host=yoursitehere.com
    	
    	aKey=/shindig/gadgets/proxy?container=default&amp;url=
    	shindig.port=8888
    	
     </param-value>
  </context-param>  

On Jan 12, 2011, at 3:40 PM, Wenjun Che wrote:

> Hi
> 
> I have been testing with a couple of gadgets (JSON and FEED).  Everything
> works fine on my localhost.  But after I deployed it on a remote server, I
> keep getting Gadget is not defined error in javascript console.  I noticed
> the HTML source file has 'src="
> http://localhost:8080/gadgets/js/core:rpc.js...'.  How can I make it to use
> the correct remote host and port number?
> 
> I am running the downloaded war file as it is.
> 
> Thanks in advance