You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Brad Defnall <bd...@gmail.com> on 2008/06/02 20:53:25 UTC

jboss exception

I had shindig running in jboss just fine last week, i know there are some
URLs to be changed and voila, it worked.  I got back from google io, grabbed
the latest from svn and tried to run in jboss again, but now I get this
error:

2008-06-02 14:28:45,180 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
Allocate exception for servlet restapiServlet
com.google.inject.ConfigurationException: Error at
org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
Error while injecting at
org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
Could not find a suitable constructor in
org.apache.shindig.social.abdera.SocialRouteManager. Classes must have
either one (and only one) constructor annotated with @Inject or a
zero-argument constructor.
    at
com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
    at com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
    at
com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
    at
com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)

This doesn't look, to me, to be a jboss error though.  Does anyone know
whats going on here? I'm not sure where to go from here.

I also get serious nastiness in jetty, but I'm not sure it's the same error.

Re: jboss exception

Posted by Gonzalo Aune <go...@gmail.com>.
Solved... i was using Abdera which doesnt support jsonBatch request, missed
some emails about that, changing the /social/rest path to /social/jsonrest
fixed my problem =)

G.-

On Mon, Jun 23, 2008 at 12:54 PM, Gonzalo Aune <go...@gmail.com>
wrote:

> Yes, but my TC rans well, my only problem is with the jsonBatch request =(
>
> G.-
>
>
> On Mon, Jun 23, 2008 at 12:50 PM, Brad Defnall <bd...@gmail.com> wrote:
>
>> I know there's a large amount of hardcoded URLs peppered through the
>> source
>> code.  I had to alter a test class as well.
>>
>> On Mon, Jun 23, 2008 at 11:42 AM, Gonzalo Aune <go...@gmail.com>
>> wrote:
>>
>> > As far i can see, it has something to do with the routes of the Abdera,
>> > cause the jsonBatch isnt supported yet in the routes of Abdera, and i
>> have
>> > to configure my SocialApiProvider correctly, im i right?
>> >
>> > G.-
>> >
>> > On Mon, Jun 23, 2008 at 12:31 PM, Gonzalo Aune <go...@gmail.com>
>> > wrote:
>> >
>> > > Cassie, any solution to this?, anyone... ?
>> > >
>> > > Thanks!
>> > >
>> > > G.-
>> > >
>> > >
>> > > On Mon, Jun 23, 2008 at 12:26 PM, Brad Defnall <bd...@gmail.com>
>> > wrote:
>> > >
>> > >> I've stalled out on this honestly, I just have too much going on at
>> > work.
>> > >>
>> > >> On Mon, Jun 23, 2008 at 11:13 AM, Gonzalo Aune <
>> gonzaloaune@gmail.com>
>> > >> wrote:
>> > >>
>> > >> > I have the exact same problem and cannot fix it, did you get any
>> > >> solutions
>> > >> > to this issue?
>> > >> >
>> > >> > Regards.
>> > >> >
>> > >> > G.-
>> > >> >
>> > >> > On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com>
>> > >> wrote:
>> > >> >
>> > >> > > I changed the BASE url and I also rewrote the test class to
>> reflect
>> > my
>> > >> > > context change.  The code passes its tests, but when I deploy I
>> > still
>> > >> get
>> > >> > > these 404 errors. It must be something very simple, gadgets
>> > themselves
>> > >> > > work,
>> > >> > > just the rest api seems to be busted.
>> > >> > >
>> > >> > >  I'll take a look at that jira issue as well.
>> > >> > >
>> > >> > > On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <
>> > >> david.primmer@gmail.com>
>> > >> > > wrote:
>> > >> > >
>> > >> > > > That's it. However I'd beware of changing this right now unless
>> > >> you're
>> > >> > > > ok with rewriting or skipping the tests. they're all hardcoded
>> to
>> > >> this
>> > >> > > > context as well.
>> > >> > > >
>> > >> > > > This could use a pair of dirt-friendly hands:
>> > >> > > > https://issues.apache.org/jira/browse/SHINDIG-317
>> > >> > > > It has some background for why our test harness is hardcoded.
>> > >> However,
>> > >> > > > the server also need to be setup to dynamically pull this info
>> > from
>> > >> > > > the servlet config when it's making its routes.
>> > >> > > >
>> > >> > > > davep
>> > >> > > >
>> > >> > > > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <
>> bdefnall@gmail.com>
>> > >> > wrote:
>> > >> > > > > I was afraid of that.  Which class is it?  I don't mind
>> getting
>> > my
>> > >> > > hands
>> > >> > > > > dirty...
>> > >> > > > >
>> > >> > > > >  private static final String BASE in class SocialRouteManager
>> > >> seems
>> > >> > to
>> > >> > > > have
>> > >> > > > > something to do with this, or is it something else?
>> > >> > > > >
>> > >> > > > >
>> > >> > > > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <
>> > >> > david.primmer@gmail.com
>> > >> > > >
>> > >> > > > > wrote:
>> > >> > > > >
>> > >> > > > >> One common reason for getting this on every request is that
>> the
>> > >> > > > >> /social/rest context path is not setup right so the server
>> is
>> > >> > 404'ing
>> > >> > > > >> all requests. Unfortunately, this is hardcoded in the server
>> > and
>> > >> not
>> > >> > > > >> customizable from the servlet config at this point. there is
>> an
>> > >> open
>> > >> > > > >> jira issue for this.
>> > >> > > > >>
>> > >> > > > >> davep
>> > >> > > > >>
>> > >> > > > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <
>> > bdefnall@gmail.com
>> > >> >
>> > >> > > > wrote:
>> > >> > > > >> > Thanks! I fixed my guice module, I had forgotten to bind
>> > >> > something.
>> > >> > > > >> > However, now I get 404 errors from the application when I
>> try
>> > >> to
>> > >> > hit
>> > >> > > > any
>> > >> > > > >> > rest urls.  These aren't jboss 404 messages, but something
>> > >> coming
>> > >> > > from
>> > >> > > > >> > shindig.  The response is in xml:
>> > >> > > > >> >
>> > >> > > > >> > <?xml version='1.0' encoding='UTF8'?><error
>> > >> > > > >> > xmlns="http://incubator.apache.org/abdera
>> "><code>404</code
>> > >> > > > >> >
>> > >> > > > >> >><message>Not Found</message></error>
>> > >> > > > >> >
>> > >> > > > >> > I'll keep digging, just thought i'd post something in case
>> > >> anyone
>> > >> > > else
>> > >> > > > >> runs
>> > >> > > > >> > into this.
>> > >> > > > >> >
>> > >> > > > >> > FYI, I'm trying to use mysql to store data in this case,
>> my
>> > >> target
>> > >> > > app
>> > >> > > > >> > server is jboss, the context is /shindig
>> > >> > > > >> >
>> > >> > > > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <
>> etnu@google.com
>> > >
>> > >> > > wrote:
>> > >> > > > >> >
>> > >> > > > >> >> Are you using a custom guice module? If so, you probably
>> > need
>> > >> to
>> > >> > > add
>> > >> > > > a
>> > >> > > > >> >> binding for the route manager; see
>> > >> > > > >> >>
>> > >> > > > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
>> > >> > > > >> >>
>> > >> > > > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <
>> > >> > bdefnall@gmail.com>
>> > >> > > > >> wrote:
>> > >> > > > >> >>
>> > >> > > > >> >> > I had shindig running in jboss just fine last week, i
>> know
>> > >> > there
>> > >> > > > are
>> > >> > > > >> some
>> > >> > > > >> >> > URLs to be changed and voila, it worked.  I got back
>> from
>> > >> > google
>> > >> > > > io,
>> > >> > > > >> >> > grabbed
>> > >> > > > >> >> > the latest from svn and tried to run in jboss again,
>> but
>> > now
>> > >> I
>> > >> > > get
>> > >> > > > >> this
>> > >> > > > >> >> > error:
>> > >> > > > >> >> >
>> > >> > > > >> >> > 2008-06-02 14:28:45,180 ERROR
>> > >> > > > >> >> >
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >>
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
>> > >> > > > >> >> > Allocate exception for servlet restapiServlet
>> > >> > > > >> >> > com.google.inject.ConfigurationException: Error at
>> > >> > > > >> >> >
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >>
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
>> > >> > > > >> >> > Error while injecting at
>> > >> > > > >> >> >
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >>
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
>> > >> > > > >> >> > Could not find a suitable constructor in
>> > >> > > > >> >> > org.apache.shindig.social.abdera.SocialRouteManager.
>> > Classes
>> > >> > must
>> > >> > > > have
>> > >> > > > >> >> > either one (and only one) constructor annotated with
>> > @Inject
>> > >> or
>> > >> > a
>> > >> > > > >> >> > zero-argument constructor.
>> > >> > > > >> >> >    at
>> > >> > > > >> >> >
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >>
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
>> > >> > > > >> >> >    at
>> > >> > > > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
>> > >> > > > >> >> >    at
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >>
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
>> > >> > > > >> >> >    at
>> > >> > > > >> >> >
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >>
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
>> > >> > > > >> >> >
>> > >> > > > >> >> > This doesn't look, to me, to be a jboss error though.
>> >  Does
>> > >> > > anyone
>> > >> > > > >> know
>> > >> > > > >> >> > whats going on here? I'm not sure where to go from
>> here.
>> > >> > > > >> >> >
>> > >> > > > >> >> > I also get serious nastiness in jetty, but I'm not sure
>> > it's
>> > >> > the
>> > >> > > > same
>> > >> > > > >> >> > error.
>> > >> > > > >> >> >
>> > >> > > > >> >>
>> > >> > > > >> >
>> > >> > > > >>
>> > >> > > > >
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> > >
>> > >
>> >
>>
>
>

Re: jboss exception

Posted by Gonzalo Aune <go...@gmail.com>.
Yes, but my TC rans well, my only problem is with the jsonBatch request =(

G.-

On Mon, Jun 23, 2008 at 12:50 PM, Brad Defnall <bd...@gmail.com> wrote:

> I know there's a large amount of hardcoded URLs peppered through the source
> code.  I had to alter a test class as well.
>
> On Mon, Jun 23, 2008 at 11:42 AM, Gonzalo Aune <go...@gmail.com>
> wrote:
>
> > As far i can see, it has something to do with the routes of the Abdera,
> > cause the jsonBatch isnt supported yet in the routes of Abdera, and i
> have
> > to configure my SocialApiProvider correctly, im i right?
> >
> > G.-
> >
> > On Mon, Jun 23, 2008 at 12:31 PM, Gonzalo Aune <go...@gmail.com>
> > wrote:
> >
> > > Cassie, any solution to this?, anyone... ?
> > >
> > > Thanks!
> > >
> > > G.-
> > >
> > >
> > > On Mon, Jun 23, 2008 at 12:26 PM, Brad Defnall <bd...@gmail.com>
> > wrote:
> > >
> > >> I've stalled out on this honestly, I just have too much going on at
> > work.
> > >>
> > >> On Mon, Jun 23, 2008 at 11:13 AM, Gonzalo Aune <gonzaloaune@gmail.com
> >
> > >> wrote:
> > >>
> > >> > I have the exact same problem and cannot fix it, did you get any
> > >> solutions
> > >> > to this issue?
> > >> >
> > >> > Regards.
> > >> >
> > >> > G.-
> > >> >
> > >> > On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com>
> > >> wrote:
> > >> >
> > >> > > I changed the BASE url and I also rewrote the test class to
> reflect
> > my
> > >> > > context change.  The code passes its tests, but when I deploy I
> > still
> > >> get
> > >> > > these 404 errors. It must be something very simple, gadgets
> > themselves
> > >> > > work,
> > >> > > just the rest api seems to be busted.
> > >> > >
> > >> > >  I'll take a look at that jira issue as well.
> > >> > >
> > >> > > On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <
> > >> david.primmer@gmail.com>
> > >> > > wrote:
> > >> > >
> > >> > > > That's it. However I'd beware of changing this right now unless
> > >> you're
> > >> > > > ok with rewriting or skipping the tests. they're all hardcoded
> to
> > >> this
> > >> > > > context as well.
> > >> > > >
> > >> > > > This could use a pair of dirt-friendly hands:
> > >> > > > https://issues.apache.org/jira/browse/SHINDIG-317
> > >> > > > It has some background for why our test harness is hardcoded.
> > >> However,
> > >> > > > the server also need to be setup to dynamically pull this info
> > from
> > >> > > > the servlet config when it's making its routes.
> > >> > > >
> > >> > > > davep
> > >> > > >
> > >> > > > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <
> bdefnall@gmail.com>
> > >> > wrote:
> > >> > > > > I was afraid of that.  Which class is it?  I don't mind
> getting
> > my
> > >> > > hands
> > >> > > > > dirty...
> > >> > > > >
> > >> > > > >  private static final String BASE in class SocialRouteManager
> > >> seems
> > >> > to
> > >> > > > have
> > >> > > > > something to do with this, or is it something else?
> > >> > > > >
> > >> > > > >
> > >> > > > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <
> > >> > david.primmer@gmail.com
> > >> > > >
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > >> One common reason for getting this on every request is that
> the
> > >> > > > >> /social/rest context path is not setup right so the server is
> > >> > 404'ing
> > >> > > > >> all requests. Unfortunately, this is hardcoded in the server
> > and
> > >> not
> > >> > > > >> customizable from the servlet config at this point. there is
> an
> > >> open
> > >> > > > >> jira issue for this.
> > >> > > > >>
> > >> > > > >> davep
> > >> > > > >>
> > >> > > > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <
> > bdefnall@gmail.com
> > >> >
> > >> > > > wrote:
> > >> > > > >> > Thanks! I fixed my guice module, I had forgotten to bind
> > >> > something.
> > >> > > > >> > However, now I get 404 errors from the application when I
> try
> > >> to
> > >> > hit
> > >> > > > any
> > >> > > > >> > rest urls.  These aren't jboss 404 messages, but something
> > >> coming
> > >> > > from
> > >> > > > >> > shindig.  The response is in xml:
> > >> > > > >> >
> > >> > > > >> > <?xml version='1.0' encoding='UTF8'?><error
> > >> > > > >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> > >> > > > >> >
> > >> > > > >> >><message>Not Found</message></error>
> > >> > > > >> >
> > >> > > > >> > I'll keep digging, just thought i'd post something in case
> > >> anyone
> > >> > > else
> > >> > > > >> runs
> > >> > > > >> > into this.
> > >> > > > >> >
> > >> > > > >> > FYI, I'm trying to use mysql to store data in this case, my
> > >> target
> > >> > > app
> > >> > > > >> > server is jboss, the context is /shindig
> > >> > > > >> >
> > >> > > > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <
> etnu@google.com
> > >
> > >> > > wrote:
> > >> > > > >> >
> > >> > > > >> >> Are you using a custom guice module? If so, you probably
> > need
> > >> to
> > >> > > add
> > >> > > > a
> > >> > > > >> >> binding for the route manager; see
> > >> > > > >> >>
> > >> > > > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> > >> > > > >> >>
> > >> > > > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <
> > >> > bdefnall@gmail.com>
> > >> > > > >> wrote:
> > >> > > > >> >>
> > >> > > > >> >> > I had shindig running in jboss just fine last week, i
> know
> > >> > there
> > >> > > > are
> > >> > > > >> some
> > >> > > > >> >> > URLs to be changed and voila, it worked.  I got back
> from
> > >> > google
> > >> > > > io,
> > >> > > > >> >> > grabbed
> > >> > > > >> >> > the latest from svn and tried to run in jboss again, but
> > now
> > >> I
> > >> > > get
> > >> > > > >> this
> > >> > > > >> >> > error:
> > >> > > > >> >> >
> > >> > > > >> >> > 2008-06-02 14:28:45,180 ERROR
> > >> > > > >> >> >
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> > >> > > > >> >> > Allocate exception for servlet restapiServlet
> > >> > > > >> >> > com.google.inject.ConfigurationException: Error at
> > >> > > > >> >> >
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> > >> > > > >> >> > Error while injecting at
> > >> > > > >> >> >
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> > >> > > > >> >> > Could not find a suitable constructor in
> > >> > > > >> >> > org.apache.shindig.social.abdera.SocialRouteManager.
> > Classes
> > >> > must
> > >> > > > have
> > >> > > > >> >> > either one (and only one) constructor annotated with
> > @Inject
> > >> or
> > >> > a
> > >> > > > >> >> > zero-argument constructor.
> > >> > > > >> >> >    at
> > >> > > > >> >> >
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> > >> > > > >> >> >    at
> > >> > > > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> > >> > > > >> >> >    at
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> > >> > > > >> >> >    at
> > >> > > > >> >> >
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> > >> > > > >> >> >
> > >> > > > >> >> > This doesn't look, to me, to be a jboss error though.
> >  Does
> > >> > > anyone
> > >> > > > >> know
> > >> > > > >> >> > whats going on here? I'm not sure where to go from here.
> > >> > > > >> >> >
> > >> > > > >> >> > I also get serious nastiness in jetty, but I'm not sure
> > it's
> > >> > the
> > >> > > > same
> > >> > > > >> >> > error.
> > >> > > > >> >> >
> > >> > > > >> >>
> > >> > > > >> >
> > >> > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>

Re: jboss exception

Posted by Brad Defnall <bd...@gmail.com>.
I know there's a large amount of hardcoded URLs peppered through the source
code.  I had to alter a test class as well.

On Mon, Jun 23, 2008 at 11:42 AM, Gonzalo Aune <go...@gmail.com>
wrote:

> As far i can see, it has something to do with the routes of the Abdera,
> cause the jsonBatch isnt supported yet in the routes of Abdera, and i have
> to configure my SocialApiProvider correctly, im i right?
>
> G.-
>
> On Mon, Jun 23, 2008 at 12:31 PM, Gonzalo Aune <go...@gmail.com>
> wrote:
>
> > Cassie, any solution to this?, anyone... ?
> >
> > Thanks!
> >
> > G.-
> >
> >
> > On Mon, Jun 23, 2008 at 12:26 PM, Brad Defnall <bd...@gmail.com>
> wrote:
> >
> >> I've stalled out on this honestly, I just have too much going on at
> work.
> >>
> >> On Mon, Jun 23, 2008 at 11:13 AM, Gonzalo Aune <go...@gmail.com>
> >> wrote:
> >>
> >> > I have the exact same problem and cannot fix it, did you get any
> >> solutions
> >> > to this issue?
> >> >
> >> > Regards.
> >> >
> >> > G.-
> >> >
> >> > On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com>
> >> wrote:
> >> >
> >> > > I changed the BASE url and I also rewrote the test class to reflect
> my
> >> > > context change.  The code passes its tests, but when I deploy I
> still
> >> get
> >> > > these 404 errors. It must be something very simple, gadgets
> themselves
> >> > > work,
> >> > > just the rest api seems to be busted.
> >> > >
> >> > >  I'll take a look at that jira issue as well.
> >> > >
> >> > > On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <
> >> david.primmer@gmail.com>
> >> > > wrote:
> >> > >
> >> > > > That's it. However I'd beware of changing this right now unless
> >> you're
> >> > > > ok with rewriting or skipping the tests. they're all hardcoded to
> >> this
> >> > > > context as well.
> >> > > >
> >> > > > This could use a pair of dirt-friendly hands:
> >> > > > https://issues.apache.org/jira/browse/SHINDIG-317
> >> > > > It has some background for why our test harness is hardcoded.
> >> However,
> >> > > > the server also need to be setup to dynamically pull this info
> from
> >> > > > the servlet config when it's making its routes.
> >> > > >
> >> > > > davep
> >> > > >
> >> > > > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com>
> >> > wrote:
> >> > > > > I was afraid of that.  Which class is it?  I don't mind getting
> my
> >> > > hands
> >> > > > > dirty...
> >> > > > >
> >> > > > >  private static final String BASE in class SocialRouteManager
> >> seems
> >> > to
> >> > > > have
> >> > > > > something to do with this, or is it something else?
> >> > > > >
> >> > > > >
> >> > > > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <
> >> > david.primmer@gmail.com
> >> > > >
> >> > > > > wrote:
> >> > > > >
> >> > > > >> One common reason for getting this on every request is that the
> >> > > > >> /social/rest context path is not setup right so the server is
> >> > 404'ing
> >> > > > >> all requests. Unfortunately, this is hardcoded in the server
> and
> >> not
> >> > > > >> customizable from the servlet config at this point. there is an
> >> open
> >> > > > >> jira issue for this.
> >> > > > >>
> >> > > > >> davep
> >> > > > >>
> >> > > > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <
> bdefnall@gmail.com
> >> >
> >> > > > wrote:
> >> > > > >> > Thanks! I fixed my guice module, I had forgotten to bind
> >> > something.
> >> > > > >> > However, now I get 404 errors from the application when I try
> >> to
> >> > hit
> >> > > > any
> >> > > > >> > rest urls.  These aren't jboss 404 messages, but something
> >> coming
> >> > > from
> >> > > > >> > shindig.  The response is in xml:
> >> > > > >> >
> >> > > > >> > <?xml version='1.0' encoding='UTF8'?><error
> >> > > > >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> >> > > > >> >
> >> > > > >> >><message>Not Found</message></error>
> >> > > > >> >
> >> > > > >> > I'll keep digging, just thought i'd post something in case
> >> anyone
> >> > > else
> >> > > > >> runs
> >> > > > >> > into this.
> >> > > > >> >
> >> > > > >> > FYI, I'm trying to use mysql to store data in this case, my
> >> target
> >> > > app
> >> > > > >> > server is jboss, the context is /shindig
> >> > > > >> >
> >> > > > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <etnu@google.com
> >
> >> > > wrote:
> >> > > > >> >
> >> > > > >> >> Are you using a custom guice module? If so, you probably
> need
> >> to
> >> > > add
> >> > > > a
> >> > > > >> >> binding for the route manager; see
> >> > > > >> >>
> >> > > > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> >> > > > >> >>
> >> > > > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <
> >> > bdefnall@gmail.com>
> >> > > > >> wrote:
> >> > > > >> >>
> >> > > > >> >> > I had shindig running in jboss just fine last week, i know
> >> > there
> >> > > > are
> >> > > > >> some
> >> > > > >> >> > URLs to be changed and voila, it worked.  I got back from
> >> > google
> >> > > > io,
> >> > > > >> >> > grabbed
> >> > > > >> >> > the latest from svn and tried to run in jboss again, but
> now
> >> I
> >> > > get
> >> > > > >> this
> >> > > > >> >> > error:
> >> > > > >> >> >
> >> > > > >> >> > 2008-06-02 14:28:45,180 ERROR
> >> > > > >> >> >
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >>
> >> > > >
> >> > >
> >> >
> >>
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> >> > > > >> >> > Allocate exception for servlet restapiServlet
> >> > > > >> >> > com.google.inject.ConfigurationException: Error at
> >> > > > >> >> >
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >>
> >> > > >
> >> > >
> >> >
> >>
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> >> > > > >> >> > Error while injecting at
> >> > > > >> >> >
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >>
> >> > > >
> >> > >
> >> >
> >>
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> >> > > > >> >> > Could not find a suitable constructor in
> >> > > > >> >> > org.apache.shindig.social.abdera.SocialRouteManager.
> Classes
> >> > must
> >> > > > have
> >> > > > >> >> > either one (and only one) constructor annotated with
> @Inject
> >> or
> >> > a
> >> > > > >> >> > zero-argument constructor.
> >> > > > >> >> >    at
> >> > > > >> >> >
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >>
> >> > > >
> >> > >
> >> >
> >>
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> >> > > > >> >> >    at
> >> > > > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> >> > > > >> >> >    at
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >>
> >> > > >
> >> > >
> >> >
> >>
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> >> > > > >> >> >    at
> >> > > > >> >> >
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >>
> >> > > >
> >> > >
> >> >
> >>
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> >> > > > >> >> >
> >> > > > >> >> > This doesn't look, to me, to be a jboss error though.
>  Does
> >> > > anyone
> >> > > > >> know
> >> > > > >> >> > whats going on here? I'm not sure where to go from here.
> >> > > > >> >> >
> >> > > > >> >> > I also get serious nastiness in jetty, but I'm not sure
> it's
> >> > the
> >> > > > same
> >> > > > >> >> > error.
> >> > > > >> >> >
> >> > > > >> >>
> >> > > > >> >
> >> > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>

Re: jboss exception

Posted by Gonzalo Aune <go...@gmail.com>.
As far i can see, it has something to do with the routes of the Abdera,
cause the jsonBatch isnt supported yet in the routes of Abdera, and i have
to configure my SocialApiProvider correctly, im i right?

G.-

On Mon, Jun 23, 2008 at 12:31 PM, Gonzalo Aune <go...@gmail.com>
wrote:

> Cassie, any solution to this?, anyone... ?
>
> Thanks!
>
> G.-
>
>
> On Mon, Jun 23, 2008 at 12:26 PM, Brad Defnall <bd...@gmail.com> wrote:
>
>> I've stalled out on this honestly, I just have too much going on at work.
>>
>> On Mon, Jun 23, 2008 at 11:13 AM, Gonzalo Aune <go...@gmail.com>
>> wrote:
>>
>> > I have the exact same problem and cannot fix it, did you get any
>> solutions
>> > to this issue?
>> >
>> > Regards.
>> >
>> > G.-
>> >
>> > On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com>
>> wrote:
>> >
>> > > I changed the BASE url and I also rewrote the test class to reflect my
>> > > context change.  The code passes its tests, but when I deploy I still
>> get
>> > > these 404 errors. It must be something very simple, gadgets themselves
>> > > work,
>> > > just the rest api seems to be busted.
>> > >
>> > >  I'll take a look at that jira issue as well.
>> > >
>> > > On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <
>> david.primmer@gmail.com>
>> > > wrote:
>> > >
>> > > > That's it. However I'd beware of changing this right now unless
>> you're
>> > > > ok with rewriting or skipping the tests. they're all hardcoded to
>> this
>> > > > context as well.
>> > > >
>> > > > This could use a pair of dirt-friendly hands:
>> > > > https://issues.apache.org/jira/browse/SHINDIG-317
>> > > > It has some background for why our test harness is hardcoded.
>> However,
>> > > > the server also need to be setup to dynamically pull this info from
>> > > > the servlet config when it's making its routes.
>> > > >
>> > > > davep
>> > > >
>> > > > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com>
>> > wrote:
>> > > > > I was afraid of that.  Which class is it?  I don't mind getting my
>> > > hands
>> > > > > dirty...
>> > > > >
>> > > > >  private static final String BASE in class SocialRouteManager
>> seems
>> > to
>> > > > have
>> > > > > something to do with this, or is it something else?
>> > > > >
>> > > > >
>> > > > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <
>> > david.primmer@gmail.com
>> > > >
>> > > > > wrote:
>> > > > >
>> > > > >> One common reason for getting this on every request is that the
>> > > > >> /social/rest context path is not setup right so the server is
>> > 404'ing
>> > > > >> all requests. Unfortunately, this is hardcoded in the server and
>> not
>> > > > >> customizable from the servlet config at this point. there is an
>> open
>> > > > >> jira issue for this.
>> > > > >>
>> > > > >> davep
>> > > > >>
>> > > > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bdefnall@gmail.com
>> >
>> > > > wrote:
>> > > > >> > Thanks! I fixed my guice module, I had forgotten to bind
>> > something.
>> > > > >> > However, now I get 404 errors from the application when I try
>> to
>> > hit
>> > > > any
>> > > > >> > rest urls.  These aren't jboss 404 messages, but something
>> coming
>> > > from
>> > > > >> > shindig.  The response is in xml:
>> > > > >> >
>> > > > >> > <?xml version='1.0' encoding='UTF8'?><error
>> > > > >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
>> > > > >> >
>> > > > >> >><message>Not Found</message></error>
>> > > > >> >
>> > > > >> > I'll keep digging, just thought i'd post something in case
>> anyone
>> > > else
>> > > > >> runs
>> > > > >> > into this.
>> > > > >> >
>> > > > >> > FYI, I'm trying to use mysql to store data in this case, my
>> target
>> > > app
>> > > > >> > server is jboss, the context is /shindig
>> > > > >> >
>> > > > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com>
>> > > wrote:
>> > > > >> >
>> > > > >> >> Are you using a custom guice module? If so, you probably need
>> to
>> > > add
>> > > > a
>> > > > >> >> binding for the route manager; see
>> > > > >> >>
>> > > > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
>> > > > >> >>
>> > > > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <
>> > bdefnall@gmail.com>
>> > > > >> wrote:
>> > > > >> >>
>> > > > >> >> > I had shindig running in jboss just fine last week, i know
>> > there
>> > > > are
>> > > > >> some
>> > > > >> >> > URLs to be changed and voila, it worked.  I got back from
>> > google
>> > > > io,
>> > > > >> >> > grabbed
>> > > > >> >> > the latest from svn and tried to run in jboss again, but now
>> I
>> > > get
>> > > > >> this
>> > > > >> >> > error:
>> > > > >> >> >
>> > > > >> >> > 2008-06-02 14:28:45,180 ERROR
>> > > > >> >> >
>> > > > >> >> >
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>> >
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
>> > > > >> >> > Allocate exception for servlet restapiServlet
>> > > > >> >> > com.google.inject.ConfigurationException: Error at
>> > > > >> >> >
>> > > > >> >> >
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>> >
>> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
>> > > > >> >> > Error while injecting at
>> > > > >> >> >
>> > > > >> >> >
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>> >
>> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
>> > > > >> >> > Could not find a suitable constructor in
>> > > > >> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes
>> > must
>> > > > have
>> > > > >> >> > either one (and only one) constructor annotated with @Inject
>> or
>> > a
>> > > > >> >> > zero-argument constructor.
>> > > > >> >> >    at
>> > > > >> >> >
>> > > > >> >> >
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>> >
>> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
>> > > > >> >> >    at
>> > > > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
>> > > > >> >> >    at
>> > > > >> >> >
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>> >
>> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
>> > > > >> >> >    at
>> > > > >> >> >
>> > > > >> >> >
>> > > > >> >>
>> > > > >>
>> > > >
>> > >
>> >
>> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
>> > > > >> >> >
>> > > > >> >> > This doesn't look, to me, to be a jboss error though.  Does
>> > > anyone
>> > > > >> know
>> > > > >> >> > whats going on here? I'm not sure where to go from here.
>> > > > >> >> >
>> > > > >> >> > I also get serious nastiness in jetty, but I'm not sure it's
>> > the
>> > > > same
>> > > > >> >> > error.
>> > > > >> >> >
>> > > > >> >>
>> > > > >> >
>> > > > >>
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: jboss exception

Posted by Gonzalo Aune <go...@gmail.com>.
Cassie, any solution to this?, anyone... ?

Thanks!

G.-

On Mon, Jun 23, 2008 at 12:26 PM, Brad Defnall <bd...@gmail.com> wrote:

> I've stalled out on this honestly, I just have too much going on at work.
>
> On Mon, Jun 23, 2008 at 11:13 AM, Gonzalo Aune <go...@gmail.com>
> wrote:
>
> > I have the exact same problem and cannot fix it, did you get any
> solutions
> > to this issue?
> >
> > Regards.
> >
> > G.-
> >
> > On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com> wrote:
> >
> > > I changed the BASE url and I also rewrote the test class to reflect my
> > > context change.  The code passes its tests, but when I deploy I still
> get
> > > these 404 errors. It must be something very simple, gadgets themselves
> > > work,
> > > just the rest api seems to be busted.
> > >
> > >  I'll take a look at that jira issue as well.
> > >
> > > On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <david.primmer@gmail.com
> >
> > > wrote:
> > >
> > > > That's it. However I'd beware of changing this right now unless
> you're
> > > > ok with rewriting or skipping the tests. they're all hardcoded to
> this
> > > > context as well.
> > > >
> > > > This could use a pair of dirt-friendly hands:
> > > > https://issues.apache.org/jira/browse/SHINDIG-317
> > > > It has some background for why our test harness is hardcoded.
> However,
> > > > the server also need to be setup to dynamically pull this info from
> > > > the servlet config when it's making its routes.
> > > >
> > > > davep
> > > >
> > > > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com>
> > wrote:
> > > > > I was afraid of that.  Which class is it?  I don't mind getting my
> > > hands
> > > > > dirty...
> > > > >
> > > > >  private static final String BASE in class SocialRouteManager seems
> > to
> > > > have
> > > > > something to do with this, or is it something else?
> > > > >
> > > > >
> > > > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <
> > david.primmer@gmail.com
> > > >
> > > > > wrote:
> > > > >
> > > > >> One common reason for getting this on every request is that the
> > > > >> /social/rest context path is not setup right so the server is
> > 404'ing
> > > > >> all requests. Unfortunately, this is hardcoded in the server and
> not
> > > > >> customizable from the servlet config at this point. there is an
> open
> > > > >> jira issue for this.
> > > > >>
> > > > >> davep
> > > > >>
> > > > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com>
> > > > wrote:
> > > > >> > Thanks! I fixed my guice module, I had forgotten to bind
> > something.
> > > > >> > However, now I get 404 errors from the application when I try to
> > hit
> > > > any
> > > > >> > rest urls.  These aren't jboss 404 messages, but something
> coming
> > > from
> > > > >> > shindig.  The response is in xml:
> > > > >> >
> > > > >> > <?xml version='1.0' encoding='UTF8'?><error
> > > > >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> > > > >> >
> > > > >> >><message>Not Found</message></error>
> > > > >> >
> > > > >> > I'll keep digging, just thought i'd post something in case
> anyone
> > > else
> > > > >> runs
> > > > >> > into this.
> > > > >> >
> > > > >> > FYI, I'm trying to use mysql to store data in this case, my
> target
> > > app
> > > > >> > server is jboss, the context is /shindig
> > > > >> >
> > > > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com>
> > > wrote:
> > > > >> >
> > > > >> >> Are you using a custom guice module? If so, you probably need
> to
> > > add
> > > > a
> > > > >> >> binding for the route manager; see
> > > > >> >>
> > > > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> > > > >> >>
> > > > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <
> > bdefnall@gmail.com>
> > > > >> wrote:
> > > > >> >>
> > > > >> >> > I had shindig running in jboss just fine last week, i know
> > there
> > > > are
> > > > >> some
> > > > >> >> > URLs to be changed and voila, it worked.  I got back from
> > google
> > > > io,
> > > > >> >> > grabbed
> > > > >> >> > the latest from svn and tried to run in jboss again, but now
> I
> > > get
> > > > >> this
> > > > >> >> > error:
> > > > >> >> >
> > > > >> >> > 2008-06-02 14:28:45,180 ERROR
> > > > >> >> >
> > > > >> >> >
> > > > >> >>
> > > > >>
> > > >
> > >
> >
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> > > > >> >> > Allocate exception for servlet restapiServlet
> > > > >> >> > com.google.inject.ConfigurationException: Error at
> > > > >> >> >
> > > > >> >> >
> > > > >> >>
> > > > >>
> > > >
> > >
> >
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> > > > >> >> > Error while injecting at
> > > > >> >> >
> > > > >> >> >
> > > > >> >>
> > > > >>
> > > >
> > >
> >
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> > > > >> >> > Could not find a suitable constructor in
> > > > >> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes
> > must
> > > > have
> > > > >> >> > either one (and only one) constructor annotated with @Inject
> or
> > a
> > > > >> >> > zero-argument constructor.
> > > > >> >> >    at
> > > > >> >> >
> > > > >> >> >
> > > > >> >>
> > > > >>
> > > >
> > >
> >
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> > > > >> >> >    at
> > > > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> > > > >> >> >    at
> > > > >> >> >
> > > > >> >>
> > > > >>
> > > >
> > >
> >
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> > > > >> >> >    at
> > > > >> >> >
> > > > >> >> >
> > > > >> >>
> > > > >>
> > > >
> > >
> >
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> > > > >> >> >
> > > > >> >> > This doesn't look, to me, to be a jboss error though.  Does
> > > anyone
> > > > >> know
> > > > >> >> > whats going on here? I'm not sure where to go from here.
> > > > >> >> >
> > > > >> >> > I also get serious nastiness in jetty, but I'm not sure it's
> > the
> > > > same
> > > > >> >> > error.
> > > > >> >> >
> > > > >> >>
> > > > >> >
> > > > >>
> > > > >
> > > >
> > >
> >
>

Re: jboss exception

Posted by Brad Defnall <bd...@gmail.com>.
I've stalled out on this honestly, I just have too much going on at work.

On Mon, Jun 23, 2008 at 11:13 AM, Gonzalo Aune <go...@gmail.com>
wrote:

> I have the exact same problem and cannot fix it, did you get any solutions
> to this issue?
>
> Regards.
>
> G.-
>
> On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com> wrote:
>
> > I changed the BASE url and I also rewrote the test class to reflect my
> > context change.  The code passes its tests, but when I deploy I still get
> > these 404 errors. It must be something very simple, gadgets themselves
> > work,
> > just the rest api seems to be busted.
> >
> >  I'll take a look at that jira issue as well.
> >
> > On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <da...@gmail.com>
> > wrote:
> >
> > > That's it. However I'd beware of changing this right now unless you're
> > > ok with rewriting or skipping the tests. they're all hardcoded to this
> > > context as well.
> > >
> > > This could use a pair of dirt-friendly hands:
> > > https://issues.apache.org/jira/browse/SHINDIG-317
> > > It has some background for why our test harness is hardcoded. However,
> > > the server also need to be setup to dynamically pull this info from
> > > the servlet config when it's making its routes.
> > >
> > > davep
> > >
> > > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com>
> wrote:
> > > > I was afraid of that.  Which class is it?  I don't mind getting my
> > hands
> > > > dirty...
> > > >
> > > >  private static final String BASE in class SocialRouteManager seems
> to
> > > have
> > > > something to do with this, or is it something else?
> > > >
> > > >
> > > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <
> david.primmer@gmail.com
> > >
> > > > wrote:
> > > >
> > > >> One common reason for getting this on every request is that the
> > > >> /social/rest context path is not setup right so the server is
> 404'ing
> > > >> all requests. Unfortunately, this is hardcoded in the server and not
> > > >> customizable from the servlet config at this point. there is an open
> > > >> jira issue for this.
> > > >>
> > > >> davep
> > > >>
> > > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com>
> > > wrote:
> > > >> > Thanks! I fixed my guice module, I had forgotten to bind
> something.
> > > >> > However, now I get 404 errors from the application when I try to
> hit
> > > any
> > > >> > rest urls.  These aren't jboss 404 messages, but something coming
> > from
> > > >> > shindig.  The response is in xml:
> > > >> >
> > > >> > <?xml version='1.0' encoding='UTF8'?><error
> > > >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> > > >> >
> > > >> >><message>Not Found</message></error>
> > > >> >
> > > >> > I'll keep digging, just thought i'd post something in case anyone
> > else
> > > >> runs
> > > >> > into this.
> > > >> >
> > > >> > FYI, I'm trying to use mysql to store data in this case, my target
> > app
> > > >> > server is jboss, the context is /shindig
> > > >> >
> > > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com>
> > wrote:
> > > >> >
> > > >> >> Are you using a custom guice module? If so, you probably need to
> > add
> > > a
> > > >> >> binding for the route manager; see
> > > >> >>
> > > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> > > >> >>
> > > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <
> bdefnall@gmail.com>
> > > >> wrote:
> > > >> >>
> > > >> >> > I had shindig running in jboss just fine last week, i know
> there
> > > are
> > > >> some
> > > >> >> > URLs to be changed and voila, it worked.  I got back from
> google
> > > io,
> > > >> >> > grabbed
> > > >> >> > the latest from svn and tried to run in jboss again, but now I
> > get
> > > >> this
> > > >> >> > error:
> > > >> >> >
> > > >> >> > 2008-06-02 14:28:45,180 ERROR
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> > > >> >> > Allocate exception for servlet restapiServlet
> > > >> >> > com.google.inject.ConfigurationException: Error at
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> > > >> >> > Error while injecting at
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> > > >> >> > Could not find a suitable constructor in
> > > >> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes
> must
> > > have
> > > >> >> > either one (and only one) constructor annotated with @Inject or
> a
> > > >> >> > zero-argument constructor.
> > > >> >> >    at
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> > > >> >> >    at
> > > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> > > >> >> >    at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> > > >> >> >    at
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> > > >> >> >
> > > >> >> > This doesn't look, to me, to be a jboss error though.  Does
> > anyone
> > > >> know
> > > >> >> > whats going on here? I'm not sure where to go from here.
> > > >> >> >
> > > >> >> > I also get serious nastiness in jetty, but I'm not sure it's
> the
> > > same
> > > >> >> > error.
> > > >> >> >
> > > >> >>
> > > >> >
> > > >>
> > > >
> > >
> >
>

Re: jboss exception

Posted by Gonzalo Aune <go...@gmail.com>.
I have the exact same problem and cannot fix it, did you get any solutions
to this issue?

Regards.

G.-

On Mon, Jun 2, 2008 at 6:00 PM, Brad Defnall <bd...@gmail.com> wrote:

> I changed the BASE url and I also rewrote the test class to reflect my
> context change.  The code passes its tests, but when I deploy I still get
> these 404 errors. It must be something very simple, gadgets themselves
> work,
> just the rest api seems to be busted.
>
>  I'll take a look at that jira issue as well.
>
> On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <da...@gmail.com>
> wrote:
>
> > That's it. However I'd beware of changing this right now unless you're
> > ok with rewriting or skipping the tests. they're all hardcoded to this
> > context as well.
> >
> > This could use a pair of dirt-friendly hands:
> > https://issues.apache.org/jira/browse/SHINDIG-317
> > It has some background for why our test harness is hardcoded. However,
> > the server also need to be setup to dynamically pull this info from
> > the servlet config when it's making its routes.
> >
> > davep
> >
> > On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com> wrote:
> > > I was afraid of that.  Which class is it?  I don't mind getting my
> hands
> > > dirty...
> > >
> > >  private static final String BASE in class SocialRouteManager seems to
> > have
> > > something to do with this, or is it something else?
> > >
> > >
> > > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <david.primmer@gmail.com
> >
> > > wrote:
> > >
> > >> One common reason for getting this on every request is that the
> > >> /social/rest context path is not setup right so the server is 404'ing
> > >> all requests. Unfortunately, this is hardcoded in the server and not
> > >> customizable from the servlet config at this point. there is an open
> > >> jira issue for this.
> > >>
> > >> davep
> > >>
> > >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com>
> > wrote:
> > >> > Thanks! I fixed my guice module, I had forgotten to bind something.
> > >> > However, now I get 404 errors from the application when I try to hit
> > any
> > >> > rest urls.  These aren't jboss 404 messages, but something coming
> from
> > >> > shindig.  The response is in xml:
> > >> >
> > >> > <?xml version='1.0' encoding='UTF8'?><error
> > >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> > >> >
> > >> >><message>Not Found</message></error>
> > >> >
> > >> > I'll keep digging, just thought i'd post something in case anyone
> else
> > >> runs
> > >> > into this.
> > >> >
> > >> > FYI, I'm trying to use mysql to store data in this case, my target
> app
> > >> > server is jboss, the context is /shindig
> > >> >
> > >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com>
> wrote:
> > >> >
> > >> >> Are you using a custom guice module? If so, you probably need to
> add
> > a
> > >> >> binding for the route manager; see
> > >> >>
> > >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> > >> >>
> > >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com>
> > >> wrote:
> > >> >>
> > >> >> > I had shindig running in jboss just fine last week, i know there
> > are
> > >> some
> > >> >> > URLs to be changed and voila, it worked.  I got back from google
> > io,
> > >> >> > grabbed
> > >> >> > the latest from svn and tried to run in jboss again, but now I
> get
> > >> this
> > >> >> > error:
> > >> >> >
> > >> >> > 2008-06-02 14:28:45,180 ERROR
> > >> >> >
> > >> >> >
> > >> >>
> > >>
> >
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> > >> >> > Allocate exception for servlet restapiServlet
> > >> >> > com.google.inject.ConfigurationException: Error at
> > >> >> >
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> > >> >> > Error while injecting at
> > >> >> >
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> > >> >> > Could not find a suitable constructor in
> > >> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes must
> > have
> > >> >> > either one (and only one) constructor annotated with @Inject or a
> > >> >> > zero-argument constructor.
> > >> >> >    at
> > >> >> >
> > >> >> >
> > >> >>
> > >>
> >
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> > >> >> >    at
> > com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> > >> >> >    at
> > >> >> >
> > >> >>
> > >>
> >
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> > >> >> >    at
> > >> >> >
> > >> >> >
> > >> >>
> > >>
> >
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> > >> >> >
> > >> >> > This doesn't look, to me, to be a jboss error though.  Does
> anyone
> > >> know
> > >> >> > whats going on here? I'm not sure where to go from here.
> > >> >> >
> > >> >> > I also get serious nastiness in jetty, but I'm not sure it's the
> > same
> > >> >> > error.
> > >> >> >
> > >> >>
> > >> >
> > >>
> > >
> >
>

Re: jboss exception

Posted by Brad Defnall <bd...@gmail.com>.
I changed the BASE url and I also rewrote the test class to reflect my
context change.  The code passes its tests, but when I deploy I still get
these 404 errors. It must be something very simple, gadgets themselves work,
just the rest api seems to be busted.

 I'll take a look at that jira issue as well.

On Mon, Jun 2, 2008 at 4:56 PM, David Primmer <da...@gmail.com>
wrote:

> That's it. However I'd beware of changing this right now unless you're
> ok with rewriting or skipping the tests. they're all hardcoded to this
> context as well.
>
> This could use a pair of dirt-friendly hands:
> https://issues.apache.org/jira/browse/SHINDIG-317
> It has some background for why our test harness is hardcoded. However,
> the server also need to be setup to dynamically pull this info from
> the servlet config when it's making its routes.
>
> davep
>
> On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com> wrote:
> > I was afraid of that.  Which class is it?  I don't mind getting my hands
> > dirty...
> >
> >  private static final String BASE in class SocialRouteManager seems to
> have
> > something to do with this, or is it something else?
> >
> >
> > On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <da...@gmail.com>
> > wrote:
> >
> >> One common reason for getting this on every request is that the
> >> /social/rest context path is not setup right so the server is 404'ing
> >> all requests. Unfortunately, this is hardcoded in the server and not
> >> customizable from the servlet config at this point. there is an open
> >> jira issue for this.
> >>
> >> davep
> >>
> >> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com>
> wrote:
> >> > Thanks! I fixed my guice module, I had forgotten to bind something.
> >> > However, now I get 404 errors from the application when I try to hit
> any
> >> > rest urls.  These aren't jboss 404 messages, but something coming from
> >> > shindig.  The response is in xml:
> >> >
> >> > <?xml version='1.0' encoding='UTF8'?><error
> >> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> >> >
> >> >><message>Not Found</message></error>
> >> >
> >> > I'll keep digging, just thought i'd post something in case anyone else
> >> runs
> >> > into this.
> >> >
> >> > FYI, I'm trying to use mysql to store data in this case, my target app
> >> > server is jboss, the context is /shindig
> >> >
> >> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com> wrote:
> >> >
> >> >> Are you using a custom guice module? If so, you probably need to add
> a
> >> >> binding for the route manager; see
> >> >>
> >> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> >> >>
> >> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com>
> >> wrote:
> >> >>
> >> >> > I had shindig running in jboss just fine last week, i know there
> are
> >> some
> >> >> > URLs to be changed and voila, it worked.  I got back from google
> io,
> >> >> > grabbed
> >> >> > the latest from svn and tried to run in jboss again, but now I get
> >> this
> >> >> > error:
> >> >> >
> >> >> > 2008-06-02 14:28:45,180 ERROR
> >> >> >
> >> >> >
> >> >>
> >>
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> >> >> > Allocate exception for servlet restapiServlet
> >> >> > com.google.inject.ConfigurationException: Error at
> >> >> >
> >> >> >
> >> >>
> >>
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> >> >> > Error while injecting at
> >> >> >
> >> >> >
> >> >>
> >>
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> >> >> > Could not find a suitable constructor in
> >> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes must
> have
> >> >> > either one (and only one) constructor annotated with @Inject or a
> >> >> > zero-argument constructor.
> >> >> >    at
> >> >> >
> >> >> >
> >> >>
> >>
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> >> >> >    at
> com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> >> >> >    at
> >> >> >
> >> >>
> >>
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> >> >> >    at
> >> >> >
> >> >> >
> >> >>
> >>
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> >> >> >
> >> >> > This doesn't look, to me, to be a jboss error though.  Does anyone
> >> know
> >> >> > whats going on here? I'm not sure where to go from here.
> >> >> >
> >> >> > I also get serious nastiness in jetty, but I'm not sure it's the
> same
> >> >> > error.
> >> >> >
> >> >>
> >> >
> >>
> >
>

Re: jboss exception

Posted by David Primmer <da...@gmail.com>.
That's it. However I'd beware of changing this right now unless you're
ok with rewriting or skipping the tests. they're all hardcoded to this
context as well.

This could use a pair of dirt-friendly hands:
https://issues.apache.org/jira/browse/SHINDIG-317
It has some background for why our test harness is hardcoded. However,
the server also need to be setup to dynamically pull this info from
the servlet config when it's making its routes.

davep

On Mon, Jun 2, 2008 at 1:44 PM, Brad Defnall <bd...@gmail.com> wrote:
> I was afraid of that.  Which class is it?  I don't mind getting my hands
> dirty...
>
>  private static final String BASE in class SocialRouteManager seems to have
> something to do with this, or is it something else?
>
>
> On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <da...@gmail.com>
> wrote:
>
>> One common reason for getting this on every request is that the
>> /social/rest context path is not setup right so the server is 404'ing
>> all requests. Unfortunately, this is hardcoded in the server and not
>> customizable from the servlet config at this point. there is an open
>> jira issue for this.
>>
>> davep
>>
>> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com> wrote:
>> > Thanks! I fixed my guice module, I had forgotten to bind something.
>> > However, now I get 404 errors from the application when I try to hit any
>> > rest urls.  These aren't jboss 404 messages, but something coming from
>> > shindig.  The response is in xml:
>> >
>> > <?xml version='1.0' encoding='UTF8'?><error
>> > xmlns="http://incubator.apache.org/abdera"><code>404</code
>> >
>> >><message>Not Found</message></error>
>> >
>> > I'll keep digging, just thought i'd post something in case anyone else
>> runs
>> > into this.
>> >
>> > FYI, I'm trying to use mysql to store data in this case, my target app
>> > server is jboss, the context is /shindig
>> >
>> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com> wrote:
>> >
>> >> Are you using a custom guice module? If so, you probably need to add a
>> >> binding for the route manager; see
>> >>
>> >> http://svn.apache.org/viewvc?view=rev&revision=661322
>> >>
>> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com>
>> wrote:
>> >>
>> >> > I had shindig running in jboss just fine last week, i know there are
>> some
>> >> > URLs to be changed and voila, it worked.  I got back from google io,
>> >> > grabbed
>> >> > the latest from svn and tried to run in jboss again, but now I get
>> this
>> >> > error:
>> >> >
>> >> > 2008-06-02 14:28:45,180 ERROR
>> >> >
>> >> >
>> >>
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
>> >> > Allocate exception for servlet restapiServlet
>> >> > com.google.inject.ConfigurationException: Error at
>> >> >
>> >> >
>> >>
>> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
>> >> > Error while injecting at
>> >> >
>> >> >
>> >>
>> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
>> >> > Could not find a suitable constructor in
>> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes must have
>> >> > either one (and only one) constructor annotated with @Inject or a
>> >> > zero-argument constructor.
>> >> >    at
>> >> >
>> >> >
>> >>
>> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
>> >> >    at com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
>> >> >    at
>> >> >
>> >>
>> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
>> >> >    at
>> >> >
>> >> >
>> >>
>> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
>> >> >
>> >> > This doesn't look, to me, to be a jboss error though.  Does anyone
>> know
>> >> > whats going on here? I'm not sure where to go from here.
>> >> >
>> >> > I also get serious nastiness in jetty, but I'm not sure it's the same
>> >> > error.
>> >> >
>> >>
>> >
>>
>

Re: jboss exception

Posted by Brad Defnall <bd...@gmail.com>.
I was afraid of that.  Which class is it?  I don't mind getting my hands
dirty...

 private static final String BASE in class SocialRouteManager seems to have
something to do with this, or is it something else?


On Mon, Jun 2, 2008 at 4:39 PM, David Primmer <da...@gmail.com>
wrote:

> One common reason for getting this on every request is that the
> /social/rest context path is not setup right so the server is 404'ing
> all requests. Unfortunately, this is hardcoded in the server and not
> customizable from the servlet config at this point. there is an open
> jira issue for this.
>
> davep
>
> On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com> wrote:
> > Thanks! I fixed my guice module, I had forgotten to bind something.
> > However, now I get 404 errors from the application when I try to hit any
> > rest urls.  These aren't jboss 404 messages, but something coming from
> > shindig.  The response is in xml:
> >
> > <?xml version='1.0' encoding='UTF8'?><error
> > xmlns="http://incubator.apache.org/abdera"><code>404</code
> >
> >><message>Not Found</message></error>
> >
> > I'll keep digging, just thought i'd post something in case anyone else
> runs
> > into this.
> >
> > FYI, I'm trying to use mysql to store data in this case, my target app
> > server is jboss, the context is /shindig
> >
> > On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com> wrote:
> >
> >> Are you using a custom guice module? If so, you probably need to add a
> >> binding for the route manager; see
> >>
> >> http://svn.apache.org/viewvc?view=rev&revision=661322
> >>
> >> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com>
> wrote:
> >>
> >> > I had shindig running in jboss just fine last week, i know there are
> some
> >> > URLs to be changed and voila, it worked.  I got back from google io,
> >> > grabbed
> >> > the latest from svn and tried to run in jboss again, but now I get
> this
> >> > error:
> >> >
> >> > 2008-06-02 14:28:45,180 ERROR
> >> >
> >> >
> >>
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> >> > Allocate exception for servlet restapiServlet
> >> > com.google.inject.ConfigurationException: Error at
> >> >
> >> >
> >>
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> >> > Error while injecting at
> >> >
> >> >
> >>
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> >> > Could not find a suitable constructor in
> >> > org.apache.shindig.social.abdera.SocialRouteManager. Classes must have
> >> > either one (and only one) constructor annotated with @Inject or a
> >> > zero-argument constructor.
> >> >    at
> >> >
> >> >
> >>
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> >> >    at com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> >> >    at
> >> >
> >>
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> >> >    at
> >> >
> >> >
> >>
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> >> >
> >> > This doesn't look, to me, to be a jboss error though.  Does anyone
> know
> >> > whats going on here? I'm not sure where to go from here.
> >> >
> >> > I also get serious nastiness in jetty, but I'm not sure it's the same
> >> > error.
> >> >
> >>
> >
>

Re: jboss exception

Posted by David Primmer <da...@gmail.com>.
One common reason for getting this on every request is that the
/social/rest context path is not setup right so the server is 404'ing
all requests. Unfortunately, this is hardcoded in the server and not
customizable from the servlet config at this point. there is an open
jira issue for this.

davep

On Mon, Jun 2, 2008 at 1:30 PM, Brad Defnall <bd...@gmail.com> wrote:
> Thanks! I fixed my guice module, I had forgotten to bind something.
> However, now I get 404 errors from the application when I try to hit any
> rest urls.  These aren't jboss 404 messages, but something coming from
> shindig.  The response is in xml:
>
> <?xml version='1.0' encoding='UTF8'?><error
> xmlns="http://incubator.apache.org/abdera"><code>404</code
>
>><message>Not Found</message></error>
>
> I'll keep digging, just thought i'd post something in case anyone else runs
> into this.
>
> FYI, I'm trying to use mysql to store data in this case, my target app
> server is jboss, the context is /shindig
>
> On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com> wrote:
>
>> Are you using a custom guice module? If so, you probably need to add a
>> binding for the route manager; see
>>
>> http://svn.apache.org/viewvc?view=rev&revision=661322
>>
>> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com> wrote:
>>
>> > I had shindig running in jboss just fine last week, i know there are some
>> > URLs to be changed and voila, it worked.  I got back from google io,
>> > grabbed
>> > the latest from svn and tried to run in jboss again, but now I get this
>> > error:
>> >
>> > 2008-06-02 14:28:45,180 ERROR
>> >
>> >
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
>> > Allocate exception for servlet restapiServlet
>> > com.google.inject.ConfigurationException: Error at
>> >
>> >
>> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
>> > Error while injecting at
>> >
>> >
>> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
>> > Could not find a suitable constructor in
>> > org.apache.shindig.social.abdera.SocialRouteManager. Classes must have
>> > either one (and only one) constructor annotated with @Inject or a
>> > zero-argument constructor.
>> >    at
>> >
>> >
>> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
>> >    at com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
>> >    at
>> >
>> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
>> >    at
>> >
>> >
>> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
>> >
>> > This doesn't look, to me, to be a jboss error though.  Does anyone know
>> > whats going on here? I'm not sure where to go from here.
>> >
>> > I also get serious nastiness in jetty, but I'm not sure it's the same
>> > error.
>> >
>>
>

Re: jboss exception

Posted by Brad Defnall <bd...@gmail.com>.
Thanks! I fixed my guice module, I had forgotten to bind something.
However, now I get 404 errors from the application when I try to hit any
rest urls.  These aren't jboss 404 messages, but something coming from
shindig.  The response is in xml:

<?xml version='1.0' encoding='UTF8'?><error
xmlns="http://incubator.apache.org/abdera"><code>404</code

><message>Not Found</message></error>

I'll keep digging, just thought i'd post something in case anyone else runs
into this.

FYI, I'm trying to use mysql to store data in this case, my target app
server is jboss, the context is /shindig

On Mon, Jun 2, 2008 at 3:05 PM, Kevin Brown <et...@google.com> wrote:

> Are you using a custom guice module? If so, you probably need to add a
> binding for the route manager; see
>
> http://svn.apache.org/viewvc?view=rev&revision=661322
>
> On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com> wrote:
>
> > I had shindig running in jboss just fine last week, i know there are some
> > URLs to be changed and voila, it worked.  I got back from google io,
> > grabbed
> > the latest from svn and tried to run in jboss again, but now I get this
> > error:
> >
> > 2008-06-02 14:28:45,180 ERROR
> >
> >
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> > Allocate exception for servlet restapiServlet
> > com.google.inject.ConfigurationException: Error at
> >
> >
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> > Error while injecting at
> >
> >
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> > Could not find a suitable constructor in
> > org.apache.shindig.social.abdera.SocialRouteManager. Classes must have
> > either one (and only one) constructor annotated with @Inject or a
> > zero-argument constructor.
> >    at
> >
> >
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
> >    at com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
> >    at
> >
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
> >    at
> >
> >
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
> >
> > This doesn't look, to me, to be a jboss error though.  Does anyone know
> > whats going on here? I'm not sure where to go from here.
> >
> > I also get serious nastiness in jetty, but I'm not sure it's the same
> > error.
> >
>

Re: jboss exception

Posted by Kevin Brown <et...@google.com>.
Are you using a custom guice module? If so, you probably need to add a
binding for the route manager; see

http://svn.apache.org/viewvc?view=rev&revision=661322

On Mon, Jun 2, 2008 at 11:53 AM, Brad Defnall <bd...@gmail.com> wrote:

> I had shindig running in jboss just fine last week, i know there are some
> URLs to be changed and voila, it worked.  I got back from google io,
> grabbed
> the latest from svn and tried to run in jboss again, but now I get this
> error:
>
> 2008-06-02 14:28:45,180 ERROR
>
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/shindig].[restapiServlet]]
> Allocate exception for servlet restapiServlet
> com.google.inject.ConfigurationException: Error at
>
> org.apache.shindig.social.abdera.SocialRouteManager.<init>(SocialRouteManager.java:32)
> Error while injecting at
>
> org.apache.shindig.social.abdera.SocialApiProvider.setSocialRouteManager(SocialApiProvider.java:35):
> Could not find a suitable constructor in
> org.apache.shindig.social.abdera.SocialRouteManager. Classes must have
> either one (and only one) constructor annotated with @Inject or a
> zero-argument constructor.
>    at
>
> com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)
>    at com.google.inject.InjectorImpl$3.handle(InjectorImpl.java:294)
>    at
> com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)
>    at
>
> com.google.inject.ConstructorInjector.findConstructorIn(ConstructorInjector.java:105)
>
> This doesn't look, to me, to be a jboss error though.  Does anyone know
> whats going on here? I'm not sure where to go from here.
>
> I also get serious nastiness in jetty, but I'm not sure it's the same
> error.
>