You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Thiago H. de Paula Figueiredo" <th...@gmail.com> on 2008/10/08 20:09:14 UTC
[Solved!] Re: [T5] Alias building recursion exception when using
tapetry-spring-security
After a lot of trial and error, I have just found that the
contributeApplicationDefaults() and contributeAlias() *must be static*,
otherwise the Alias service building falls into a recursive service
building exception. I have just found also that you can mix static and
non-static methods (contribute, build, etc) in a module class.
Jonathan, was it the problem you had?
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [Solved!] Re: [T5] Alias building recursion exception when using
tapetry-spring-security
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 08 Oct 2008 15:30:33 -0300, Jonathan Barker
<jo...@gmail.com> escreveu:
> It would be helpful if Tapestry could report this as a need to declare
> something as static rather than as a recursion problem. A JIRA issue
> perhaps?
AFAIK, only the contributeAlias and contributeApplicationDefaults methods
would need this warning, maybe contributeFactoryDefaults too.
> I'll have to remember this if I ever get the error again.
That's the upside of spending many hours trying to figure out what went
wrong . . . You'll never forget after that . . . :)
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: [Solved!] Re: [T5] Alias building recursion exception when using tapetry-spring-security
Posted by Jonathan Barker <jo...@gmail.com>.
Thiago,
That sounds familiar. There were some questions about SaltSource and they
also sounded familiar but perhaps I hit the static method issue while
playing with SaltSources.
It would be helpful if Tapestry could report this as a need to declare
something as static rather than as a recursion problem. A JIRA issue
perhaps?
I'll have to remember this if I ever get the error again.
Jonathan
> -----Original Message-----
> From: Thiago H. de Paula Figueiredo [mailto:thiagohp@gmail.com]
> Sent: Wednesday, October 08, 2008 14:09
> To: Tapestry users
> Subject: [Solved!] Re: [T5] Alias building recursion exception when using
> tapetry-spring-security
>
> After a lot of trial and error, I have just found that the
> contributeApplicationDefaults() and contributeAlias() *must be static*,
> otherwise the Alias service building falls into a recursive service
> building exception. I have just found also that you can mix static and
> non-static methods (contribute, build, etc) in a module class.
>
> Jonathan, was it the problem you had?
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> Consultor, desenvolvedor e instrutor em Java
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org