The problem is easily resolved without such hacks as the one suggested by @meilechh. You can add prefer-application-packages to your weblogic.xml or weblogic-application.xml.
Look at http://docs.oracle.com/middleware/1212/wls/WLPRG/classloading.htm#WLPRG315 for the reference.