resin 4.0.40 bugs - pre release

git-svn-id: svn://svn.caucho.com/home/svn/svnroot/resin/trunk@10237 9c94448d-38f1-0310-a231-d98308ff1ebf