Shindig
  1. Shindig
  2. SHINDIG-1228

HTTP 404 Error rendering gadgets while running Shindig outside of sample container

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-BETA3
    • Fix Version/s: None
    • Component/s: Javascript
    • Labels:
      None
    • Environment:
      Windows XP
      FireFox 3.0.15
      JRE 6.0

      Description

      While running Shindig outside of the sample container, the error below was shown on the browser and the gadget content was not rendered.

      HTTP Status 404 - /ifr

      type Status report

      message /ifr

      description The requested resource (/ifr) is not available.

        Activity

        Hide
        Han Nguyen added a comment -

        We created the attached patch to fix the problem. It basically edited the gadgets.js and set the default gadget server, serverBase value to
        this.serverBase_ = 'http://' + document.location.host + '/gadgets/';

        Modified function looks like this

        gadgets.IfrGadget = function(opt_params)

        { gadgets.Gadget.call(this, opt_params); //this.serverBase_ = '../../'; // default gadget server this.serverBase_ = 'http://' + document.location.host + '/gadgets/'; }

        ;

        Show
        Han Nguyen added a comment - We created the attached patch to fix the problem. It basically edited the gadgets.js and set the default gadget server, serverBase value to this.serverBase_ = 'http://' + document.location.host + '/gadgets/'; Modified function looks like this gadgets.IfrGadget = function(opt_params) { gadgets.Gadget.call(this, opt_params); //this.serverBase_ = '../../'; // default gadget server this.serverBase_ = 'http://' + document.location.host + '/gadgets/'; } ;
        Hide
        Han Nguyen added a comment -

        The patch may be applied to Beta 4, and the trunk as well since the error persisted in these branches.

        Show
        Han Nguyen added a comment - The patch may be applied to Beta 4, and the trunk as well since the error persisted in these branches.
        Hide
        Harish Seshadri added a comment -

        Han,

        I downloaded shindig-server-2.0.0.war. I ran the following the installation instructions

        Unzip the distribution archive to the directory you wish to install Apache Shindig.
        Install Apache Shindig in your Servlet container or in your Web server depending the wanted implementations. Have a glance to your server documentation before processing. For instance, you could do:
        Java version: copy the Apache Shindig WAR file to $TOMCAT_HOME/webapps for Tomcat.
        PHP version: copy shindig-php into /var/www/html/shindig for Apache.
        Open in you browser for instance http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml

        I get a 404

        HTTP Status 404 - /gadgets/ifr
        type Status report
        message /gadgets/ifr
        description The requested resource (/gadgets/ifr) is not available.
        Apache Tomcat/6.0.29

        I tried applying the patch, but the file gadjets.js does not exist.
        Any ideas?

        Thanks.

        Show
        Harish Seshadri added a comment - Han, I downloaded shindig-server-2.0.0.war. I ran the following the installation instructions Unzip the distribution archive to the directory you wish to install Apache Shindig. Install Apache Shindig in your Servlet container or in your Web server depending the wanted implementations. Have a glance to your server documentation before processing. For instance, you could do: Java version: copy the Apache Shindig WAR file to $TOMCAT_HOME/webapps for Tomcat. PHP version: copy shindig-php into /var/www/html/shindig for Apache. Open in you browser for instance http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml I get a 404 HTTP Status 404 - /gadgets/ifr type Status report message /gadgets/ifr description The requested resource (/gadgets/ifr) is not available. Apache Tomcat/6.0.29 I tried applying the patch, but the file gadjets.js does not exist. Any ideas? Thanks.

          People

          • Assignee:
            Unassigned
            Reporter:
            Han Nguyen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development