Hi Chirs,
I wrote that as a bug because in samplecontiner.html contains the code
var socialDataPath = document.location.protocol + "//" +
document.location.host
+ "/social/data/samplecontainer/";
so it will try to find '/social/data/' and throws error
that's why had have that change in URL mapping.
- Ram
On Fri, Jun 6, 2008 at 3:04 PM, Ram Sharma <[EMAIL PROTECTED]> wrote:
> Hi Chris,
>
> That might be the case, But if don't change the mapping then sample
> container doesn't work like Xin has asked. Wha to do in that case.
>
>
> On Fri, Jun 6, 2008 at 2:14 PM, Chris Chabot <[EMAIL PROTECTED]> wrote:
>
>> Hey Ram,
>>
>> Just to prevent potential confusion... thats not a bug.
>>
>> The PHP version of shindig still uses the original JSON based wire format
>> which lives under /social/data. We are working on making the RESTful
>> interface too, and once that's done that will live under /social/rest.
>>
>> However just changing the URL mapping of the JSON wire format handler,
>> doesn't make it into a restful interface it will only break everything :-)
>>
>> -- Chris
>>
>>
>> On Jun 6, 2008, at 8:27 AM, Ram Sharma wrote:
>>
>> Hi,
>>> There is a bug left in recent releases. Index.php has some definitions
>>> for
>>> the incoming server requests.
>>> the code which is there
>>>
>>> $servletMap = array(
>>> Config::get('web_prefix') . '/gadgets/files' => 'FilesServlet',
>>> Config::get('web_prefix') . '/gadgets/js' => 'JsServlet',
>>> Config::get('web_prefix') . '/gadgets/proxy' => 'ProxyServlet',
>>> Config::get('web_prefix') . '/gadgets/ifr' =>
>>> 'GadgetRenderingServlet',
>>> Config::get('web_prefix') . '/gadgets/metadata' => 'JsonRpcServlet',
>>> Config::get('web_prefix') . '/social/data' => 'GadgetDataServlet',
>>> Config::get('web_prefix') . '/public.crt' => 'CertServlet'
>>> );
>>>
>>> you will have to change
>>>
>>> Config::get('web_prefix') . '/social/data' => 'GadgetDataServlet',
>>> to
>>> Config::get('web_prefix') . '/social/rest' => 'GadgetDataServlet',
>>>
>>> I think it will work for you.
>>>
>>> - Ram Sharma
>>> Impetus Infotech India Pvt Ltd
>>>
>>>
>>> On Fri, Jun 6, 2008 at 12:07 AM, xin zhang <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>>
>>>> When I run the open social sample container
>>>>
>>>> hhttp://localhost/shindig/php/gadgets/files/samplecontainer/samplecontainer.html,
>>>> I got "The request to the server caused an error" caused by
>>>> POST http://localhost/shindig/php/social/rest/samplecontainer/setstate
>>>> 404
>>>>
>>>> It is ok if start java shindig server with mvn -Prun.
>>>>
>>>> Can anyone help me this?
>>>> Thanks
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Ram Sharma
>>> Software Engineer
>>> Impetus Infotech (India) Pvt Ltd
>>> Indore
>>>
>>
>>
>
>
> --
> Ram Sharma
> Software Engineer
> Impetus Infotech (India) Pvt Ltd
> Indore
>
--
Ram Sharma
Software Engineer
Impetus Infotech (India) Pvt Ltd
Indore