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

Reply via email to