An addendum, It seems to be whenever "SymbolConstants.PRODUCTION_MODE" resolves to true.
Hmm, I'd be very surprised if the T5 crew let something this obvious slip through the net so I'll double check my configuration and Symbol contributions just to make sure... Still, I love the way it blows up when ProdMode is set to true! The irony puts a smile on my face! Steve. On 14 September 2011 20:50, 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