Updated to work on Weblogic.