You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by xin zhang <xi...@yahoo.com> on 2008/06/02 17:17:53 UTC
Failed to initialize OAuth
Hi
I checkout the latest shindig code from the its Subversion repository, I got the following error no matter I start it in jetty server or install the war file to tomcat.
WARNING: Failed to initialize OAuth
org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 404
at org.apache.shindig.gadgets.BasicGadgetSpecFactory.getGadgetSpec(BasicGadgetSpecFactory.java:81)
at org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.storeProviderInfos(BasicGadgetOAuthTokenStore.java:73)
at org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.initFromConfigFile(BasicGadgetOAuthTokenStore.java:57)
at org.apache.shindig.gadgets.oauth.OAuthFetcherFactory.<init>(OAuthFetcherFactory.java:60)
at org.apache.shindig.gadgets.oauth.OAuthFetcherFactory$$FastClassByGuice$$93352e00.newInstance(<generated>)
at com.google.inject.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
at com.google.inject.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:67)
How to fix the problem?
Thanks
Re: Failed to initialize OAuth
Posted by Dirk Balfanz <di...@gmail.com>.
Hrm. Maybe it's time to attach a debugger or fire up a network sniffer
to see who's handing you that 404?
Dirk.
On Mon, Jun 2, 2008 at 10:52 AM, xin zhang <xi...@yahoo.com> wrote:
> Thanks Dirk.
>
> That seems ok. I run curl http://localhost:8080/gadgets/files/samplecontainer/examples/oauth.xml and it returns the xml file.
>
> --- On Mon, 6/2/08, Dirk Balfanz <di...@gmail.com> wrote:
> From: Dirk Balfanz <di...@gmail.com>
> Subject: Re: Failed to initialize OAuth
> To: shindig-dev@incubator.apache.org, xin_fun@yahoo.com
> Date: Monday, June 2, 2008, 12:07 PM
>
> Looks to me like it can't fetch one of the gadgets listed in
> config/oauth.json. From where you're running jetty, can you curl the
> gadgets listed in oauth.json?
>
> Dirk.
>
> On Mon, Jun 2, 2008 at 8:17 AM, xin zhang <xi...@yahoo.com> wrote:
>> Hi
>>
>> I checkout the latest shindig code from the its Subversion repository, I
> got the following error no matter I start it in jetty server or install the war
> file to tomcat.
>>
>> WARNING: Failed to initialize OAuth
>> org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml.
> HTTP error 404
>> at
> org.apache.shindig.gadgets.BasicGadgetSpecFactory.getGadgetSpec(BasicGadgetSpecFactory.java:81)
>> at
> org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.storeProviderInfos(BasicGadgetOAuthTokenStore.java:73)
>> at
> org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.initFromConfigFile(BasicGadgetOAuthTokenStore.java:57)
>> at
> org.apache.shindig.gadgets.oauth.OAuthFetcherFactory.<init>(OAuthFetcherFactory.java:60)
>> at
> org.apache.shindig.gadgets.oauth.OAuthFetcherFactory$$FastClassByGuice$$93352e00.newInstance(<generated>)
>> at
> com.google.inject.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
>> at
> com.google.inject.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:67)
>>
>> How to fix the problem?
>>
>> Thanks
>>
>>
>>
>>
>>
>
>
>
Re: Failed to initialize OAuth
Posted by xin zhang <xi...@yahoo.com>.
Thanks Dirk.
That seems ok. I run curl http://localhost:8080/gadgets/files/samplecontainer/examples/oauth.xml and it returns the xml file.
--- On Mon, 6/2/08, Dirk Balfanz <dirk.balfanz@gmail.com> wrote:
From: Dirk Balfanz <dirk.balfanz@gmail.com>
Subject: Re: Failed to initialize OAuth
To: shindig-dev@incubator.apache.org, xin_fun@yahoo.com
Date: Monday, June 2, 2008, 12:07 PM
Looks to me like it can't fetch one of the gadgets listed in
config/oauth.json. From where you're running jetty, can you curl the
gadgets listed in oauth.json?
Dirk.
On Mon, Jun 2, 2008 at 8:17 AM, xin zhang <xin_fun@yahoo.com> wrote:
> Hi
>
> I checkout the latest shindig code from the its Subversion repository, I
got the following error no matter I start it in jetty server or install the war
file to tomcat.
>
> WARNING: Failed to initialize OAuth
> org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml.
HTTP error 404
> at
org.apache.shindig.gadgets.BasicGadgetSpecFactory.getGadgetSpec(BasicGadgetSpecFactory.java:81)
> at
org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.storeProviderInfos(BasicGadgetOAuthTokenStore.java:73)
> at
org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.initFromConfigFile(BasicGadgetOAuthTokenStore.java:57)
> at
org.apache.shindig.gadgets.oauth.OAuthFetcherFactory.<init>(OAuthFetcherFactory.java:60)
> at
org.apache.shindig.gadgets.oauth.OAuthFetcherFactory$$FastClassByGuice$$93352e00.newInstance(<generated>)
> at
com.google.inject.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
> at
com.google.inject.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:67)
>
> How to fix the problem?
>
> Thanks
>
>
>
>
>
Re: Failed to initialize OAuth
Posted by Dirk Balfanz <di...@gmail.com>.
Looks to me like it can't fetch one of the gadgets listed in
config/oauth.json. From where you're running jetty, can you curl the
gadgets listed in oauth.json?
Dirk.
On Mon, Jun 2, 2008 at 8:17 AM, xin zhang <xi...@yahoo.com> wrote:
> Hi
>
> I checkout the latest shindig code from the its Subversion repository, I got the following error no matter I start it in jetty server or install the war file to tomcat.
>
> WARNING: Failed to initialize OAuth
> org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 404
> at org.apache.shindig.gadgets.BasicGadgetSpecFactory.getGadgetSpec(BasicGadgetSpecFactory.java:81)
> at org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.storeProviderInfos(BasicGadgetOAuthTokenStore.java:73)
> at org.apache.shindig.gadgets.oauth.BasicGadgetOAuthTokenStore.initFromConfigFile(BasicGadgetOAuthTokenStore.java:57)
> at org.apache.shindig.gadgets.oauth.OAuthFetcherFactory.<init>(OAuthFetcherFactory.java:60)
> at org.apache.shindig.gadgets.oauth.OAuthFetcherFactory$$FastClassByGuice$$93352e00.newInstance(<generated>)
> at com.google.inject.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
> at com.google.inject.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:67)
>
> How to fix the problem?
>
> Thanks
>
>
>
>
>