WS-290: Test failures and errors with Oracle java >= 1.7.0_25

https://jira.exoplatform.org/browse/WS-290