Get the weblogic.xml generated on the fly by WebLogic and modify it to add:
<container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor>
Now make sure that this weblogic.xml file is in your military file and redeploy the application.
Setting prefer-web-inf-classes to true will give preference to the classes present in the WEB-INF directory of the application.
prefer-web-inf-classes may not work all the time. If you are using WebLogic version 10.3.4+, use the prefer-web-inf-classes setting and use prefer-application-packages instead, Also watch this video on how class loading in WebLogic works.
source share