Change the layout to support both jar and war deployment