Fixed bug that prevented some applications running inside servlet container to start up properly.