Hiya,

Cheers. As mentioned, it is caused by injecting the SymbolSource
service into the contributeApplicationDefaults() method of the Module
class.

Steve.

On 14 September 2011 23:11, Howard Lewis Ship <hls...@gmail.com> wrote:
> Just tested this ... apps run fine in production mode.  Something you
> are contributing somewhere must be the problem.  Please check your
> console for its operation trace, that should provide some insight into
> how you got yourself into a recursive service construction situation.
>
> On Wed, Sep 14, 2011 at 5:50 AM, Steve Eynon
> <steve.ey...@alienfactory.co.uk> wrote:
>> This is neat,
>>
>> Application startup blows up with a Service Override recursion
>> exception when IOC fails to resolve 'SymbolConstants.PRODUCTION_MODE'
>> for the TapestryModule.productionModeOverrides() method!
>>
>> public static void productionModeOverrides(
>>    MappedConfiguration<Class, Object> configuration,
>>    @Symbol(SymbolConstants.PRODUCTION_MODE) boolean productionMode)
>>
>> I came across this little gotcha in T5.1 have been using the following
>> method ever since.
>>
>> private static boolean inProductionMode() {
>>        // can't inject ProdMode Symbol for if it's not defined... service
>> recursion error!
>>        return 
>> !"false".equalsIgnoreCase(System.getProperty("tapestry.production-mode",
>> "true"));
>> }
>>
>> That or you need to set a true / false value for the System Property
>> "tapestry.production-mode" in your web / app server.
>>
>> Steve.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to